The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
if conditions inside of an else statement
EDIT I FIXED IT FORGOT MY END " (FIXED IN RED)
But now for users not logged in it's showing 2 avatars =/ so ill leave this see if anyone can help me fix it =) EDIT 2 this is solved request closed =) im trying to use this code to show a different default avatar depending on if the user is registered/ male or female. i set it up to be if user has an avatar display that users avatar, if user doesnt but is registered (i have a required userfield at reg, to get the male/female) display male or female default accordingly, but if user is not registered it will just display a ? avatar. Code:
<if condition="$navbaravatarurl"> <img src="$navbaravatarurl" /> <else /> <if condition="$bbuserinfo['field5'] == 'Male'"> <img src="images/misc/nom.png" /> <else /> <img src="images/misc/no.png" /> </if> <if condition="$bbuserinfo['field5'] == 'Female'"> <img src="images/misc/nof.png" /> <else /> <img src="images/misc/no.png" /> </if> </if> When i use the code like this it works fine... but kind of kills the way i want to set it up. Code:
<if condition="$navbaravatarurl"> <img src="$navbaravatarurl" /> <else /> <img src="images/misc/no.png" /> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|