RobDog888
09-17-2007, 11:16 PM
I cant get the function to determine if the member is in one of the groups or not.
I know its something stupid but ...
if (!(is_member_of($user, 5, 6, 7)))
{
print_no_permission();
}
It works with ....
if (($vbulletin->userinfo['usergroupid'] <> 5) AND ($vbulletin->userinfo['usergroupid'] <> 6) AND ($vbulletin->userinfo['usergroupid'] <> 7))
but I know the is_member_of function is preferred.
I know its something stupid but ...
if (!(is_member_of($user, 5, 6, 7)))
{
print_no_permission();
}
It works with ....
if (($vbulletin->userinfo['usergroupid'] <> 5) AND ($vbulletin->userinfo['usergroupid'] <> 6) AND ($vbulletin->userinfo['usergroupid'] <> 7))
but I know the is_member_of function is preferred.