Quote:
If anyone is wanting to restrict this based on usergroup/membergroup,
FIND:
PHP Code:
require_once(DIR . '/includes/functions_user.php');
BELOW IT, ADD:
PHP Code:
if (!(in_array($vbulletin->userinfo['usergroupid'], array(x,y,z))) AND !(in_array($vbulletin->userinfo['membergroupids'], array(a,b))))
{
print_no_permission();
}
Do change a,b,x,y,z with the appropriate user and member group ids.
|
I've tried this, using the usergroup IDs, but what are the member group IDs?
I tried using the same numbers as usergroup IDs (which I figure is wrong, but couldn't work out what else to put here) and when I try to access the radio I get no permission message.
Thanks