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

What's wrong wth this? is_admin conditional stopped working?

Discussion in 'XenForo Questions and Support' started by RobParker, Apr 1, 2013.

  1. RobParker

    RobParker Well-Known Member

    I'm just updating my templates and previously I had the following

          <xen:if is="{$debugMode}" AND {$visitor.is_admin}">
    But re-adding that into the reverted template is throwing a syntax error.

    Any ideas?

    Edit: NM, got it :)
  2. Mike

    Mike XenForo Developer Staff Member

    For anyone running into this, there's an extra double quote in the middle.
    RoldanLT likes this.
  3. RoldanLT

    RoldanLT Well-Known Member

    Should be:

  4. RobParker

    RobParker Well-Known Member

    Sorry I meant to post but got caught up and forgot :)

Share This Page