Well, this is why this hack logs the user's IP address.
We can always use the email spam check time limit for the normal email form, but this means adding another query. It can be done.
In contact.php,
Find:
PHP Code:
eval("dooutput(\"".gettemplate('contact_sent')."\");");
ABOVE THIS, add:
PHP Code:
$DB_site->query("UPDATE user SET lastemail=$ourtimenow WHERE userid='$bbuserinfo[userid]'");
Then, find:
PHP Code:
if ($action == "send") {
BELOW, add:
PHP Code:
if ($emailspamcheck) {
if (time()-$bbuserinfo[lastemail]<=$spamtimelimit) {
eval("standarderror(\"".gettemplate("error_spamcheck")."\");");
exit;
}
}
So if you have email spam check enabled, and you have set the time limit in your Admin CP vB Options, then the email flood spam check time limit will apply to the Contact Form as well.
Not tested, but should work.