PDA

View Full Version : lil php question about disabling postflood for some usergroups


DiscussAnything
11-25-2002, 06:28 PM
Default postflood is:

if ($enablefloodcheck) {
if ($bbuserinfo[userid]!=0 and time()-$bbuserinfo[lastpost]<=$floodchecktime and !ismoderator($foruminfo[forumid])) {
eval("standarderror(\"".gettemplate("error_floodcheck")."\");");
exit;
}
}

But I want to disable it for usergroups 11 and 18 as well

I've tried

if ($enablefloodcheck) {
if ($bbuserinfo[userid]!=0 or $bbuserinfo[usergroupid]=!18 or $bbuserinfo[usergroupid]=!11 or !ismoderator($foruminfo[forumid]) and time()-$bbuserinfo[lastpost]<=$floodchecktime) {
eval("standarderror(\"".gettemplate("error_floodcheck")."\");");
exit;
}
}

but this disables it for everyone. What am i doing wrong??

(this is in both newreply.php and newthread.php)

DiscussAnything
11-27-2002, 03:56 PM
noone? please? It can't be all that complex, can it?