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
  #22  
Old 05-31-2004, 05:03 PM
imported_badpacket imported_badpacket is offline
 
Join Date: Jun 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BeasTboyz
Any Idea why even if the user has chosen to not answer the question (i.e. left the field blank) the "Gender:" info still shows up under their name, there is just nothing next to it. Here is what I have (the all text version) :

HTML Code:
<if condition="$post[field6] != Undisclosed"><div>Bike: $post[field6]</div></if>
In your User Profile Manager set the default to "yes but no first blank option"

*admincp > user profile field > profile manager > gender > edit

and hello all

hope that works for you Beastboyz..
Reply With Quote
  #23  
Old 05-31-2004, 08:52 PM
imported_BeasTboyz imported_BeasTboyz is offline
 
Join Date: May 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badpacket
In your User Profile Manager set the default to "yes but no first blank option"

*admincp > user profile field > profile manager > gender > edit

and hello all

hope that works for you Beastboyz..
Well, that is only an option for the drop down boxes with multiple choices. Since mine will be "real name" and "Bike" options, I can't use a drop down box. Any ideas on how to do this with a single line text box?

Thanks everyone

Matt
Reply With Quote
  #24  
Old 05-31-2004, 09:27 PM
imported_badpacket imported_badpacket is offline
 
Join Date: Jun 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe make it a required field? if they dont have a bike enter N/A I guess.. *shrug* Maybe somoene will come back with some code that will default to "whatever" if left blank.
Reply With Quote
  #25  
Old 06-01-2004, 07:52 PM
BeatificFaith's Avatar
BeatificFaith BeatificFaith is offline
 
Join Date: May 2004
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I'm trying to use this in the latest version of vbulletin but instead of the graphic showing up it says gender: female female. Can someone please help?
Reply With Quote
  #26  
Old 06-01-2004, 09:24 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badpacket
Maybe make it a required field? if they dont have a bike enter N/A I guess.. *shrug* Maybe somoene will come back with some code that will default to "whatever" if left blank.
run this query in phpMyAdmin or AdminCP
HTML Code:
UPDATE `userfield` SET `fieldX` = 'Undisclosed';
adjust that fieldX with your gender field.
Reply With Quote
  #27  
Old 06-26-2004, 02:22 AM
Silverstangs Silverstangs is offline
 
Join Date: Nov 2003
Location: Roseville Sacramento CA
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Great, I wish I thought of it!!!!
Reply With Quote
  #28  
Old 06-26-2004, 11:01 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

smaal but good
Reply With Quote
  #29  
Old 07-07-2004, 06:13 PM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i try to add the $gender to my postbit and i want it next to my username but it puts it on a new line under the username??

anyway of getting to align with the username???? i have checked for <br> in code but there isnt any.

ame when i put the stars hack on my post bit too. i am still using original postbit cose.

http://www.carstyledirect.com/forum/ - to see example


thanks
Reply With Quote
  #30  
Old 07-07-2004, 09:01 PM
Jacko's Avatar
Jacko Jacko is offline
 
Join Date: Mar 2002
Location: UK
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ignore me i sorted it now.
Reply With Quote
  #31  
Old 07-30-2004, 02:11 PM
imported_uber's Avatar
imported_uber imported_uber is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem to remember releasing this exact same mod for Gamma & RC. Zach's response to it was

Quote:
Originally Posted by Zachery
and i could think of a few ways to improve it also
Quote:
Originally Posted by Zachery
well for one id use an if condtioin to only alow this filed to be editable on registar. or if they dont choose one. this way we cant have our trolls confucsing us and such
Your mod doesn't seem to do this at all, just a re-hash of previous ideas.
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 10:53 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.04593 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
  • (4)bbcode_html
  • (5)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
  • (4)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