Movie Prop Sites
Active member
Yes, I know I am not the first to ask about this. I did do a search and saw that others have asked before, but for some reason, the solutions provided there don't seem to be working for me and I am not sure what I am doing wrong.
All of our members have Registered Members as their primary usergroup.
We have a usergroup called Full Members which members are promoted to automatically after being a member for 90 days AND making 50 posts. This is a secondary groups and provides a few bonuses for members like being able to create threads in certain forums.
We want to limit ads for members who have the Full Members usergroup as their secondary group (keep in mind, their primary group is still Registered Members).
Full Member is group 6
Registered Member is group 2
Looking at @Brogan 's Conditional Statements, we added:
<xen:if is="!{xen:helper ismemberof, $visitor, 6}">
Ad content
</xen:if>
After adding this conditional, all members, including those with the Full Member secondary group still show the ad.
After reading this thread:
https://xenforo.com/community/threa...ndary-usergroups-in-templates-possible.42461/
I changed the code to:
<xen:if is="!{xen:helper ismemberof, $user, 6}">
Ad content
</xen:if>
Same result. Everyone sees the ad.
After reading this thread:
https://xenforo.com/community/threads/secondary-user-group-conditional.35597/
I changed the code to:
<xen:if is="{xen:helper ismemberof, $visitor, 6}">
<xen:else />
Ad content
</xen:if>
Same result. Everyone sees the ad.
Now... if I go with a completely different conditional, such as:
<xen:if is="{$visitor.message_count} < 50">
Ad content
</xen:if>
It works exactly as expected... but I don't want that to be the conditional. I want to base it off group membership.
What am I doing wrong?
All of our members have Registered Members as their primary usergroup.
We have a usergroup called Full Members which members are promoted to automatically after being a member for 90 days AND making 50 posts. This is a secondary groups and provides a few bonuses for members like being able to create threads in certain forums.
We want to limit ads for members who have the Full Members usergroup as their secondary group (keep in mind, their primary group is still Registered Members).
Full Member is group 6
Registered Member is group 2
Looking at @Brogan 's Conditional Statements, we added:
<xen:if is="!{xen:helper ismemberof, $visitor, 6}">
Ad content
</xen:if>
After adding this conditional, all members, including those with the Full Member secondary group still show the ad.
After reading this thread:
https://xenforo.com/community/threa...ndary-usergroups-in-templates-possible.42461/
I changed the code to:
<xen:if is="!{xen:helper ismemberof, $user, 6}">
Ad content
</xen:if>
Same result. Everyone sees the ad.
After reading this thread:
https://xenforo.com/community/threads/secondary-user-group-conditional.35597/
I changed the code to:
<xen:if is="{xen:helper ismemberof, $visitor, 6}">
<xen:else />
Ad content
</xen:if>
Same result. Everyone sees the ad.
Now... if I go with a completely different conditional, such as:
<xen:if is="{$visitor.message_count} < 50">
Ad content
</xen:if>
It works exactly as expected... but I don't want that to be the conditional. I want to base it off group membership.
What am I doing wrong?