Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Print option on each post
Avatar
AM
Member
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2013 - 2:03 pm

Is it possible to control who is able to see the print option.

I want only the admin to be able to print.

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2013 - 2:09 pm

in your spTopicView.php template file, just change

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

to

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

as always, we urge you to make your own sp theme rather than editing ours:

http://codex.simple-press.com/.....g-a-theme/

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625