Support Forum

Looking for help with a child theme after upgrading to version 6

23 Answers

New Answer

SP Simple Press
Simple Press
Admin

Oops, it should create a folder called stacked-child (not stack-child).

FI fiddlerman
fiddlerman
Member

OK,

Well my spTopicView.php file doesn’t work though. When I upload that to the new child theme folder everything is kaputt…..
Can anyone see what the problem is?

Thanks

In version 5, I was able to see the spHead information and change it. On this version I can’t see where to change anything.

Andy did this for me back in the day:

 

spHead.php

 

Replace the search part:

 

    sp_SectionStart(‘tagClass=spPlainSection’, ‘search’);

        echo ‘<div style=”margin:0 60px”>’;

        sp_QuickLinksForum(‘tagClass=spControl spSelect spLeft’, __sp(‘Select Forum’));

        sp_QuickLinksTopic(‘tagClass=spControl spSelect spRight’, __sp(‘New/Recently Updated Topics’));

        echo ‘</div>’;

        sp_InsertBreak();

        echo ‘<div style=”text-align:center;margin:10px 0 0 0″>’;

        sp_SearchForm($searchForm);

        echo ‘</div>’;

    sp_SectionEnd(”, ‘search’);

 

stacked.php

Add this

#spMainContainer #spLoggedInOutLabel {
    margin-top: -5px;
}

#spMainContainer #spLastVisitLabel {
    margin-top: 10px;
    margin-left: -75px;
}

 

spHead.php = user info section

    sp_SectionStart(‘tagClass=spPlainSection’, ‘userInfo’);
        sp_UserAvatar(‘tagClass=spImg spLeft’);

        sp_SectionStart(‘tagClass=spPlainSection’);
            sp_LoggedInOutLabel(‘tagClass=spLabelSmall spLeft’, __sp(‘Logged in as<br /><b>%USERNAME%</b>’), __sp(‘Please consider registering<br /><b>guest</b>’), __sp(‘Welcome back <b>%USERNAME%</b><br />Please log in to post’));
            echo ‘<br />’;
            sp_LastVisitLabel(‘tagClass=spLabelSmall spLeft’, __sp(‘Last visited %LASTVISIT%’));
            echo ‘<div style=”margin-top:-25px; float: right; display: inline-block”>’;
            sp_LogInOutButton(‘tagClass=spButton spRight’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));
            sp_RegisterButton(‘tagClass=spButton spRight’, __sp(‘Register’), __sp(‘Register’));
            sp_ProfileEditButton(‘tagClass=spButton spRight’, __sp(‘Profile’), __sp(‘Edit your profile’));
            sp_MemberButton(‘tagClass=spButton spRight’, __sp(‘Members’), __sp(‘View the members list’));
            sp_InsertBreak();
            if (function_exists(‘sp_PmInboxButton’)) sp_PmInboxButton(‘tagClass=spButton spRight’, __sp(‘Inbox:’), __sp(‘Go to PM inbox’));
            if (function_exists(‘sp_SubscriptionsReviewButton’)) sp_SubscriptionsReviewButton(‘tagClass=spButton spRight’, __sp(‘Subscribed:’), __sp(‘Review subscribed topics’));
            if (function_exists(‘sp_WatchesReviewButton’)) sp_WatchesReviewButton(‘tagClass=spButton spRight’, __sp(‘Watching:’), __sp(‘Review watched topics’));
            echo ‘</div>’;
        sp_SectionEnd(‘tagClass=spClear’);

        sp_LoginForm($loginForm);
        sp_UserNotices(”, __sp(‘(Remove Notice)’));
    sp_SectionEnd(”, ‘userInfo’);

___________________________________________________

BELOW IS WHAT MY spTopicView.php FILE LOOKS LIKE:

 

 
# == ADD POST FORM – OBJECT DEFINITION ========================
$addPostForm = array(
‘tagClass’=> ‘spForm’,
‘hide’=> 1,
‘controlFieldset’=> ‘spEditorFieldset’,
‘controlInput’=> ‘spControl’,
‘controlSubmit’=> ‘spSubmit’,
‘controlOrder’=> ‘cancel|save’,
‘labelHeading’=> __sp(‘Add Reply’),
‘labelGuestName’=> __sp(‘Guest name (required)’),
‘labelGuestEmail’=> __sp(‘Guest email (required)’),
‘labelModerateAll’=> __sp(‘NOTE: new posts are subject to administrator approval before being displayed’),
‘labelModerateOnce’=> __sp(‘NOTE: first posts are subject to administrator approval before being displayed’),
‘labelSmileys’=> __sp(‘Smileys’),
‘labelOptions’=> __sp(‘Options’),
‘labelOptionLock’=> __sp(‘Lock this topic’),
‘labelOptionPin’=> __sp(‘Pin this post’),
‘labelOptionTime’=> __sp(‘Edit post timestamp’),
‘labelMath’=> __sp(‘Math Required’),
‘labelMathSum’=> __sp(‘What is the sum of’),
‘labelPostButtonReady’=> __sp(‘Submit Reply’),
‘labelPostButtonMath’=> __sp(‘Do Math To Save’),
‘labelPostCancel’=> __sp(‘Cancel’),
‘tipSmileysButton’=> __sp(‘Open/Close to Add a Smiley’),
‘tipOptionsButton’=> __sp(‘Open/Close to select Posting Options’),
‘tipSubmitButton’=> __sp(‘Save the New Post’),
‘tipCancelButton’=> __sp(‘Cancel the New Post’)
);
 
# == EDIT POST FORM – OBJECT DEFINITION ========================
$editPostForm = array(
‘tagClass’=> ‘spForm’,
‘controlFieldset’=> ‘spEditorFieldset’,
‘controlInput’=> ‘spControl’,
‘controlSubmit’=> ‘spSubmit’,
‘controlOrder’=> ‘cancel|save’,
‘labelHeading’=> __sp(‘Edit Post’),
‘labelSmileys’=> __sp(‘Smileys’),
‘labelPostButton’=> __sp(‘Save Edited Post’),
‘labelPostCancel’=> __sp(‘Cancel’),
‘tipSmileysButton’=> __sp(‘Open/Close to Add a Smiley’),
‘tipSubmitButton’=> __sp(‘Save the Edited Post’),
‘tipCancelButton’=> __sp(‘Cancel the Post Edits’)
);
# ==============================================================
 
 
# Load the forum header template – normally first thing
# ———————————————————————-
sp_SectionStart(‘tagClass=spHeadContainer’, ‘head’);
sp_load_template(‘spHead.php’);
sp_SectionEnd(”, ‘head’);
 
sp_SectionStart(‘tagClass=spBodyContainer’, ‘body’);
 
# Start the ‘topicView’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spListSection’, ‘topicView’);
 
# Set the Topic
# ———————————————————————-
if (sp_this_topic()):
# Start the ‘pagelinks’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPlainSection’, ‘pageLinks’);
sp_PostNewButton(‘tagId=spPostNewButtonTop&tagClass=spButton spRight’, __sp(‘Add Reply’), __sp(‘Make a new post in this topic’), __sp(‘This topic is locked’), __sp(‘No permission to create posts’));
sp_PostNewTopicButton(‘tagId=spPostNewTopicButtonTop&tagClass=spButton spRight’, __sp(‘Add Topic’), __sp(‘Start a new topic’), __sp(‘This forum is locked’));
sp_PostIndexPageLinks(”, __sp(‘Page: ‘), __sp(‘Jump to page %PAGE% of this topic’), __sp(‘Jump to page’));
sp_SectionEnd(‘tagClass=spClear’, ‘pageLinks’);
 
# Start the ‘topicHeader’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spTopicViewSection’, ‘topic’);
sp_TopicHeaderRSSButton(‘tagClass=spButton spRight’, __sp(‘Topic RSS’), __sp(‘Subscribe to the RSS feed for this topic’));
if (function_exists(‘sp_PrintTopicView’)) sp_PrintTopicView(‘tagClass=spLink spRight’, ”, __sp(‘Topic Print Options’));
if (function_exists(‘sp_RelatedTopicsButton’)) sp_RelatedTopicsButton(‘tagClass=spButton spRight’, __sp(‘Related Topics’), __sp(‘Get a list of related topics based on tags for this topic’));
sp_TopicHeaderIcon(‘tagClass=spHeaderIcon spLeft’);
sp_TopicHeaderName(‘tagClass=spHeaderName’);
if (function_exists(‘sp_TopicHeaderShowBlogLink’)) sp_TopicHeaderShowBlogLink(”, __sp(‘Read the original blog post’), __sp(‘Click to goto original blog post’));
sp_InsertBreak();
                    if (function_exists(‘sp_ShareThisTopicTag’)) sp_ShareThisTopicTag(‘tagClass=ShareThisTopic spRight’);
sp_InsertBreak();
 
if (function_exists(‘sp_TopicIndexRating’) || function_exists(‘sp_TopicTagsList’) || function_exists(‘sp_TopicStatus’)) {
                        if (function_exists(‘sp_TopicIndexRating’)) sp_TopicIndexRating(‘tagClass=spTopicRating spRight’, __sp(‘Topic Rating:’));
if (function_exists(‘sp_TopicTagsList’)) sp_TopicTagsList(‘tagClass=spTopicTagsList spLeft’, __sp(‘Tags: ‘));
if (function_exists(‘sp_TopicStatus’)) sp_TopicStatus(‘tagClass=spTopicViewStatus spButton spLeft’, __sp(‘Search for other topics with this status’), __sp(‘Status: ‘));
sp_InsertBreak();
}
 
sp_SectionStart(‘tagClass=spTopicPostContainer’, ‘postlist’);
 
# Start the Post Loop
# ———————————————————————-
if (sp_has_posts()) : while (sp_loop_posts()) : sp_the_post();
 
# Start the ‘post’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spTopicPostSection’, ‘post’);
 
sp_PostIndexAnchor();
sp_PostForumToolButton(”, ”, __sp(‘Open the forum toolset’));
 
# User Info post row
# ———————————————————————-
sp_SectionStart(‘tagClass=spUserSection’);
sp_ColumnStart(‘tagClass=spAvatarSection spLeft&width=10%&height=60px’);
  sp_UserAvatar(‘tagClass=spPostUserAvatar spCenter&context=user’, $spThisPostUser);
sp_ColumnEnd();
 
sp_ColumnStart(‘tagClass=spRankSection spLeft&width=20%&height=60px’);
sp_PostIndexUserName(‘tagClass=spPostUserName spCenter’);
sp_PostIndexUserLocation(‘tagClass=spPostUserLocation spCenter’);
sp_PostIndexUserRank(‘tagClass=spPostUserRank spCenter’);
 
    sp_PostIndexUserMemberships(‘tagClass=spPostUserMemberships spCenter’);
sp_ColumnEnd();
 
sp_ColumnStart(‘tagClass=spInfoSection spLeft&width=30%&height=60px’);
sp_SectionStart(‘tagClass=spLeft’, ‘user-dates’);
sp_PostIndexUserDate(‘tagClass=spCenter spPostUserDate&stackdate=0’);
sp_PostIndexUserRegistered(‘tagClass=spPostUserRegistered spCenter’, __sp(‘Member Since: %DATE%’));
sp_PostIndexUserPosts(‘tagClass=spPostUserPosts spCenter’, __sp(‘Forum Posts: %COUNT%’));
if (function_exists(‘sp_PostIndexCubePoints’)) sp_PostIndexCubePoints(‘tagClass=spPostUserCubePoints spCenter’, __sp(‘CubePoints’));
if (function_exists(‘sp_PostIndexMyCred’)) sp_PostIndexMyCred(‘tagClass=spPostUserMyCred spCenter’, __sp(‘MyCred ‘), __sp(‘MyCred’));
sp_SectionEnd(”, ‘user-dates’);
sp_ColumnEnd();
 
sp_ColumnStart(‘tagClass=spIdentitySection spRight&width=30%&height=60px’);
sp_SectionStart(‘tagClass=spRight’, ‘user-identities’);
sp_PostIndexUserWebsite(”, __sp(‘Visit my website’));
sp_PostIndexUserTwitter(”, __sp(‘Follow me on Twitter’));
sp_PostIndexUserFacebook(”, __sp(‘Connect with me on Facebook’));
sp_PostIndexUserMySpace(”, __sp(‘See MySpace’));
sp_PostIndexUserLinkedIn(”, __sp(‘My LinkedIn network’));
sp_PostIndexUserYouTube(”, __sp(‘View my YouTube channel’));
sp_PostIndexUserGooglePlus(”, __sp(‘Interact with me on Google Plus’));
sp_SectionEnd(”, ‘user-identities’);
sp_InsertBreak();
sp_PostIndexUserStatus(‘tagClass=spRight spPostUserStatus’, __sp(‘Online’), __sp(‘Offline’));
 
 
sp_ColumnEnd();
sp_InsertBreak();
sp_PostIndexUserSpecialRank(‘tagClass=spPostUserSpecialRank spCenter&stacked=0&showTitle=0&imgClass=spUserBadge’);
sp_SectionEnd(‘tagClass=spClear’);
 
 
# Post Content post row
# ———————————————————————-
sp_SectionStart(‘tagClass=spPostSection’);
 
# Start the ‘post’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPostActionSection’, ‘action’);
sp_GoToTop(‘tagClass=spRight spGoToTop&iconClass=spIcon’, ”, __sp(‘Go to Top’));
sp_PostIndexPinned(‘tagClass=spStatusIcon spLeft’, __sp(‘This post is pinned’));
if (function_exists(‘sp_PostIndexPostByEmail’)) sp_PostIndexPostByEmail(‘tagClass=spStatusIcon spLeft’, ‘This post was sent by email’);
sp_PostIndexNumber(‘tagClass=spLabelBordered spLeft’);
sp_PostIndexEditHistory(‘tagClass=spButton spLeft’, ”, __sp(‘Edited by %USER% on %DATE%’), __sp(‘View edit history’));
sp_PostIndexPermalink(‘tagClass=spButton spLeft’, ”, __sp(‘The post permalink’));
sp_PostIndexPrint(‘tagClass=spButton spLeft’, ”, __sp(‘Print this post’));
sp_PostIndexNewPost(‘tagClass=spLabelBordered spLeft’, __sp(‘New’));
if (function_exists(‘sp_PostIndexRatePost’)) sp_PostIndexRatePost(‘tagClass=spLabelBordered spPostRating spRight’);
if (function_exists(‘sp_PostIndexReportPost’)) sp_PostIndexReportPost(‘tagClass=spButton spRight’, __sp(‘Report’), __sp(‘Report this post to admin’));
sp_PostIndexQuote(‘tagClass=spButton spRight’, __sp(‘Quote’), __sp(‘Quote this post and reply’));
sp_PostIndexEdit(‘tagClass=spButton spRight’, __sp(‘Edit’), __sp(‘Edit this post’));
sp_PostIndexDelete(‘tagClass=spButton spRight’, __sp(‘Delete’), __sp(‘Delete this post’));
if (function_exists(‘sp_PostIndexSendPm’)) sp_PostIndexSendPm(‘tagClass=spButton spRight’, __sp(‘PM’), __sp(‘Send PM to this user’));
                                        if (function_exists(‘sp_thanks_thank_the_post’)) sp_thanks_thank_the_post(‘tagClass=spButton spRight’, __sp(‘Thank’), __sp(‘Thanked’), __sp(‘Add thanks to this post’), __sp(‘You have already thanked this post’));
sp_SectionEnd(”, ‘action’);
sp_InsertBreak();
 
sp_SectionStart(‘tagClass=spPostContentSection’, ‘content’);
sp_PostIndexContent(”, __sp(‘Awaiting Moderation’));
sp_SectionEnd(”, ‘content’);
sp_InsertBreak();
 
                                    # Add Share This and/or Answers Topic to bottom of post content
                                    # ———————————————————————-
                                    if (function_exists(‘sp_ShareThisTopicIndexTag’) || function_exists(‘sp_AnswersTopicAnswer’) || function_exists(‘sp_thanks_thanks_for_post’)){
                                        sp_ColumnStart(‘tagClass=spPluginSection spCenter’);
                                        if (function_exists(‘sp_ShareThisTopicIndexTag’)) sp_ShareThisTopicIndexTag(‘tagClass=ShareThisTopicIndex spLeft’);
                                        if (function_exists(‘sp_AnswersTopicAnswer’)) {
                                            if ($spThisPost->post_index == 1) sp_AnswersTopicSeeAnswer(‘tagClass=spAnswersTopicSeeAnswer spButton spRight’, __sp(‘See Answer’), __sp(‘Go to the post marked as the answer’));
                                            sp_AnswersTopicAnswer(‘tagClass=spRight’, __sp(‘Answers Post’), __sp(‘This post answers the topic’));
                                            sp_AnswersTopicPostIndexAnswer(‘tagClass=spButton spRight’, __sp(‘Mark as Answer’), __sp(‘Mark this post as topic answer’), __sp(‘Unmark as Answer’), __sp(‘Unmark this post as topic answer’));
                                        }
                                        sp_ColumnEnd();
                                        if (function_exists(‘sp_thanks_thanks_for_post’)) {
                                            sp_InsertBreak();
                                            sp_thanks_thanks_for_post();
                                        }
                                        sp_InsertBreak();
                                    }
                                    # End Share This and/or Answers Topic addition
                                    # ———————————————————————-
 
sp_PostIndexUserSignature(‘tagClass=spPostUserSignature spCenter&maxHeightBottom=55’);
sp_InsertBreak();
sp_SectionEnd();
 
sp_InsertBreak();
 
sp_SectionEnd(”, ‘post’);
 
endwhile; else:
sp_NoPostsInTopicMessage(‘tagClass=spMessage’, __sp(‘There are no posts in this topic’));
endif;
 
sp_SectionEnd(”, ‘postlist’);
 
sp_SectionEnd(”, ‘topic’);
 
# Start the ‘pagelinks’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spPlainSection’, ‘pageLinks’);
sp_PostNewButton(‘tagId=spPostNewButtonBottom&tagClass=spButton spRight’, __sp(‘Add Reply’), __sp(‘Make a new post in this topic’), __sp(‘This topic is locked’), __sp(‘No permission to create posts’));
sp_PostNewTopicButton(‘tagId=spPostNewTopicButtonBottom&tagClass=spButton spRight’, __sp(‘Add Topic’), __sp(‘Start a new topic’), __sp(‘This forum is locked’));
sp_PostIndexPageLinks(”, __sp(‘Page: ‘), __sp(‘Jump to page %PAGE% of this topic’), __sp(‘Jump to page’));
sp_InsertBreak();
sp_SectionEnd(”, ‘pageLinks’);
 
# Start the ‘editor’ section
# ———————————————————————-
sp_SectionStart(‘tagClass=spHiddenSection’, ‘editor’);
sp_PostEditorWindow($addPostForm, $editPostForm);
sp_SectionEnd(”, ‘editor’);
else:
sp_NoTopicMessage(‘tagClass=spMessage’, __sp(‘Access denied – you do not have permission to view this page’), __sp(‘The requested topic does not exist’));
endif;
 
sp_SectionEnd(”, ‘topicView’);
 
sp_SectionEnd(”, ‘body’);
 
# Load the forum footer template – normally last thing
# ———————————————————————-
sp_SectionStart(‘tagClass=spFootContainer’, ‘foot’);
sp_load_template(‘spFoot.php’);
sp_SectionEnd(”, ‘foot’);
?>
SP Simple Press
Simple Press
Admin

Hi:

Troubleshooting custom code is beyond the scope of free support so I’ll leave that portion to someone else in the forum who might be willing to jump in and help.

Regarding the prior suggestion to upload the basic child theme for stacked, did that work or is that part of the thread that no longer needs pursuing?  We were trouble-shooting an error message with your child theme so not sure if we need to continue doing that since you didn’t answer the prior question explicitly.

Thanks.

SP Simple Press
Simple Press
Admin

Oh, looks like I actually missed your answer about the child theme from the prior post.  That showed up in my email AFTER your code response. Sorry about that.

FI fiddlerman
fiddlerman
Member

When choosing the link on the Theme Editor called “stacked-child.css” I get a blank page.

I really have no idea how to edit this theme and was really looking to hire someone to help me. Is there anyone that you guys can recommend for the job. Someone who works on these themes to begin with.

Thanks

Theme-Editor-1.jpg
SP Simple Press
Simple Press
Admin

Hi:

hmmm….editing that css might be a bug.  I don’t believe I’ve tried that recently – we usually just edit it on the back-end via FTP.  I’ve opened an issue on our tracker in github for it: https://github.com/Simple-Press/simple-press/issues/58

For the scope of work and modifications I’ll open a private ticket for you so we can discuss costs and other items on that.

Thanks.

FI fiddlerman
fiddlerman
Member

Simple Press said
…..For the scope of work and modifications I’ll open a private ticket for you so we can discuss costs and other items on that……

Thanks

SP Simple Press
Simple Press
Admin

Hi – please check your email for a notification and a link to the private ticket.  If you haven’t received that email for some reason you can use the MY TICKETS link at the top of our website to view the ticket.

Thanks.