PDA

View Full Version : function to check if user is in a certain group


LlamaBE
08-07-2007, 08:01 PM
Hi,

I'm currently integrating a site and vBulletin. I'm currently able to access the $vbulletin variable, where i can find most of the data needed.

However, I was wondering if there already were some functions defined for certain things. For access to some pages i need to know if a user is member of a certain group, but not necessarily his Primary Group.

I know i can manually check this, but it seems to me that this code must have already been written in vbulletin. Is there a function like i need? Where can i find more info about it. Is there some API documentation or someting alike.

Thanks,

Tom

Dismounted
08-08-2007, 06:10 AM
is_member_of($userinfo, $usergroups)