Topic: [HACK] Maximum length of comment
Name: Maximum lenght of comment
Author: Flexer
CuteNews Compatibility: 1.3.6 (higher versions have this built in)
Description: Prevent people from posting long comments that are usually spam anyway.
Instructions:
open shows.inc.php and search for:
if($allow_add_comment){
then below it add this:
$max_len = 300;
if(strlen($comments) > $max_len){
echo("<div style=\"text-align: center;\">Your comment must not be longer than $max_len</div>");
$CN_HALT = TRUE;
break 1;
}
where $max_len is set to the maximum characters that a comment must contain