Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
PDF or HTML backup
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
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?

Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
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');

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 4, 2015 - 4:01 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sjoerd
Amsterdam, The Netherlands
Member
Free Members
sp_UserOfflineSmall Offline
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!  🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 79613