This is what I came up with (in newthread.php)
PHP Code:
// new thread creation rate-limiting
if ($enablefloodcheck) {
$lastthreads=$DB_site->query("SELECT dateline FROM thread WHERE dateline > UNIX_TIMESTAMP(NOW())-3600 AND postusername='$bbu
serinfo[username]'");
$lastthreads=$DB_site->num_rows($lastthreads);
if ($bbuserinfo[userid]!=0 and $lastthreads>=5 and !ismoderator($foruminfo[forumid])) {
eval("standarderror(\"".gettemplate("error_threadcheck")."\");");
exit;
}
}
All i have to do now is make an error_threadcheck template