![]() |
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> 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 :) |
oops, i didn't know this hack already been released here. seems much easier than my Image Gender thing. ^_^
|
if it was your hack, i released it here after, seeing as this isnt much more than a template mod to begin with :)
|
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 |
I had to retype it as IE crashed :) and ill change it :P
|
very good zachery and easy to do
can be changed for a number of things cheers i cliked install :) |
Awesome!
|
nice! but what if its just a blank text field... how do i show those that is non blank text field?
|
Can this be done without the images, i.e. text only?
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|