• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Blocked users disable profile

Deadman7030

New member
Code:
if(!$show['admincplink'] AND !$show['modcplink'] AND ($userinfo['usergroupid'] == 8 OR ($userinfo['membergroupids'] AND in_array(8, explode(",", $userinfo['membergroupids'])))))
{
print_no_permission(); 
}

how would it look like at 2 user groups?
 
I would use:

PHP:
is_member_of($userinfo['userid'], array(X,Y))

and this will catch both primary and secondary usergroups, where X and Y are the two group in question. :)
 
Back
Top