Quote:
Originally posted by Xenon
this 
PHP Code:
$varname="field$profilefield[profilefieldid]";
if ($profilefield[required] and $$varname=="")
{
eval("standarderror(\"".gettemplate("error_requiredfieldmissing")."\");");
exit;
} else if ($profilefieldid == 2 and $$varname != "" and strlen($$varname)<5) {
eval("standarderror(\"".gettemplate("error_notenoughchars")."\");");
exit;
}
now create the new template error_notenoughchars
|
Maybe it's me, but after I add that code in to member.php and then go to my profile, edit, change my location to only 3 characters, it still allows it.