Log in

View Full Version : How To Display Data Based On A Group


Mosaicvb
01-09-2005, 06:34 AM
I am trying to add some hacks in however I only want those tables to display to admins or moderators.
I know i need a php if wrapped around them however I can not find anything that helps me work out what group a user is in.

if user in Admin or Moderators then blah else nothing.

Any help would be greatly appreciated

rake
01-09-2005, 08:41 AM
if(is_member_of($bbuserinfo,6) OR is_member_of($bbuserinfo,5) OR is_member_of($bbuserinfo,7))
{
// code
}

Mosaicvb
01-09-2005, 05:26 PM
Thanks rake!