PDA

View Full Version : Multiple usergroups?


soundboy
10-19-2008, 05:13 AM
I have this code..

if ($vbulletin->userinfo['usergroupid'] == '142' )
{echo'Content';}


But it only allows one usergroup to see the content. How can i make it so 2 or 3 usergroups can see it?

Thanks :)

Dismounted
10-19-2008, 05:28 AM
if (is_member_of($vbulletin->userinfo, 142, 143))
{
// some content
}

soundboy
10-19-2008, 05:45 AM
Brilliant! Thanks. :D