[]MattUK said:
This is fantastic.. however..
I think there are a few too many compulsory fields, not everyone has a homepage etc.. so how do we go about only making some of those fields compulsory ? [/]
I'd changed this portion of my adduser.php code from this hack:
// ------------------------------------------------------------
// If all required info is not filled in, then we can't proceed
if(((!$Loginname)||(!$Displayname)||(!$Email)||($agree != "yes")||(!$Occupation)||(!$Hobbies)||(!$Location)||(!$Extra2)||(!$Extra3)||(!$Extra4)||(!$Extra5)) || ((!$Picture) && (!isset($HTTP_POST_FILES['userfile']['name'])) && (!$avurl))){
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}
To:
// ------------------------------------------------------------
// EDITED VERSION OF THE HACK - If all required info is not filled in, then we can't proceed
if(((!$Loginname)||(!$Displayname)||(!$Email)||($agree != "yes")) || ((!$Picture) && (!isset($HTTP_POST_FILES['userfile']['name'])) && (!$avurl))){
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}
I don't want to require my members to have to fill out all the fields...but atleast I want them to have the option up front to fill them in.
Hope this may help you...