Code error, with </DIV> ?

PVO_Dave

Active member
Hi All,

Trying to add a new side block:

This is in a template that I'd then call within the PAGE_CONTAINER

Code:
<div class="section">
    <xen:if is="!{$visitor.user_id}">
            <div class="secondaryContent">
                Advert Code
        </div>
    <xen:elseif is="{xen:helper ismemberof, $visitor, 33,32}">
        <div class="secondaryContent">
            Club Member Code
        </div>
    <xen:else>
        <div class="secondaryContent">
            Join the Club Code
        </div>
    </xen:if>
</div>

It tels me the last </div> is a Syntax error, can't see whats wrong with it, any idea?

Dave.
 
You need to add a slash in the final of the elseif:

Rich (BB code):
<xen:elseif is="{xen:helper ismemberof, $visitor, 33,32}" />

Here too:

Rich (BB code):
<xen:else />

This could be the error.

You can see a example looking for the template bb_code_tag_attach
 
Top Bottom