PDA

View Full Version : checking if a user is in group 10


diesel08
12-04-2005, 12:38 AM
i just need to check in php script.. if user is a member of group 10

ive been playing with code..

$vbulletin->userinfo['usergroupid'];

only returns 1 of the groups, and in my case group 6 only.. the admin..

10 is an addon 'special memebrs group'

akanevsky
12-04-2005, 01:02 AM
if (is_member_of($vbulletin->userinfo, 10))
{
... your code ...
}

FYI, addon usergroups are in $vbulletin->userinfo['membergroupids'], but there is usually no need to access that directly.

diesel08
12-04-2005, 02:56 AM
thanks champ