vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Gender In postbit (https://vborg.vbsupport.ru/showthread.php?t=88773)

Zachery 03-26-2004 10:00 PM

Gender In postbit
 
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 :)

tnguy3n 03-27-2004 04:10 AM

oops, i didn't know this hack already been released here. seems much easier than my Image Gender thing. ^_^

Zachery 03-27-2004 07:24 AM

if it was your hack, i released it here after, seeing as this isnt much more than a template mod to begin with :)

Oblivion Knight 03-27-2004 09:01 AM

Just a couple of things..


First, a typo.!
HTML Code:

<img src="$stylevar[imgdir_misc]/gender_$post[filedX].gif"
Should be:
HTML Code:

<img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif"
Second, Disclosed should be Undisclosed.. =)
Disclose; To expose to view, as by removing a cover; uncover

Zachery 03-27-2004 09:14 AM

I had to retype it as IE crashed :) and ill change it :P

lasto 03-27-2004 01:49 PM

very good zachery and easy to do

can be changed for a number of things cheers

i cliked install :)

imported_TheComputerGuy 03-27-2004 10:44 PM

Awesome!

imported_d3nnis 03-29-2004 10:11 AM

nice! but what if its just a blank text field... how do i show those that is non blank text field?

contramontanum 04-20-2004 02:00 PM

Can this be done without the images, i.e. text only?

Zachery 04-20-2004 02:49 PM

Sure just remove the imag tag :)


All times are GMT. The time now is 03:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete