A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
themes-topic
Looking for help with a child theme after upgrading to version 6
Avatar
fiddlerman

358 Posts
(Offline)
1
Apr 14, 2019 - 9:19 am
Print
Looking for help with code to emulate the child theme that I have on version 5 to 6?
 
Here is our test environment: https://test.fiddlerman.com/forum/
 
This is where the forum is live at the moment: Fiddlerman.com/forum/
 
As you can see the badges and icons line up to the left and don’t look very good.
https://test.fiddlerman.com/fo…..on/#p99328
 
Compared to this:
 
Thanks,
 
Pierre
 

"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
394 Posts
(Offline)
2
Apr 14, 2019 - 2:49 pm
Print

Hi:

Can you post some screen shots for the two links instead?  I just tried to click over there but it looks like the links in your message aren’t going where you expect them to go.  I navigated manually to the forum on both sites but wasn’t quite sure what to look for.

Thanks very much.

Avatar
fiddlerman

358 Posts
(Offline)
3
Apr 15, 2019 - 6:41 pm
Print

This forum doesn’t let you upload decent size files. I compressed an image to less than 1024 pixel width and 800 pixel height and it still wouldn’t work.

I posted them on this link: https://fiddlerman.com/screen-shots/

Perhaps one must register to see the below links.

Thanks

________________________

https://test.fiddlerman.com/fo…..on/#p99328

https://fiddlerman.com/forum/p…..on/#p99328

"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
394 Posts
(Offline)
4
Apr 15, 2019 - 8:09 pm
Print

Hi:

Thanks. I see what you mean.  This happens only with the child theme?  If you use the parent theme do you still get the badges stacked vertically?  What about if you use another theme (eg: reboot)?

Thanks.

Avatar
fiddlerman

358 Posts
(Offline)
5
Apr 16, 2019 - 8:21 pm
Print

That is not with my child theme. When I use the child theme with version 6 there are quite a few problems. Presently using the “Stacked” theme. Which theme do you think might work?

Here is the same thing with the default theme:

Default-Theme-Test-Fiddlerman.jpgImage Enlarger

Attachments

"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

358 Posts
(Offline)
6
Apr 16, 2019 - 9:32 pm
Print

This was added to my old Stacked child theme:

Editing Theme File: spTopicView.php

 

<?php
# ————————————————————————————–
#
# Simple:Press Template
# Theme : Stacked
# Template : topic
# Author : Simple:Press
#
# The ‘topic’ template is used to display the Topic/Post Index Listing
#
# ————————————————————————————–
 
 
# == 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
394 Posts
(Offline)
7
Apr 16, 2019 - 11:49 pm
Print

Hi:

In order to use the old child theme you would have to modify it for the new structure and functions in 6.0.  It will not transfer directly (just like the 5.0 themes will not work on 6.0).

But, since you’re using the basic stacked theme and not a child theme I am wondering if maybe the badges are too large which is what is causing them to wrap on the 6.0 themes.  On your test site, what happens if you use smaller images for the badges?  (This is just a test so we can figure out the scope of the issue.  I’d hate for you to pay $$$ for us to custom code something that that might be simple for you to fix).

Thanks.

Avatar
fiddlerman

358 Posts
(Offline)
8
Apr 17, 2019 - 6:59 am
Print

I was using a child theme. The problem is that the badges stack on top of each other instead of lining up from left to right. This was the same issue on version 5 which is why I had a child theme. Even if I make the icons smaller they will place on separate rows.

Here is what it looks like with the default Stacked theme:

Screen-Shot-2019-04-17-at-6.46.58-AM.jpgImage 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
394 Posts
(Offline)
9
Apr 18, 2019 - 1:26 am
Print

Hi:

Ah, ok.  I think I understand now. So the badges in the child theme were moved to the BOTTOM of the posts instead of tiling vertically on the side?

Thanks..

Avatar
fiddlerman

358 Posts
(Offline)
10
Apr 18, 2019 - 6:02 pm
Print

I’ve been trying to work on it on my own but not having luck.

I don’t understand this after both uploading the child theme and changing titles.
Why is it looking in a folder called DefStacked-2?
The stylesheet is located in the DefStacked folder and there shouldn’t be any more sub folders.

Current Theme

The current theme stylesheet:

/home/fiddlerm/public_html/test/wp-content/sp-resources/forum-themes/DefStacked-2/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

Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16922
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
8
Currently Browsing this Page

1 Guest(s)