This is a small hack that enters "NT = No text" into the body of the message if the subject ends with "NT", with or without surrounding [] or (), if the body is empty. It also won't allow posts without anything in the body unless NT is in the subject.
Just find the following line (at line 90 in v6.0):
code:
if ( (ereg("^\s*$",$Subject)) || ($Body == "") || ($postername == "") ) {
And replace it with the following:
code:
#if ( (ereg("^\s*$",$Subject)) || ($Body == "") || ($postername == "") ) {
if ( (eregi("NT(\)|\])?$",$Subject)) && (preg_match("/^\s*$/i",$Body)) ) {
$Body = "{$ubbt_lang['NOTEXT']} ";
}
if ( (ereg("^\s*$",$Subject)) || (preg_match("/^\s*$/i",$Body)) || ($postername == "") ) {
The add the following line to the addpost.php language file (and change the text to something else if you like):
code:
$ubbt_lang['NOTEXT'] = "NT = No Text";