PHP Code:
//check flooding
if (THIS_SCRIPT != 'editpost' AND $vboptions['floodchecktime'] > 0 AND $bbuserinfo['userid'] != 0 AND $bbuserinfo['usergroupid'] != 12 AND (TIMENOW - $bbuserinfo['lastpost']) <= $vboptions['floodchecktime'] AND !can_moderate($foruminfo['forumid']) AND !$post['preview'])
{
eval('$errors[] = "' . fetch_phrase('floodcheck', PHRASETYPEID_ERROR) . '";');
}
I try to add in a AND $bbuserinfo['usergroupdid'] != 12 in there, as you can see, which is a secondary usergroup. I was wondering if anyone could help me out here, because the primary usergroup they are in is 2, which is registered members. If I do set it to two, it works, but it works for all users.