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

XF 1.4 Conditional Statements

Discussion in 'Styling and Customization Questions' started by sambish20, Jan 10, 2015.

  1. sambish20

    sambish20 Member

    Hi everyone,

    Recently I've been trying to display a certain message on member's profiles if they're a member of a certain group. This content will be visible to everyone, but it will only appear on a member's profile if they're part of a certain group. A while back I did this, but forgot how I did it. How would I go about achieving this using a conditional statement?

    Thanks,
    Sam.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. sambish20

    sambish20 Member

  4. sambish20

    sambish20 Member

    Actually, no worries. Found it myself by messing around :)
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    How can I show content to a specific user group?
    <xen:if is="{xen:helper ismemberof, $visitor, x}">
    This content will show to members of user group x
    </xen:if>
     
  6. sambish20

    sambish20 Member

    Hmm I did it differently to that but it worked.
     

Share This Page