Quote:
Originally Posted by kh99
That doesn't work because what you're doing is comparing an integer ($vbulletin->userinfo['usergroupid']) to an array, which doesn't do what you're expecting. There's a php function called in_array() that does what you want:
PHP Code:
if (in_array($vbulletin->userinfo['usergroupid'], array(6,7)))
There's also a vbulletin function called is_member_of() that you can use:
PHP Code:
if (is_member_of($vbulletin->userinfo, 6, 7))
that will also check the secondary usergroups (which may or may not be what you want, but unless you have some very complicated usergroup system, it probably does what you want).
|
cheers Kh99
I actually made it work with AND, well i think it worked ? I have not asked the moderators to test the script yet????
PHP Code:
if ($vbulletin->userinfo['usergroupid'] != 6 AND 7)