PDA

View Full Version : Minimum number of characters in a reply?


Platinumgamer
01-30-2002, 07:13 PM
I'm not sure if this was requested before or not(Looked through most of the hacks in the hack database and didn't find it) But, can this be done? I want to stop spam posts on my board...I think the only way of doing so would be to limit the number of characters in a reply. Can someone help me out?

Thanks....

[nEtWoRk]
02-01-2002, 07:26 PM
]1. Open newreply.php, find:

if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
eval("standarderror(\"".gettemplate("error_toolong")."\");");
}

Below add:

$postminchars = 10;
if (strlen($message) < $postminchars) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}

2. Edit the variable $postminchars
3. Create a template called error_tooshort and insert a error message

Platinumgamer
02-02-2002, 12:29 AM
Thanks!