PDA

View Full Version : Mod / Admin Check


ShannonA
05-26-2006, 07:19 PM
What's the best way to check if individual user 'X' (the poster) is either a moderator or an admin when you're in a postbit hook?

Mosh
05-27-2006, 08:36 AM
Here is what I would use:

if (in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)))
{
your code here;
}