Quote:
Originally Posted by mamboking
I been looking for the code to restrict groups on a non vb page but can't find it. can anyone help? Specifically Users Awaiting Email Confirmation but would like the option of multiple groups.
Thanks a lot
|
Make sure you require the forums global.php file into your non-vB page, and add something like this to it:
PHP Code:
if (in_array($bbuserinfo['usergroupid'], array(x, y, z)))
{
print_no_permission();
}
else
{
//do whatever you want, i.e. what you want the others to see
}
Just replace x, y, z with some usergroups that you want to restrict
Satan