PDA

View Full Version : How to check for banned usergroup?


Cloudrunner
08-02-2004, 08:57 PM
Alright, so to check for guest is easy
if($bbuserinfo['userid'] == 0)

but how do I check to see if the user is in a specific usergroup?

Is there a $bbuserinfo[''] code for the usergroup?

One last question, how would I see what is in a specific array variable?

Thanks for any help on these questions.

)O( Cloudrunner )O(

Revan
08-02-2004, 10:19 PM
I can tell you how to see the contents of an array.

echo "<pre>";
print_r($array);
echo "</pre>";

;)

Andreas
08-02-2004, 10:25 PM
if (is_member_of($bbuserinfo, 10))


This does check if the user is member of group id 10.

nexialys
08-02-2004, 10:33 PM
damn, KirbyDE was faster than me on this one.. ;)

Hiro
08-02-2004, 10:50 PM
Im ages late, I knew the answer anyway :)

Andreas
08-02-2004, 10:52 PM
damn, KirbyDE was faster than me on this one.. ;)
Hehe :p

nexialys
08-02-2004, 11:04 PM
that's occuring only because the kids are around the computer harrasing their father to play some kind of stupid things called games! lol :)

Cloudrunner
08-03-2004, 08:51 AM
if (is_member_of($bbuserinfo, 10))


This does check if the user is member of group id 10.
Thank you all muchly I appreciate it.