Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
Gender In postbit Details »»
Gender In postbit
Version: 1.00, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-26-2004 Last Update: Never Installs: 5
 
No support by the author.

AdminCP > Profile Fields > Add new PRofile field > Single Select Menu >

Tile > Gender
Description > This is your gender, your either male or female 99% of the time.
Options:
Undisclosed
Male
Female
Default Option: Yes, but not blank

make note of the field id

Template edit:
in postbit(_legacy)
find
HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
add under

HTML Code:
<if condition="$post[fieldX] != Undisclosed"><div>Gender: $post[fieldX] <img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif" alt="$post[fieldX]" /> </div></if>
Change X to the field id
And yer done
For the images to work you would need to upload a

images/misc/gender_male.gif and gender_female.gif

If you dont have or want images remove the img tag

Show Your Support

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

Comments
  #52  
Old 02-04-2005, 05:57 PM
CSMatt CSMatt is offline
 
Join Date: Aug 2004
Location: Forest, Virginia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mahiraminc
Okay folks this works great. I need to know what the variable $post should be changed to in order to display this on the Who's Online page? Please help.
Are you sure you don't mean the Members List?

Quote:
Originally Posted by kadafi_alive
It doesn't seem to be working. It says Male Male instead of showing the image
Is your image in the /images/misc folder? Are the images correctly named gender_Male.gif and gender_Female.gif?

Also, in my revision, you'll need to set the Set Default option to None, not Yes, Including a First Blank Option. Otherwise, new members will automatically be classified as Male instead of having no specified gender.
Reply With Quote
  #53  
Old 02-11-2005, 07:26 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

zender, i tried what you said but with no luck. then again my postbit doesn't have the exact same part as the postbit_legacy. my postbit_legacy which is what i'm using, uses < div > while my postbit just uses < tr > < td > and < table > so i wasn't that certain whether to put it behind just the </ td > or the </ table >, did anybody else happen to figure out how to get those pix to show? and get rid of that Male Male / Female Femal?
Reply With Quote
  #54  
Old 02-11-2005, 07:42 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

man what the.... aiight. look i got one of the pictures to show up, remember it says "male male" or "female female".

and here are my 2 cents, if you're running a forum in some other language, for example german, you're going to have to name the file gender_Maennlich.gif instead of gender_Male.gif. because of the phrase translation.

now get jiggy with it.

only problem is, as long as it shows "Male < img >" the image is kind of useless.

////////

****, how did you guys not get this? this is the code you need:

HTML Code:
<if condition="$post[fieldX] != Undisclosed"><div><img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif" alt="$post[fieldX]" /> </div></if>
that removes the MALE MALE and makes it only one male... and furthermore, read my reply above to see how to get the images to show.

now get jiggy with it!
Reply With Quote
  #55  
Old 02-13-2005, 06:34 PM
wb-legends wb-legends is offline
 
Join Date: Feb 2005
Location: California
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed the hack, tis beautiful, thanks!

just one thing...the pictures wont work because the gender thing is set to Male and Female, but you say to upload the images as gender_male...it should be capitalized to get it to show up
Reply With Quote
  #56  
Old 02-20-2005, 01:34 AM
imported_blizmop's Avatar
imported_blizmop imported_blizmop is offline
 
Join Date: Feb 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it but only after reading the tips from people who understood the instructions. its great and if you want to see it in action check out: Pit Lane
Reply With Quote
  #57  
Old 03-03-2005, 03:53 PM
hollyboy's Avatar
hollyboy hollyboy is offline
 
Join Date: Mar 2004
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works with vb3.07?
Reply With Quote
  #58  
Old 03-03-2005, 07:37 PM
CSMatt CSMatt is offline
 
Join Date: Aug 2004
Location: Forest, Virginia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, this should work with vBulletin 3.0.7, as well as all other revisions of vBulletin 3.
Reply With Quote
  #59  
Old 03-05-2005, 07:13 AM
hollyboy's Avatar
hollyboy hollyboy is offline
 
Join Date: Mar 2004
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed cool

I have only 1 question: I'd like to not show anything on my postbit if the members select no sex, how do I set this?
Reply With Quote
  #60  
Old 03-05-2005, 05:03 PM
CSMatt CSMatt is offline
 
Join Date: Aug 2004
Location: Forest, Virginia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove "Undisclosed" and change the Set Default option to None.
Reply With Quote
  #61  
Old 04-18-2005, 06:52 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've set up my members listing page to show this custom profile. right now, it shows Gender > male for example. How do I KISS and make it so it shows the picture and not the text? This would be helpful also for the membersinfo page as well.

for those of you who don't know, KISS = Keep It Simple Stupid
Reply With Quote
Reply

Thread Tools

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 03:32 AM.


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.04334 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete