vb.org Archive
>
vBulletin 3 Discussion
>
vB3 General Discussions
> Mod / Admin Check
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;
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.