Quote:
Originally Posted by RetroDreams
I just upgraded my forums to vb3 from 2.2.8. Can anyone tell me the new code to make the chat.php only for certain usergroups?
|
In chat.php find this:
Code:
if (!$bbuserinfo['userid'])
{
print_no_permission();
}
Replace it with this:
Code:
if(!in_array($bbuserinfo['usergroupid'], array(X,X,X)))
{
print_no_permission();
}
In the code above where it says array(X,X,X) replace those Xs with the usergroup IDs for those that you want to allow access to chat. Members of all other usergroups will recieve a no permission message when viewing the page.