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

Code error, with </DIV> ?


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

<div class="section">
    <xen:if is="!{$visitor.user_id}">
            <div class="secondaryContent">
                Advert Code
    <xen:elseif is="{xen:helper ismemberof, $visitor, 33,32}">
        <div class="secondaryContent">
            Club Member Code
        <div class="secondaryContent">
            Join the Club Code
It tels me the last </div> is a Syntax error, can't see whats wrong with it, any idea?



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

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

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

You can see a example looking for the template bb_code_tag_attach