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

XF 1.5 Super Moderator Conditional question

Discussion in 'Styling and Customization Questions' started by Mark T, Feb 8, 2016.

  1. Mark T

    Mark T Active Member


    I am new to Xenforo and am slowly learning the innards etc.

    I am trying to figure out how to make a conditional exclusively for super moderators.

    I know these work for admins and moderators.

    <xen:if is="{$visitor.is_moderator}">
    <xen:if is="{$visitor.is_admin}">

    But is there a similar variable that can be used to test for super moderators?
  2. wang

    wang Well-Known Member

    <xen:if is="{$visitor.is_moderator}"> is for supermoderators.
  3. Mark T

    Mark T Active Member

    Thanks wang.

    Question, is that for supermoderators exclusive of regular moderators?

    My conditional needs to be only for those that are supermods, and not regular mods.
    wang likes this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There is no specific condition for super moderators only.

    You could add them to a separate user group and use a user group conditional statement.
    wang and Mark T like this.
  5. Mark T

    Mark T Active Member

    Thank you. I was beginning to suspect that while I was searching the forums. But you guys are pretty fast here on responding.

    Appreciate the help.
    wang likes this.

Share This Page