Azayles
Posts: 550
Last Online:
Feb 13, 2023 3:21:17 GMT
|
Post by Azayles on Jul 30, 2015 22:21:46 GMT
[Note: skip over anything purple to skip the technical bits ] Since I started playing out back with the forum code I've been looking for a way to add more than just the default Male/Female options to member profiles. These are bold and exciting times, and trans gender/gender fluidity* is gaining more and more recognition as time goes on. This forum is all about equality, it's something I, personally strive toward, and I think having different gender options would go a long way toward making our members feel more comfortable and at home here. Now, I might, I might have a way to implement this. What I plan to try (and what follows is more for my benefit now, tryna think in my own head (which is where I do most of my thinking)).
- Create a custom field consisting of a dropdown list of gender options (easy at the moment in the admin panel)
- Move that list to the top of the profile edit page, where the standard gender radio buttons are (reasonable easy)
- Hide the default gender radio buttons entirely (now we're getting into trick territory)
- Hide the default gender options under the mini profile (your avatar near posts)
- Intercept the custom field before it's displayed under the mini profile, and hide it
- Use conditional statements to instead display the gender text as well as a gender symbol.
Some of this is very straightforward, but intercepting, hiding and moving anything to do with custom fields is very hard, because these are stored in an array and all the custom fields are treated and displayed the same. Picking out the new gender option and ONLY the new gender option, where other custom fields may be used for other things, is going to be difficult. But not impossible. The "Recent" button on the navigation bar I was able to get working with dynamic URLs because I was able to intercept that array and pick out the Recent button based on its name. What would probably be easier is ignoring the current gender field completely, and if people opt to hide that gender, they can use the custom gender option and that will appear in its stead. But that's less than ideal. I want an all in one solution.
If this is something that would interest some of you members, DO let me know. Also let me know what would be an acceptable list of gender options, for example Male, Female, Fluid, Trans M to F, Trans F to M etc.
Thank you all for reading!
Chris ~~x~~
* I don't know if these are the right terms, or whether there are more terms, or what. If I'm making any mistakes in any of these, I apologise. It's simply because I don't know. I'm learning a lot already but I can always stand to learn more Teach me!
|
|
Azayles
Posts: 550
Last Online:
Feb 13, 2023 3:21:17 GMT
|
Post by Azayles on Jul 31, 2015 9:47:30 GMT
It looks like I'll need to go with my second option of ignoring the default gender field, and give the option for members to set a custom gender in a custom gender field instead. I have no way of intercepting and hiding the default gender options at sign up because the sign up page is outside the area of coding I'm able to change At least that's a marginally easier way of coding this!
|
|
Misanthropy
Posts: 79
Last Online:
Aug 19, 2016 21:47:48 GMT
|
Post by Misanthropy on Jul 31, 2015 16:48:10 GMT
Why not just put 'other' instead of trans, fluid, etc? It seems that'd be a lot easier instead of adding all the genders, and if I'm correct there are many more genders. :
|
|
Azayles
Posts: 550
Last Online:
Feb 13, 2023 3:21:17 GMT
|
Post by Azayles on Jul 31, 2015 17:00:25 GMT
Why not just put 'other' instead of trans, fluid, etc? It seems that'd be a lot easier instead of adding all the genders, and if I'm correct there are many more genders. : Yeah I read somewhere while researching options that Facebook has something like 56? With various branching sub-options? I'm not even sure coding something like that would be within the scope of this forum engine's back end code setup Male/Female/Other/[off] I think would be good options to start with, then more can easily be added later on. The hard bit will be establishing the initial code structure, but the rest after that in just copypasta, with a few name changes
|
|
Azayles
Posts: 550
Last Online:
Feb 13, 2023 3:21:17 GMT
|
Post by Azayles on Aug 17, 2015 15:05:45 GMT
Just an update on this, I think I have a way! I've been experimenting today, and it's looking promising I can't override the default gender options, that's impossible, but I can add a second expanded gender option field on the profile, and if any of those genders are selected, hide the default gender on miniprofiles next to posts, and replace with the custom expanded gender value
|
|
AJ
Posts: 24
Last Online:
Apr 2, 2016 17:45:34 GMT
|
Post by AJ on Aug 26, 2015 2:15:31 GMT
Another decent option for gender would be non-binary, as thats an umbrella term for anyone outside of the binary genders
|
|
Deleted
Deleted Member
Posts: 0
Last Online:
Apr 29, 2024 4:17:54 GMT
|
Post by Deleted on Aug 28, 2015 14:58:48 GMT
Other sounds good! I'm going to use it because right now I'm labelling has bisexual
|
|
Azayles
Posts: 550
Last Online:
Feb 13, 2023 3:21:17 GMT
|
Post by Azayles on Aug 28, 2015 15:30:35 GMT
Funnily enough I'm working on this right now You may have already noticed changes to the miniprofile layout. The gender image has gone (for now at least! It may be back) and I've organised a few things. My wallpaper selection feature in profile settings was an experiment for the conditional formatting I'll need to get the expanded gender options to work correctly. I've managed to write the function (on paper, anyway) and I've managed to get it down to less than a dozen lines of code, which I'm very happy about! As well as the normal Male and Female labels, I'm planning on adding: Agender Transgender Trans M to F Trans F to M Genderfluid Non-Binary Other It's easy for me to add lots of options without inflating the code because of the way the conditional statement works (If a custom gender if selected, display the text, otherwise display the default gender) Although if I were to add images, that would be more lines of code, but fairly trivial to do Thoughts guys? Does anyone have an knowledge of symbols used in the transgender community?
|
|
Deleted
Deleted Member
Posts: 0
Last Online:
Apr 29, 2024 4:17:54 GMT
|
Post by Deleted on Aug 28, 2015 15:34:31 GMT
I will try and find a image hold on one min
|
|
Deleted
Deleted Member
Posts: 0
Last Online:
Apr 29, 2024 4:17:54 GMT
|
Post by Deleted on Aug 28, 2015 15:35:42 GMT
|
|