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

Code error, with </DIV> ?

Discussion in 'XenForo Questions and Support' started by PVO_Dave, Nov 28, 2011.

  1. PVO_Dave

    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.
     
  2. Fuhrmann

    Fuhrmann Well-Known Member

    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
     
    PVO_Dave likes this.
  3. PVO_Dave

    PVO_Dave Active Member

    It was that! Thanks so much :)
     
    Fuhrmann likes this.

Share This Page