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

IF conditionals, Variable name list

Discussion in 'XenForo Questions and Support' started by swatme, Apr 11, 2011.

  1. swatme

    swatme Well-Known Member


    Below is a list of variable names that can be used in IF conditionals

    variable name of post position is = {$post.position}
    variable name of members user id = {$visitor.user_id}
    variable name of moderator = {$visitor.is_moderator}
    variable name of admin = {$visitor.is_admin}

    can anyone list whats the variable name for category?
    or also anyone can show how to know the variable name of a specific section?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What page/template are you working with? That would affect what variables are available. If you can explain what you are trying to accomplish then I can find code for you.

    The variables available to each page are defined in the controller. See this thread.

Share This Page