works like a charm for me too bro. I have 12 forums to add to the list. I also have 7 user groups. can you tell me what numbers are for each user group or where I can find that info in the control panel? is 0 the user group for admins and mods, the 1 for guest and 2 for registered? 3,4,5 etc would be for the next ser groups down the line?. also, one las tthing. to add more then one forum do I add
($forum['forumid']==X) a space over from the current one but withing the ending ) to look like what I made below?
I think would probably be what would cover multiple forums. just need to know what my user groups are I guess.
I, for oone, definitely appreciate your help on this code, thanks bro
.....mauisun
if (($bbuserinfo[usergroupid]=='2' OR $bbuserinfo[usergroupid]=='1') AND ($forum['forumid']==X) AND ($forum['forumid']==X))
{
$forum['lastpostinfo']='No Peaking';
}
1- To learn usergroupids, right click the usergroup name in usergroup lists and choose to "open in new browser window". Then in the new window check address bar and you'll see the usergroup id for that usergroup
2- try this code:
PHP Code:
$banforumids=array('X','Y','Z');
$banusergroupids=array('A','B','C');
if ( in_array($bbuserinfo[usergroupid],$banusergroupids) AND in_array($forum['forumid'],$banforumids) )
{
$forum['lastpostinfo']='No Peaking';
}