• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Code error, with </DIV> ?

PVO_Dave

Active member
#1
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.
 

Fuhrmann

Well-known member
#2
You need to add a slash in the final of the elseif:

Code:
<xen:elseif is="{xen:helper ismemberof, $visitor, 33,32}" />
Here too:

Code:
<xen:else />
This could be the error.

You can see a example looking for the template bb_code_tag_attach