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

Ad depending on user group

Discussion in 'General XenForo Discussion and Feedback' started by Colin Arenburg, Sep 22, 2011.

  1. Colin Arenburg

    Colin Arenburg New Member

    Hello,

    I am trying to make it so that only certain user groups can see the users can see it. this is the code i have.
    Code:
    <xen:if is="{$notsurewhatwouldgohere} == 1">
    <xen:if is="{$post.position} == 0">
    <img src="adlink" alt="logo" />
    </xen:if>
    </xen:if>
    I am not sure what would be used to make it only viable to the selected groups. i believe it would be something like
    Code:
     $group_id == 1 
    is this correct
     
  2. 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 only
    </xen:if>

    How can I show content to more than one user group?
    <xen:if is="{xen:helper ismemberof, $visitor, x}
    OR {xen:helper ismemberof, $visitor, y}">
    This content will show to members of user groups x or y
    </xen:if>

    http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-182355
     
  3. Colin Arenburg

    Colin Arenburg New Member

    Ohh thank you. I am new to the forums, and the documation to be hardish to find. thanks for the link i well be bookmarking!
     

Share This Page