Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: JayBachatero on August 01, 2006, 11:51:17 PM

Title: Gender On Registration
Post by: JayBachatero on August 01, 2006, 11:51:17 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=407)

This was originally posted to Tips & Tricks by [Unknown] - packaged as a mod by JayBachatero

http://www.simplemachines.org/community/index.php?topic=27772.0
Title: Re: Gender On Registration
Post by: denislici on August 02, 2006, 07:10:54 AM

would he/she be forced to choose ?
Title: Re: Gender On Registration
Post by: JayBachatero on August 02, 2006, 12:16:50 PM
No but you can make it be required.
Title: Re: Gender On Registration
Post by: fasterthanyours on August 07, 2006, 02:57:22 PM
Can you make a mod or is there a mod for requiring Location?
Title: Re: Gender On Registration
Post by: JayBachatero on August 08, 2006, 12:02:55 AM
There is a Tip & Tricks about it I believe.  I know it was asked for many many times before..
Title: Re: Gender On Registration
Post by: desistyle on August 31, 2006, 04:27:25 AM
will this work for smf 1.1 rc3
Title: Re: Gender On Registration
Post by: JayBachatero on August 31, 2006, 10:47:20 AM
Yes it should work for RC3.
Title: Re: Gender On Registration
Post by: desistyle on August 31, 2006, 12:34:07 PM
An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted. :-[
Title: Re: Gender On Registration
Post by: JayBachatero on August 31, 2006, 02:02:40 PM
Umm weird.  Try this one.
Title: Re: Gender On Registration
Post by: desistyle on August 31, 2006, 07:05:46 PM
did it w/o a problem thanks

Installations actions for "Gender On Registration":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/Register.template.php    Test successful
Title: Re: Gender On Registration
Post by: Gobo on November 08, 2006, 06:00:53 AM
Quote from: denislici on August 02, 2006, 07:10:54 AM

would he/she be forced to choose ?
Quote from: JayBachatero on August 02, 2006, 12:16:50 PM
No but you can make it be required.

could you tell me how?

Aku
Title: Re: Gender On Registration
Post by: dustydogge on November 10, 2006, 04:18:41 AM
Quote from: akulion on November 08, 2006, 06:00:53 AM
Quote from: denislici on August 02, 2006, 07:10:54 AM

would he/she be forced to choose ?
Quote from: JayBachatero on August 02, 2006, 12:16:50 PM
No but you can make it be required.

could you tell me how?

Aku

yes please....HOW?!
Title: Re: Gender On Registration
Post by: JayBachatero on November 11, 2006, 12:23:46 AM
In Register.template.php Find and remove

<input type="radio" name="gender" value="0" checked="checked" tabindex="', $context['tabindex']++, '" /> ', $txt[470], '<br />
Title: Re: Gender On Registration
Post by: dustydogge on November 13, 2006, 02:42:13 AM
Quote from: JayBachatero on November 11, 2006, 12:23:46 AM
In Register.template.php Find and remove

<input type="radio" name="gender" value="0" checked="checked" tabindex="', $context['tabindex']++, '" /> ', $txt[470], '<br />


Yes but that just removes the "N/A" option from the 3 options, leaving just "male" and "female" to be chosen. But with this code, if you choose neither the registration still goes ahead. What I mean was, can it be changed so that if the applicant doesn't make a choice out of the two, the registration does not complete? A popup giving an error and directing the applicant to choose one of them would be perfect.
Title: Re: Gender On Registration
Post by: JayBachatero on November 13, 2006, 08:03:13 AM
True.  It was just a quick fix.  You can make it that "female" is picked by default and that would make them change it ;).  I'll see what I can do about making it mandatory.
Title: Re: Gender On Registration
Post by: dustydogge on November 13, 2006, 08:34:44 AM
Hehe sure, thanks but I'd still prefer if they HAD to make a choice themselves. Sometimes, guys would pretend to be girls on the forum and I don't wanna help them out by pre-selecting "female" as the gender.

Please do let me know if you come up with something. Thanks.
Title: Re: Gender On Registration
Post by: JayBachatero on November 13, 2006, 09:23:22 AM
Ok I haven't tried this so not sure if it's going to work.  In Subs-Member.php
Code (find) Select

// Setup the activation status on this new account so it is correct - firstly is it an under age account?
if ($regOptions['require'] == 'coppa')


Code (add before) Select

// Make them pick a gender.
if (empty($regOptions['extra_register_vars']['gender']))
fatal_error('Please select a gender');
Title: Re: Gender On Registration
Post by: dustydogge on November 14, 2006, 12:29:39 AM
I assume that the Subs-Member.php you are talking about would be located in the Sourcesnew folder, since I upgraded to RC3.

After modifying it, there is no change....the registration still proceeds. No fatal errors.
Title: Re: Gender On Registration
Post by: JayBachatero on November 14, 2006, 01:01:14 AM
Yes that's the correct file.  I'll look into it tom and post something.
Title: Re: Gender On Registration
Post by: rockinaway on December 12, 2006, 12:52:15 PM
Update for 1.1?
Title: Re: Gender On Registration
Post by: JayBachatero on December 12, 2006, 12:57:03 PM
This mod should work in 1.1.
Title: Re: Gender On Registration
Post by: rockinaway on December 12, 2006, 12:57:53 PM
Ok :D
Title: Re: Gender On Registration
Post by: internetbrother on December 22, 2006, 01:01:10 PM
I can't upload it into my packagemanage it says

The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: Gender On Registration
Post by: JayBachatero on January 01, 2007, 10:32:05 PM
What version of SMF are you using?
Title: Re: Gender On Registration
Post by: Xcat on March 20, 2007, 05:04:12 AM
Compatible with 1.1.2?
Title: Re: Gender On Registration
Post by: djpaddystudio7 on March 20, 2007, 12:43:00 PM
it is not compatible with 1.1.2 ...
i thought of doing the thing manually but the coding is diffrent from earlier versions . couldnt apply the mod the way it could be done in earlier versions.

anyways if someone suggests a modification for adding this thing then plz do tell me what i need to modify to get this too http://www.simplemachines.org/community/index.php?topic=134713.0

Title: Re: Gender On Registration
Post by: JayBachatero on March 26, 2007, 09:41:33 AM
Quote from: Xcat on March 20, 2007, 05:04:12 AM
Compatible with 1.1.2?
Just tested it and it works on 1.1.2.
Title: Re: Gender On Registration
Post by: RiderRaghav on July 07, 2007, 07:47:45 PM
I tried installing it on 1.1.3v and it gave me these errors :( ....

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/Register.template.php    Test failed
Title: Re: Gender On Registration
Post by: TrueSatan on July 07, 2007, 08:01:14 PM
All that has happened is that another mod you have previously installed has altered the file that you have a fail on...this mod has found that the file is different from what it is set to edit. The resolution for all such fails is to do a manual installation of the mod.

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
Title: Re: Gender On Registration
Post by: RiderRaghav on July 10, 2007, 08:00:31 AM
Quote from: TrueSatan on July 07, 2007, 08:01:14 PM
All that has happened is that another mod you have previously installed has altered the file that you have a fail on...this mod has found that the file is different from what it is set to edit. The resolution for all such fails is to do a manual installation of the mod.

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

I tried to install it manually but still I'm getting the same error :( .... What should I do ???

Any help would be appreciated ......
Title: Re: Gender On Registration
Post by: TrueSatan on August 09, 2007, 08:24:45 AM
The error you reported was a fail in the package manager so I don't see how you can have the same error if you are trying a manual installation...please follow the instructions in the link I gave you previously.
Title: Re: Gender On Registration
Post by: LadyC on August 30, 2007, 12:55:11 PM
any chance you could add little gender icons that would appear under a person's name when they post a message?
Title: Re: Gender On Registration
Post by: TrueSatan on August 30, 2007, 02:12:38 PM
@ LadyC

Such an function is not part of this mod.
Title: Re: Gender On Registration
Post by: LadyC on August 30, 2007, 04:32:32 PM
maybe someone will write such a mod one day soon.... i hope!
Title: Re: Gender On Registration
Post by: JayBachatero on September 04, 2007, 08:18:11 AM
Quote from: LadyC on August 30, 2007, 12:55:11 PM
any chance you could add little gender icons that would appear under a person's name when they post a message?
Admin > Current Theme > Show gender images in message view
Title: Re: Gender On Registration
Post by: LadyC on September 04, 2007, 02:57:23 PM
got it, thanks!
Title: Re: Gender On Registration
Post by: Jade Elizabeth on September 20, 2007, 11:54:23 AM
is there any way to make it so that they MUST chose between male and female?
lol i saw some reference to it earlier in the thread, but i think its for an earlier version?
Title: Re: Gender On Registration
Post by: TrueSatan on September 20, 2007, 12:36:02 PM
Not currently.
Title: Re: Gender On Registration
Post by: JayBachatero on September 29, 2007, 12:57:56 AM
Quote from: Alundra on September 20, 2007, 11:54:23 AM
is there any way to make it so that they MUST chose between male and female?
lol i saw some reference to it earlier in the thread, but i think its for an earlier version?

Quote from: JayBachatero on November 11, 2006, 12:23:46 AM
In Register.template.php Find and remove

<input type="radio" name="gender" value="0" checked="checked" tabindex="', $context['tabindex']++, '" /> ', $txt[470], '<br />

Title: Re: Gender On Registration
Post by: TrueSatan on September 29, 2007, 04:45:31 AM
Thanks Jay...
Title: Re: Gender On Registration
Post by: Jade Elizabeth on September 29, 2007, 12:30:21 PM
awesome!! thankyou!!

can i do the same to get it out of the profile settings?
*goes off to find file with that line in it*
Title: Re: Gender On Registration
Post by: cru on October 26, 2007, 09:43:08 AM
does this work on 1.1.4
Title: Re: Gender On Registration
Post by: Jade Elizabeth on October 26, 2007, 06:10:01 PM
yup :D
Title: Re: Gender On Registration
Post by: falguni1 on January 12, 2008, 08:37:07 AM
update this mod.
Title: Re: Gender On Registration
Post by: TrueSatan on January 12, 2008, 09:45:06 AM
Please read the postings in the topic...the mod already works with SMF 1.1.4!
Title: Re: Gender On Registration
Post by: MoreBloodWine on April 21, 2011, 06:13:17 PM
I know this is insanely old andn ot supported any more but does anyone want to maybe take this up and mod it for 2.0 ?