PDA

View Full Version : Invalid Tag Nesting


Duckface
06-04-2015, 01:00 PM
I've followed the syntax and it's saying it's wrong. What's wrong with this?

<!--CURRENT RANK SECTION-->


My current donator rank is:

<vb:if condition="is_member_of($vbulletin->userinfo, 6)">
<img src="images/crowns/admin.png"><span style="color:#FF0000;font-weight:bold;text-shadow: 2px 2px 10px #FF1919">Administrator</span>

<vb:elseif condition="is_member_of($vbulletin->userinfo, 20)">
<img src="images/crowns/vet.png"/><span style="color:#d87c21;font-weight:bold;text-shadow: 1px 1px 10px #f49531">

<vb:else />
Not known yet

</vb:if>

MarkFL
06-04-2015, 01:22 PM
Try changing it to:

<!--CURRENT RANK SECTION-->


My current donator rank is:

<vb:if condition="is_member_of($vbulletin->userinfo, 6)">
<img src="images/crowns/admin.png"><span style="color:#FF0000;font-weight:bold;text-shadow: 2px 2px 10px #FF1919">Administrator</span>

<vb:elseif condition="is_member_of($vbulletin->userinfo, 20)" />
<img src="images/crowns/vet.png"/><span style="color:#d87c21;font-weight:bold;text-shadow: 1px 1px 10px #f49531">Veteran</span>

<vb:else />
Not known yet

</vb:if>
Reply With Quote

Duckface
06-04-2015, 01:55 PM
What was the difference?

MarkFL
06-04-2015, 01:57 PM
What was the difference?

elseif tags need a forward slash at the end of the tag, and you had a span tag that was not closed.

Duckface
06-04-2015, 02:09 PM
Oh I see! Couldn't find that then, thank you very much!