Genders

Choosing when registration - Genders

Choosing when registration

by Widmo696 » Sat Dec 12, 2015 6:27 am

Hello,

How to add option to choose gender when registering?
I tried to add this code in ucp_register.php

Code: Select all

<dl>
      <dt><label for="gender_x">{L_GENDER}{L_COLON}</label></dt>
      <dd>
         <label for="gender_m"><input type="radio" name="gender" id="gender_m" value="{GENDER_M}" /> {L_GENDER_M}</label>
         <label for="gender_f"><input type="radio" name="gender" id="gender_f" value="{GENDER_F}" /> {L_GENDER_F}</label>
         <label for="gender_x"><input type="radio" name="gender" id="gender_x" value="{GENDER_X}" /> {L_GENDER_X}</label>
      </dd>
   </dl>


But don't work so propably need to add code in listener.php
Forgive me my English.
Widmo696
Registered User
Posts: 57
Joined: Wed Nov 18, 2009 12:14 am
Contact:

Re: Choosing when registration

by RMcGirr83 » Sun Dec 13, 2015 1:00 pm

Disable the extension and upload the attached, then reenable the extension
Attachments
rmcgirr83.zip
(19.55 KiB) Downloaded 756 times
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21033
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Choosing when registration

by Widmo696 » Tue Dec 15, 2015 8:44 pm

It works great! Thank you! :)
Forgive me my English.
Widmo696
Registered User
Posts: 57
Joined: Wed Nov 18, 2009 12:14 am
Contact:

Re: Choosing when registration

by Widmo696 » Tue Dec 22, 2015 12:31 am

It's strange because now I saw that language don't work at register page. When i go to my UCP and want to change gender there's no problem, but when i tried to register i have "GENDER_M GENDER_F GENDER_X". Why don't read language file in registration page?
Forgive me my English.
Widmo696
Registered User
Posts: 57
Joined: Wed Nov 18, 2009 12:14 am
Contact:

Re: Choosing when registration

by RMcGirr83 » Thu Dec 24, 2015 11:27 am

It is using the same code as for updating a profile so not sure why it isn't. Only thing I can think of is that the users language isn't being set. Are you using the en lang as your default language for the forum? If not then you probably have to translate it for the language in use.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21033
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Choosing when registration

by didou116 » Tue Dec 29, 2015 6:43 pm

Hi,

Would it be possible to add this option in the original extension, so that the future updates won't require to re-apply this modification ?

Thanks in advance for your answer ;)
didou116
Registered User
Posts: 38
Joined: Wed Jul 22, 2015 3:16 pm
Contact:

Re: Choosing when registration

by RMcGirr83 » Wed Dec 30, 2015 11:43 am

Not sure if there will be any future updates but if there are I will be sure to include it as an option in a ACP entry.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21033
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Choosing when registration

by didou116 » Wed Dec 30, 2015 2:26 pm

Great! Thanks ;)
didou116
Registered User
Posts: 38
Joined: Wed Jul 22, 2015 3:16 pm
Contact:

Re: Choosing when registration

by carloclaessen » Tue Feb 09, 2016 3:24 am

any update on this, also would like to see this and be able to set it to required
carloclaessen
Registered User
Posts: 494
Joined: Sun Mar 23, 2003 11:55 pm
Contact:

Re: Choosing when registration

by enter a valid email » Sat Apr 08, 2017 5:43 pm

How about 3.2?
Is there anything different?
I need the Gender thing for some serious stuff. The Forum will be a Registration for your social club.
How does the Values get stored in the DB?
enter a valid email
Registered User
Posts: 276
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact: