![]() |
User Profile Field Conditional
I'm new to the "if conditions". I'm trying to set it up so that if the user's profile field has a certain option then a certain image is displayed. I've got the profile field set up, I just can't figure out what I should place in the template.
This is what I have right now, but it's not working: Code:
<if condition="$vbulletin->userinfo['field10'] == 'Yes'"> |
What type of Profilefield is field10?
|
A Single-Selection Menu.
Edit: Nevermind, I was browsing the Forum and found a Country Flag Hack. Code:
<if condition="$post[fieldxx]"><img src="http://your.domian/flags_dir/$post[fieldxx].gif" border="0" alt="country flag" /><br /></if> Just replace the "xx" with the field number. ;) |
All times are GMT. The time now is 07:03 PM. |
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:
|