The Arcive of vBulletin Modifications Site. |
|
Gender In postbit Details »»
|
|||||||||||||||||||||||||
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> 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> 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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
oops, i didn't know this hack already been released here. seems much easier than my Image Gender thing. ^_^
|
|
#3
|
||||
|
||||
|
if it was your hack, i released it here after, seeing as this isnt much more than a template mod to begin with
|
|
#4
|
||||
|
||||
|
Just a couple of things..
First, a typo.! HTML Code:
<img src="$stylevar[imgdir_misc]/gender_$post[filedX].gif" HTML Code:
<img src="$stylevar[imgdir_misc]/gender_$post[fieldX].gif" Disclose; To expose to view, as by removing a cover; uncover |
|
#5
|
||||
|
||||
|
I had to retype it as IE crashed
and ill change it :P
|
|
#6
|
|||
|
|||
|
very good zachery and easy to do
can be changed for a number of things cheers i cliked install
|
|
#7
|
|||
|
|||
|
Awesome!
|
|
#8
|
|||
|
|||
|
nice! but what if its just a blank text field... how do i show those that is non blank text field?
|
|
#9
|
|||
|
|||
|
Can this be done without the images, i.e. text only?
|
|
#10
|
||||
|
||||
|
Sure just remove the imag tag
|
![]() |
|
|