Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Release] Users Gender Details »»
[Release] Users Gender
Version: , by Ember Ember is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-01-2003 Last Update: Never Installs: 0
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-01-2003, 11:42 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice simple template mod buddy

- miSt
Reply With Quote
  #3  
Old 01-01-2003, 11:55 AM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well its very simple, but I kept finding people who didnt have a clue what I was talking about when I said add a profile field to the postbit, so I thought I may as well write it up :P
Reply With Quote
  #4  
Old 01-01-2003, 12:57 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea it's quite useful i s'pose because some people use the hack..

Only problem with this is that people can put silly answers in it like "?" and "alien" "gender-bender" hehe

Know what i mean :P

- miSt
Reply With Quote
  #5  
Old 01-01-2003, 01:07 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats true, if the gender hack didnt ready exist I would create it so you could only select "male" "female" or "undisclosed" from a drop down box.. but never mind!

I wasnt going to post this as a gender modification, but I need some sort of example... its really to show people how to get a profile field into the postbit.
Reply With Quote
  #6  
Old 01-01-2003, 02:36 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea cool
Reply With Quote
  #7  
Old 01-02-2003, 10:54 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not bad, why don't you use the male & female symbols instead?
Reply With Quote
  #8  
Old 01-02-2003, 01:03 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll look into it... I guess I will just do something along the lines of:

In the postbit template use PHP to replace "male" and "female" with the relevent symbols, and then I will try to work out a way to replace anything that is not male or female with n/a or something... I'll look into it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07135 seconds
  • Memory Usage 2,267KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete