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

Can you use Xen syntax in notices?

Discussion in 'XenForo Questions and Support' started by RobinHood, Mar 8, 2012.

  1. RobinHood

    RobinHood Well-Known Member

    I'd like a section of the notice to only display when a user is logged in.

    I've tried wrapping it in

    <xen:if is="{$visitor.user_id}">
    But it still displays when logged out.

    Any ideas?

    I know I could use two notices, one for logged in users and one for visitors but I have a lot of notices like this that I don't want duplicated.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    RobinHood likes this.
  3. RobinHood

    RobinHood Well-Known Member

    I've now managed to resolve my issues without the need for logged in and logged out criteria, but thanks for the info anyway! :)

Share This Page