Ember
01-01-2003, 12:33 AM
This has probably been done before, if so, I apologize, but I have only seen the Gender Hack, nothing that only involved a quick template edit... I thought everyone knew how to do this, but have since found people who dont, so here goes....
Go into your admin CP, scroll down to "User Profile Fields", click "add".
Title: Gender
Description: Let people on the forums know your gender.
Maximum input: 6
Field Length: 6
Field required: yes (or no, depending if you want them to do it or not)
Field hidden on profile: yes
Field editable by user: yes
Click "Save"
Now, Modify user profile fields, along the gender row, hover over the edit or the remove link, and in your status bar, take a note of the number that is at the end, after profilefieldid - mine was 6 - yours may or may not be.
Now go down to templated -> modify
and expand the list of templates you want to add the gender field too, expand Postbit Templates... and click on [edit] next to postbit.
Now simply add: Gender: $post[field6]<br> (replacing 6 with your field ID number) wherever you want to show the gender.. using the default postbit template I did it like this:
Decided to remove this cos it was unessesery and large - if you want an example, e-mail dan@twisted-designs.net
This may or may not come in handy to people, you can use it to add any profile field onto the postbit... my apologies again if this has been covered before :) PS. Its 2:40am, so if I made some mistakes let me know!
Go into your admin CP, scroll down to "User Profile Fields", click "add".
Title: Gender
Description: Let people on the forums know your gender.
Maximum input: 6
Field Length: 6
Field required: yes (or no, depending if you want them to do it or not)
Field hidden on profile: yes
Field editable by user: yes
Click "Save"
Now, Modify user profile fields, along the gender row, hover over the edit or the remove link, and in your status bar, take a note of the number that is at the end, after profilefieldid - mine was 6 - yours may or may not be.
Now go down to templated -> modify
and expand the list of templates you want to add the gender field too, expand Postbit Templates... and click on [edit] next to postbit.
Now simply add: Gender: $post[field6]<br> (replacing 6 with your field ID number) wherever you want to show the gender.. using the default postbit template I did it like this:
Decided to remove this cos it was unessesery and large - if you want an example, e-mail dan@twisted-designs.net
This may or may not come in handy to people, you can use it to add any profile field onto the postbit... my apologies again if this has been covered before :) PS. Its 2:40am, so if I made some mistakes let me know!