Support Forum

Print option on each post

AM AM
AM
Member

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

I want only the admin to be able to print.

Thanks

1 Answer

New Answer

MP Mr Papa
Mr Papa
Member

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/codex/themes/theme-basics/creating-a-theme/