Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
[]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...

Sponsored Links
Entire Thread
Subject Posted By Posted
Beta-[6.4] Registration Mod 6.4 JoshPet 01/13/2004 9:42 AM
Re: Beta-[6.4] Registration Mod 6.4 donJulio 01/13/2004 7:28 PM
Re: Beta-[6.4] Registration Mod 6.4 deltajo 01/14/2004 8:48 PM
Re: Beta-[6.4] Registration Mod 6.4 JoshPet 01/14/2004 9:47 PM
Re: Beta-[6.4] Registration Mod 6.4 deltajo 01/15/2004 1:21 AM
Stock avatar part missing? donJulio 01/15/2004 8:26 PM
Re: Stock avatar part missing? JoshPet 01/15/2004 9:07 PM
Re: Stock avatar part missing? donJulio 01/15/2004 9:11 PM
Re: Stock avatar part missing? deltajo 01/15/2004 9:22 PM
Re: Stock avatar part missing? JoshPet 01/15/2004 9:32 PM
Re: Stock avatar part missing? donJulio 01/16/2004 4:19 AM
Re: Stock avatar part missing? MattUK 01/17/2004 5:12 PM
Re: Stock avatar part missing? donJulio 01/17/2004 6:52 PM
Re: Beta-[6.4] Registration Mod 6.4 JoshPet 01/27/2004 9:21 AM
Re: Stock avatar part missing? smoknz28 01/31/2004 8:28 AM
Re: Stock avatar part missing? JoshPet 01/31/2004 8:32 AM
Re: Stock avatar part missing? smoknz28 01/31/2004 9:27 AM
Re: Beta-[6.4] Registration Mod 6.4 Pilgrim 03/04/2004 6:46 PM
Re: Beta-[6.4] Registration Mod 6.4 shortbus 03/04/2004 9:49 PM
Re: Beta-[6.4] Registration Mod 6.4 JoshPet 03/06/2004 2:41 PM
Re: Beta-[6.4] Registration Mod 6.4 donJulio 03/08/2004 8:06 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 538
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 8
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)