Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Printthread
#1
Not Solved
how to add this to printthread so they have to login to view the print thread Smile
http://community.mybb.com/thread-127484-...#pid923244
Reply
#2
Not Solved
you can simply use the Template Conditionals plugin and then use a conditional like below for printthread in the showthread template...

<if $mybb->user['usergroup'] != 1 then><li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li></if>
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#3
Not Solved
edit: this is another method. above given method is preferable.

open printthread.php file in an advanced editor like notepad++ or through file manager at your web host
find below code at line 16
require_once "./global.php";
after it in a new line you can add
if($mybb->user['uid'] < 1) error_no_permission();

note: php files should be saved in utf encoding without BoM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)