PDA

View Full Version : usergroup condition in php


squishi
01-13-2009, 09:25 PM
In a php file, how do I check if a user belongs to a certain usergroup?

Lynne
01-13-2009, 10:29 PM
This should check the usergroup of the user viewing the page:

if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
whatever
}

Dismounted
01-14-2009, 03:44 AM
Remember that you must have included vBulletin's global.php before those functions will work.