![]() |
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?
|
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"> |
Quote:
|
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? |
Quote:
|
Code:
<if condition="$post['field5'] == 'Male'"><img src"images/creativecreature/misc/male_icon.png"> Make sure to change the red parts in above code with actual values for your forum. They are case-sensitive. |
Quote:
|
Add it before this line:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> |
Quote:
|
Can you post a link to your forum? and copy paste the parts from postbit_legacy template where you have added the code?
|
All times are GMT. The time now is 11:32 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:
|