Guests can see forums and threads, but must register to read threads

Nightvision

New Member
Guests can see forums and threads, but must register to read threads


Code:
In showthread.php, look for the following:
 
if (!($forumperms & CANVIEWOTHERS) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
 print_no_permission();
}
 
 
Below this, paste the following:
###DENY NOT LOGGED IN (USER 0) AND USERS AWAITING EMAIL CONFIRMATION (GROUP 3)###
if($bbuserinfo['userid']==0||$bbuserinfo['usergroupid']==3) print_no_permission();
 
Top