SMF Support > SMF 2.0.x Support

How can I change the Report Timer?

(1/1)

Ryley Kimmel:
Alright, well the 'Report to Moderator' timer is set to 90 seconds, and I would like to lower it to something around 30 seconds, I cannot find any guides or anything online. How would I go about doing this?

Arantor:
It's based on Admin > Forum > Posts and Topics > Post Settings > Time between posts from the same IP address

Whatever time is in there in seconds, the maximum number of reports will be 4 times that. The default is 5 seconds between posts, so normally it's 20 seconds between reports.

If you really need to change it, it's a change to Subs.php, in spamProtection(), in this code:

--- Code: --- $timeOverrides = array(
'login' => 2,
'register' => 2,
'sendtopc' => $modSettings['spamWaitTime'] * 4,
'sendmail' => $modSettings['spamWaitTime'] * 5,
'reporttm' => $modSettings['spamWaitTime'] * 4,
'search' => !empty($modSettings['search_floodcontrol_time']) ? $modSettings['search_floodcontrol_time'] : 1,
);
--- End code ---

Change the reporttm line to => 30 or similar. Or just reduce the time between posts. Don't be afraid to warn people if they're spamming...

Navigation

[0] Message Index

Go to full version