Support Forum

PDF or HTML backup

< 1 2
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
May 3, 2015 - 3:56 am

Yellow Swordfish said
It is from your SP theme's spTopicView template and such a change would only show the print topic icon for admins.

OK!, well was able to adjust this in the spTopicView template however that does not change the view for a member when I login as a member.

Mr Papa
Simi Valley, CA
Member
Free Members
May 3, 2015 - 11:36 am

first, are you sure you modified the active theme? 

second, please post your exact code so we can check for syntax issues (though if wrong would have likely cause errors)...

third, do you run any caching?  do you have a link to example?

Sjoerd
Amsterdam, The Netherlands
Member
Free Members
May 4, 2015 - 3:54 am

# 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_RelatedTopicsButton')) sp_RelatedTopicsButton('tagClass=spButton spRight', __sp('Related Topics'), __sp('Get a list of related topics based on tags for this topic'));
if ($spThisUser->admin && function_exists('sp_PrintTopicView')) sp_PrintTopicView('tagClass=spLink spRight', '', __sp('Topic Print Options'));
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');

Yellow Swordfish
Glinton, England
Member
May 4, 2015 - 4:01 am

Looks just fine to me so can we go for the link so we can take a look?

Yellow Swordfish
Glinton, England
Member
May 4, 2015 - 9:31 am

No - that code is working fine. The Print Topic icon is NOT being shown as I believed.

What you are probably thinking of is the Print Post icon which IS being shown and is a different function altogether. If you want to alsostop that then you will need to change the call to:

sp_PostIndexPrint('tagClass=spButton spLeft', '', __sp('Print this post'));

with

if ($spThisUser->admin) sp_PostIndexPrint('tagClass=spButton spLeft', '', __sp('Print this post'));

which will do the same thing.

Sjoerd
Amsterdam, The Netherlands
Member
Free Members
May 5, 2015 - 3:26 am

OK thanks!, yes that was my confusion! Well I will first study working with child themes because that's more safe I think when editing code. Learning a lot here!  🙂

Yellow Swordfish
Glinton, England
Member
May 5, 2015 - 3:31 am

Glad that worked out OK. Yes - Child Themes are the way to go and nowhere near as complicated as it might at first look... Thanks for the update here and hope it goes well.

< 1 2