Shawn
10-28-2006, 07:42 AM
This hack shows user's gender in postbit, below the user name.
1. Go to AdminCP => Profile Fields => Add new Profile field => Single Selection Menu >
Title > Gender
Description > Specify ur gender
Options:
Male
Female
Set Default: Yes, Include a First Blank Option
Editable By User: Yes
Display Page: Edit Profile
Write down your field# . i.e field5
2. Open postbit(_legacy) template,
FIND:
<div>
$vbphrase[posts]: $post[posts]
</div>
ADD BELOW:
<if condition="$post[fieldX] != ''"><div>
Country: <img src="images/gender/$post[fieldX].gif" title="$post[fieldX]"
align="center">
</div></if>
Change X to the field id.
3. Upload /gender to images/gender to your forum dir. (found in attached zip file)
1. Go to AdminCP => Profile Fields => Add new Profile field => Single Selection Menu >
Title > Gender
Description > Specify ur gender
Options:
Male
Female
Set Default: Yes, Include a First Blank Option
Editable By User: Yes
Display Page: Edit Profile
Write down your field# . i.e field5
2. Open postbit(_legacy) template,
FIND:
<div>
$vbphrase[posts]: $post[posts]
</div>
ADD BELOW:
<if condition="$post[fieldX] != ''"><div>
Country: <img src="images/gender/$post[fieldX].gif" title="$post[fieldX]"
align="center">
</div></if>
Change X to the field id.
3. Upload /gender to images/gender to your forum dir. (found in attached zip file)