The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hi!
I search for a special spam-protection: A user may only post, if he enters more than x words OR y letters... Do you know such a hack? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
make a new template called error_spam (or whatever) and put in your error text, and then open up newreply.php and find
Code:
if ($message=="") {
echo standarderror($bbtitle,gettemplate("error_nosubject",0));
exit;
}
Code:
$rat_numchars = "30"; #change me
if (strlen($message) < $rat_numchars) {
echo standarderror($bbtitle,gettemplate("error_spam",0));
exit;
}
for newthread.php, find Code:
// check for subject and message
if (trim($subject)=="" or trim($message)=="") {
echo standarderror($bbtitle,gettemplate("error_nosubject",0));
exit;
}
Code:
$rat_numchars = "30"; #change me
$rat_message = trim($message);
if (strlen($rat_message) < $rat_numchars) {
echo standarderror($bbtitle,gettemplate("error_spam",0));
exit;
}
|
![]() |
|
|