The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Prompt
how do I make a gender icon on the right side of nick when the radio button is assigned in the additional profile fields?
|
#2
|
|||
|
|||
Do you already have a gender field? If yes, then it is possible to use if-conditions in the postbit template and display an icon based on gender selection.
For example, Code:
<if condition="$post['field10'] == 'Male'"><img src"images/male_icon.png"> <else /><img src"images/female_icon.png"> </if> |
#3
|
||||
|
||||
What I did as you wrote, did not help.
|
#4
|
|||
|
|||
It is just an example code.
What is the field number for the gender userfield? Are you sure you have the same folder location as I wrote in example? |
#5
|
||||
|
||||
Field5, folder public_html/images/creativecreature/misc.
|
#6
|
|||
|
|||
Code:
<if condition="$post['field5'] == 'Male'"><img src"images/creativecreature/misc/male_icon.png"> <else /><img src"images/creativecreature/misc/female_icon.png"> </if> Make sure to change the red parts in above code with actual values for your forum. They are case-sensitive. |
#7
|
||||
|
||||
|
#8
|
|||
|
|||
Add it before this line:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> |
#9
|
||||
|
||||
Did everything as you said, no change. ++++.
|
#10
|
|||
|
|||
Can you post a link to your forum? and copy paste the parts from postbit_legacy template where you have added the code?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|