View Full Version : Else If in templates
Nickeh32
03-12-2005, 11:06 AM
I'm trying to show only banned rank when someone is banned, i don't know what the coding is for the templates, my friend told me is was XML but i'm not sure.
<if condition="is_member_of($post, 8)">
<img src="images/ranks/banned.gif"
</else>
$post[rank]
<if condition="is_member_of($post, 10)">
<img src="images/ranks/secondrank.gif">
</if>
</if>
I allready know this is incorrect, could someone tell me what will work?
Zachery
03-12-2005, 11:44 AM
I'm trying to show only banned rank when someone is banned, i don't know what the coding is for the templates, my friend told me is was XML but i'm not sure.
<if condition="is_member_of($post, 8)">
<img src="images/ranks/banned.gif"
</else>
$post[rank]
<if condition="is_member_of($post, 10)">
<img src="images/ranks/secondrank.gif">
</if>
</if>
I allready know this is incorrect, could someone tell me what will work?
well, besides a mising /> on your first image tag its fine/.
Nickeh32
03-12-2005, 11:47 AM
yeh that's just a mistake, when i do this it just makes the rank field blank
Zachery
03-12-2005, 11:47 AM
yeh that's just a mistake, when i do this it just makes the rank field blank
What template are you trying this in?
Nickeh32
03-12-2005, 07:26 PM
Postbit, were the ranks are.
I also have another problem, it some people are in a primary group that have a if statment for and it shows the rank image twice, how could i stop this?
Paul M
03-12-2005, 09:37 PM
I think the else tag should be <else /> not </else>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.