The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
Here is what I would use:
Code:
if (in_array($vbulletin->userinfo['usergroupid'], array(5,6,7)))
{
your code here;
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|