Gender Equality for 2.0.*

Started by Beowulf1976, August 29, 2017, 06:59:19 AM

Previous topic - Next topic

Beowulf1976

In the interests of gender equality...


Is anyone interested/able to create a mod for 2.0.* giving members the option to select "other" as their gender?


I have this image I made for the purpose.


Would LOVE for someone to create the mod so that our wonderful members can choose "other" if they are not specifically male, or female.


For gender equality, if nothing else.
"Them as can do has to do for them as can't. And someone has to speak up for them as has no voices."

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Beowulf1976

I did it! I changed intersexed to "other" and provided my gif for it.

Using this:

Quote from: Kindred on April 20, 2017, 08:36:37 AM
Actually, this mod
https://custom.simplemachines.org/mods/index.php?mod=2152

will almost install on 2.0.13, if you emulate "SMF 2.0 RC2" (no quotes)
the only failure is in Load.php for the image
The fix?
Install the mod and then make this specific change

Code (in Load.php, find) Select

      'image' => !empty($profile['gender']) ? '<img class="gender" src="' . $settings['images_url'] . '/' . ($profile['gender'] == 1 ? 'Male' : 'Female') . '.gif" alt="' . $gendertxt . '" />' : ''
   

Code (replace with ) Select

      'image' => !empty($profile['gender']) ? '<img src="' . $settings['images_url'] . '/' . $genderimg . '" alt="' . $gendertxt . '" border="0" />' : ''



the nice thing about this mod is that it becomes fairly easy to change or add the choices -- just change the case statements as were added (see below) and then add additional images for each representation
Code (in Load.php) Select

   switch($profile['gender']) {
            case 5:
                $gendertxt = $txt['intersexed'];
                $genderimg = 'intersexed.gif';
                break;
            case 4:
                $gendertxt = $txt['transf2m'];
                $genderimg = 'transexual.gif';
                break;
            case 3:
                $gendertxt = $txt['transm2f'];
                $genderimg = 'transexual.gif';
                break;
            case 2:
                $gendertxt = $txt['female'];
                $genderimg = 'Female.gif';
                break;
            case 1:
                $gendertxt = $txt['male'];
                $genderimg = 'Male.gif';
                break;
            default:
                $gendertxt = '';
                break;
        }

"Them as can do has to do for them as can't. And someone has to speak up for them as has no voices."

Advertisement: