open your register.php and find this:
PHP Code:
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$havefields = 1;
$varname="field$profilefield[profilefieldid]";
if ($profilefield[required] and $$varname=="") {
eval("standarderror(\"".gettemplate("error_requiredfieldmissing")."\");");
exit;
}
$$varname=censortext($$varname);
// ENTER ANY CUSTOM FIELD VALIDATION HERE!
//Make sure user didn't try to bypass the maxchars for the fields
$$varname=substr($$varname,0,$profilefield[maxlength]);
$userfieldsnames.=",field$profilefield[profilefieldid]";
$userfields.=",'".addslashes(htmlspecialchars($$varname))."'";
}
change it to:
PHP Code:
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$havefields = 1;
$varname="field$profilefield[profilefieldid]";
if ($profilefield[required] and $$varname=="") {
eval("standarderror(\"".gettemplate("error_requiredfieldmissing")."\");");
exit;
}
$$varname=censortext($$varname);
// ENTER ANY CUSTOM FIELD VALIDATION HERE!
//Make sure user didn't try to bypass the maxchars for the fields
$$varname=substr($$varname,0,$profilefield[maxlength]);
$userfieldsnames.=",field$profilefield[profilefieldid]";
if($profilefield[profilefieldid]==5) $$varname=1;
$userfields.=",'".addslashes(htmlspecialchars($$varname))."'";
}