inherit
206144
0
Mar 15, 2014 12:56:49 GMT -8
Astrophel
4
March 2014
astrophel
|
Post by Astrophel on Mar 7, 2014 12:03:20 GMT -8
Hullo! I was wondering if anyone would be willing and able to create a plugin that adds more options to the "Gender" profile field. I realize that it would be impossible for this to work during registration, but I think that it would still be great if my members could change to the gender they actually are after joining. I already have a thread up explaining how to remove gender from one's profile, but not everyone is content with just that. Something that removes Proboards' pre-existing gender field (so that it could be replaced by a custom field) would also work. c:
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 8, 2014 0:24:48 GMT -8
seems like you could just remove the gender display from the profile/mp templates and instead have it show a custom profile field you have setup.
I dont think a plugin is necessary to move anything, just let the tmeplate editor do the work for you. I will move this over to template requests.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Mar 8, 2014 12:00:30 GMT -8
I can help you with what I've set up on Zombies, Run
|
|
inherit
206144
0
Mar 15, 2014 12:56:49 GMT -8
Astrophel
4
March 2014
astrophel
|
Post by Astrophel on Mar 8, 2014 15:24:02 GMT -8
seems like you could just remove the gender display from the profile/mp templates and instead have it show a custom profile field you have setup. I dont think a plugin is necessary to move anything, just let the tmeplate editor do the work for you. I will move this over to template requests. Ah. Whoops, sorry about putting this in the wrong category! I can help you with what I've set up on Zombies, Run Actually, knowing that it could be edited through the template, I managed to do it. Thank you for the offer, though! :>
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 8, 2014 20:00:46 GMT -8
seems like you could just remove the gender display from the profile/mp templates and instead have it show a custom profile field you have setup. I dont think a plugin is necessary to move anything, just let the tmeplate editor do the work for you. I will move this over to template requests. Ah. Whoops, sorry about putting this in the wrong category! I can help you with what I've set up on Zombies, Run Actually, knowing that it could be edited through the template, I managed to do it. Thank you for the offer, though! :> no worries from me. just wanted to speed things up on your end.
|
|
inherit
206616
0
Oct 16, 2018 15:15:29 GMT -8
Meraxes
28
March 2014
meraxes
|
Post by Meraxes on Mar 11, 2014 15:49:28 GMT -8
Would someone be willing to post how to do so for those of us not as template savvy?
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Mar 11, 2014 22:56:54 GMT -8
Yep I would be. This is how I did it and includes hiding the proboards default gender display. It requires use of custom fields.
So step 1 - Go to your ACP (Admin Control Panel), and go to custom fields and create a new custom field called Gender Options or anything else (Not JUST Gender though as it'll get hidden too). This should be a drop down selection. By clicking view/edit you can add in all the options you wish by typing in the text boxes as they appear.
Step 2 - Go to templates, miniprofile and copy and paste this:
{foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == "Gender Options"}Gender: $[user.mini_custom_field.value] {/if} {/foreach}
This will show the Gender Options, and its advised you place it where proboards currently shows gender.
Step 3 - Go to User Profile Templates, Summary and you'll be doing the same code again, almost. It's changed slightly.
{foreach $[user.custom_field]} {if $[user.custom_field.name] == "Gender Options"}Gender: $[user.custom_field.value] {/if} {/foreach}
Again though copy that code and paste it in, again preferably where gender shows to replace it.
Step 4 -
You need to go to your global headers and footers and paste this code in the headers
<script type="text/javascript"> $(document).ready(function(){ if(proboards.data('route').name == "edit_user_personal"){ $('.edit-user label').each(function(){ if($(this).text() == "Gender") { $(this).hide(); $(this).next().hide(); $(this).next().next().hide(); $(this).next().next().next().hide(); }});}}); </script>
This will hide the proboards default gender selection in the edit profile screen leaving only your own.
|
|
Former Member
inherit
guest@proboards.com
208386
0
Dec 4, 2024 16:29:51 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 26, 2014 5:25:31 GMT -8
Yep I would be. This is how I did it and includes hiding the proboards default gender display. It requires use of custom fields. So step 1 - Go to your ACP (Admin Control Panel), and go to custom fields and create a new custom field called Gender Options or anything else (Not JUST Gender though as it'll get hidden too). This should be a drop down selection. By clicking view/edit you can add in all the options you wish by typing in the text boxes as they appear. Step 2 - Go to templates, miniprofile and copy and paste this: {foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == "Gender Options"}Gender: $[user.mini_custom_field.value] {/if} {/foreach}
This will show the Gender Options, and its advised you place it where proboards currently shows gender. Step 3 - Go to User Profile Templates, Summary and you'll be doing the same code again, almost. It's changed slightly. {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Gender Options"}Gender: $[user.custom_field.value] {/if} {/foreach}
Again though copy that code and paste it in, again preferably where gender shows to replace it. Step 4 - You need to go to your global headers and footers and paste this code in the headers <script type="text/javascript"> $(document).ready(function(){ if(proboards.data('route').name == "edit_user_personal"){ $('.edit-user label').each(function(){ if($(this).text() == "Gender") { $(this).hide(); $(this).next().hide(); $(this).next().next().hide(); $(this).next().next().next().hide(); }});}}); </script>
This will hide the proboards default gender selection in the edit profile screen leaving only your own. How do you get the gender to show up on as an image? Example: User selects my new "Undisclosed Gender", but in the profile and mini profile, it shows up as an image
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 26, 2014 5:45:57 GMT -8
That I'm afraid I don't know - as I've used just the text
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 28, 2014 11:12:23 GMT -8
To use an image you can use this inside the if statement in step 3 of Boy_Wonder's instructions.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 28, 2014 11:22:31 GMT -8
Brian - the problem with that is how would a normal member know which one to select out of the images if that makes sense while still enabling the code to grab the image url
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 28, 2014 11:30:01 GMT -8
Brian - the problem with that is how would a normal member know which one to select out of the images if that makes sense while still enabling the code to grab the image url None of the codes specified in this thread are going to change the dropdown from text to images. They'll be selecting text in the dropdown while what displays in the mini-profile is an image representative of that dropdown choice similar to the default gender dropdown.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Jul 13, 2014 19:53:54 GMT -8
Yep I would be. This is how I did it and includes hiding the proboards default gender display. It requires use of custom fields. So step 1 - Go to your ACP (Admin Control Panel), and go to custom fields and create a new custom field called Gender Options or anything else (Not JUST Gender though as it'll get hidden too). This should be a drop down selection. By clicking view/edit you can add in all the options you wish by typing in the text boxes as they appear. Step 2 - Go to templates, miniprofile and copy and paste this: {foreach $[user.mini_custom_field]} {if $[user.mini_custom_field.name] == "Gender Options"}Gender: $[user.mini_custom_field.value] {/if} {/foreach}
This will show the Gender Options, and its advised you place it where proboards currently shows gender. Step 3 - Go to User Profile Templates, Summary and you'll be doing the same code again, almost. It's changed slightly. {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Gender Options"}Gender: $[user.custom_field.value] {/if} {/foreach}
Again though copy that code and paste it in, again preferably where gender shows to replace it. Step 4 - You need to go to your global headers and footers and paste this code in the headers <script type="text/javascript"> $(document).ready(function(){ if(proboards.data('route').name == "edit_user_personal"){ $('.edit-user label').each(function(){ if($(this).text() == "Gender") { $(this).hide(); $(this).next().hide(); $(this).next().next().hide(); $(this).next().next().next().hide(); }});}}); </script>
This will hide the proboards default gender selection in the edit profile screen leaving only your own. Just a slight question, does this hide the gender sign in the mini profile? Since you have to hide the default settings?
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 13, 2014 22:05:11 GMT -8
You would have to replace the gender display code with the appropriate foreach code to show just that custom field in the mini profile and profile
|
|
inherit
211836
0
Sept 26, 2016 9:37:33 GMT -8
nekobot
224
July 2014
nekobot
|
Post by nekobot on Sept 15, 2015 10:30:47 GMT -8
How would we go about hiding the gender sign, in detail? Also, why does it show the gender option twice?
|
|