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

XF 1.2 what conditional do I use to display something based on secondary user group?

Discussion in 'XenForo Questions and Support' started by zoldos, Mar 6, 2014.

  1. zoldos

    zoldos Well-Known Member

    What conditional code can I use to display certain content only if a user is a member of a particular secondary user group? It's for ads.

    If there is an easier way, or some kind of banner advertisement add-on, please let me know! Thanks!
  2. LordsKing

    LordsKing Active Member

    <xen:if is="{xen:helper ismemberof, $visitor, 3, 4}">
    Change the numbers by the ID of groups users !
  3. Brogan

    Brogan XenForo Moderator Staff Member

    zoldos likes this.
  4. zoldos

    zoldos Well-Known Member

    Thanks! What is the closing tag? <xen:/if> ?
  5. LordsKing

    LordsKing Active Member

    zoldos likes this.
  6. zoldos

    zoldos Well-Known Member

  7. zoldos

    zoldos Well-Known Member


Share This Page