Page Index Toggle Pages: 1
Topic Tools
Normal Topic optional gender on registration (Read 2,966 times)
BloodyRue
Junior Member
**
Offline



Posts: 83

None
Re: optional gender on registration
Reply #3 - Mar 8th, 2012 at 7:02am
Post Tools
Bump

While testing my XCAPBAN program to limit captcha validation attempts I kept running into this and figured it was fixed somewhere. Thought I ought to bump it.
  

   
Back to top
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: optional gender on registration
Reply #2 - Sep 3rd, 2010 at 10:09am
Post Tools
New
Sources/Register.pl
in CVS/YaBB 2.6 Code.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Re: optional gender on registration
Reply #1 - Sep 3rd, 2010 at 6:17am
Post Tools
Oups  Embarrassed

In Register.pl find
Code (Javascript)
Select All
		if ($gender_on_reg && document.creator.gender.value < 1) { 


and replace it with
Code (Javascript)
Select All
		if ($gender_on_reg > 1 && !document.creator.gender.value) { 


  
Back to top
 
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,015
Location: Rock Hill, South Carolina

None
optional gender on registration
Sep 3rd, 2010 at 4:10am
Post Tools
I chose "Gender" as an optional field on registration here.  I tried to register without choosing a gender, and I was returned an error that it was required.  I did not have it set in the admin center as required.
  

Back to top
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top