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)
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)