1. open shows.inc.php in inc folder ... important make back-up first.
find
CODE
$name = trim($name);
$mail = trim($mail);
add one more
CODE
$new = trim($_POST['new']);
find
CODE
if( strlen($name) > 50 ){
echo"
Your name is too long!
";
$CN_HALT = TRUE;
break 1;
}
add this
CODE
if( strlen($new) > 50 ){
echo"Your write too long!
";
$CN_HALT = TRUE;
break 1;
}
find
CODE
$comments = replace_comment("add", $comments);
$name = replace_comment("add", preg_replace("/\n/", "",$name));
$mail = replace_comment("add", preg_replace("/\n/", "",$mail));
add
CODE
$new = replace_comment("add", preg_replace("/\n/", "",$new));
find
CODE
Password:
add under
CODE
find
CODE
if($name == " " or $name == ""){
echo("");
$CN_HALT = TRUE;
break 1;
}
add
CODE
if($new == "Hello" or $new == "hello" ){ $ok = TRUE;}
else
{ echo("");
$CN_HALT = TRUE;
break 1;
}
Please ... before you save show.inc.php , make sure javascript dont have space like this
java script:history.go(-1)
2. Go to the comments form template.
add this piece of code to the form
CODE
Say Hello :