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

Visitor variable question

Discussion in 'XenForo Development Discussions' started by Jim Boy, Feb 17, 2014.

  1. Jim Boy

    Jim Boy Well-Known Member

    I am modifying a template that is part of a bespoke add-on that I have inherited. I'm try to use the $visitor variable, but it doesn't seem to be available.

    For example if I put
    {xen:helper dump, $visitor}
    into the the custom template, I get "NULL", put it into any other native template and I get the expected output.

    Undoubtedly I'm missing something obvious, but any help would be appreciated.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to pass the variable to the template.
    Jim Boy likes this.
  3. Jim Boy

    Jim Boy Well-Known Member

    Ta- that fixed it, s'pose I should RTFM.

Share This Page