Log in

View Full Version : Moderating Function?


Logikos
07-27-2005, 09:06 AM
I was wondering if there is a function to show if a user is a moderator or not. I want to update a hack of mine. The old code is below:

if (
$vbulletin->userinfo['usergroupid'] == 6
OR $vbulletin->userinfo['usergroupid'] == 7
OR $vbulletin->userinfo['usergroupid'] == 5
)
{
// code here
}


Is there a function so i can clean this up some?


if (can_moderate())
{
// code here
}


Something along those lines maybe? Thanks guys!

Andreas
07-27-2005, 09:46 AM
Is there a function so i can clean this up some?


if (can_moderate())
{
// code here
}


That's it :)

Logikos
07-27-2005, 09:47 AM
lmao figures, next time i should test it. :p

Marco van Herwaarden
07-27-2005, 11:39 AM
ROFLMAO

Someone please bring me some water. :D

Logikos
07-27-2005, 12:49 PM
hmmm, you can hide this thread now :p