Quote:
Today at 03:33 PM Boofo said this in Post #4
Nice little addition. I will make it so Admins and Mods are exempt, though.
|
this code will do this job i think:
PHP Code:
$minmod = array("1", "2", "3", "4");
if (strlen($message)<$postminchars and $postminchars!=0 and in_array("$bbuserinfo[usergroupid]", $minmod)) {
eval("standarderror(\"".gettemplate("error_tooshort")."\");");
}
[high]not tested though![/high]
please tell me if it works
[high]btw, anyone know if there's a similar function to in_array, but that returns FALSE where in_array returns TRUE (like checking if something is NOT in an array...)[/high]