Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Looking for help with a child theme after upgrading to version 6
Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 18, 2019 - 7:28 pm

Hi:

Can you login to your server via FTP and check to if if there a defstacked-2 folder under sp-resources/forum-themes? 

Thanks.

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2019 - 4:26 am

Simple Press said
Can you login to your server via FTP and check to if if there a defstacked-2 folder under sp-resources/forum-themes? 

Thanks.

I thought of that too when I saw the query, and there was but I removed it. I just figured that once I removed it I would be good.

No matter what I do it's the same:

The current theme stylesheet:

/home/fiddlerm/public_html/test/wp-content/sp-resources/forum-themes/DefStacked/styles/DefStacked

cannot be found. Please correct or select a new theme for proper operation.

At this point it's looking for an extra sub-folder.

Screen-Shot-2019-04-20-at-4.24.36-AM.pngImage Enlarger

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 20, 2019 - 5:54 pm

Hi:

The DefStacked theme is a child theme of Stacked, right? And you're using the 6.0 child theme template?

Maybe now that you've removed the other folder, the thing to do would be to deactivate the Defstack child theme and reactivate it to see if that resets the pointers.

What does the header of the spTheme.txt file look like in the DefStacked folder?  

Thanks.

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2019 - 6:14 pm

Doesn't matter how many times I delete all the folders from that location and re-upload the new ones, it still can't be found and still adds a new subfolder to it's search. Yes DefStacked is a child theme template.

The current theme stylesheet:
/home/fiddlerm/public_html/test/wp-content/sp-resources/forum-themes/DefStacked/styles/DefStacked
cannot be found. Please correct or select a new theme for proper operation.

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 21, 2019 - 6:22 pm

Ok.  Lets see if its a problem with the changes you made to the child template or something else. 

Can you download the stacked-child template from our site and upload to your site?  It should create a folder called stack-child.  Does that activate properly?

Thanks.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 21, 2019 - 6:34 pm

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

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2019 - 7:21 pm

That works.

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
fiddlerman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 21, 2019 - 7:39 pm

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');
?>

"The richest person is not the one who has the most, but the one who needs the least."


Learn to Play Violin for Free - http://www.fiddlerman.com

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 21, 2019 - 9:01 pm

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.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 21, 2019 - 9:30 pm

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.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616