PDA

View Full Version : Whats the primary usergroup call?


need2fart
10-01-2010, 08:04 PM
Whats the primary usergroup call?
This: is_member_of($vbulletin->userinfo
Is there a way to see if the user is only in the primary usergroup? My additional usergroups are screwing up my permissions. I just want it to check primaries.

Paul M
10-01-2010, 08:05 PM
$vbulletin->userinfo['usergroupid']

need2fart
10-01-2010, 09:03 PM
$vbulletin->userinfo['usergroupid']

Thanks.

What if I see something like this?

is_member_of($vbulletin->userinfo, unserialize($vbulletin->options['view_ads']));
How do I apply it?

Do I just add ['usergroupid'] to the end of userinfo ?

--------------- Added 1285989658 at 1285989658 ---------------

I tried adding that. It didn't work. is_member_of($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['view_ads']));

I still see ads when I put my additional usergroups to my account.
I just want the primary usergroup to be exempt from viewing the advertisements.

--------------- Added 1285990625 at 1285990625 ---------------

Nevermind. I figured it out.

who coulda thought it was self-explanatory.

is_member_of($vbulletin->userinfo['permissions'], unserialize($vbulletin->options['view_ads']));