Ad depending on user group

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
 
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
 
Top Bottom