edit newreply.php and newthread.php, find:
PHP Code:
$message=trim($message);
if ($message=="") {
eval("standarderror(\"".gettemplate("error_nosubject")."\");");
exit;
}
After that add:
PHP Code:
if ($message==strtoupper($message)) {
eval("standarderror(\"".gettemplate("error_noallcaps")."\");");
exit;
}
Create a new template named "error_noallcaps" and give your warning.
Notices:
1- This will give your users the error if their post does not contain any letters. Examples:
: )
11
****
etc.
2- Even if one letter is in lowercase, error will not be displayed. So this can be posted:
wHO SAYS I CANT POST IN ALL CAPS!!!!!
while this will produce the error:
WHO SAYS I CANT POST IN ALL CAPS!!!!!
3- If posts includes bbcode and if that code is in lowercase, error will not be displayed