XF 1.2 Conditional for not member of

Puntocom

Well-known member
hello, I have been looking for this info in XenForo Help, Resources and I can't find it although it's pretty basic.

I want to know how to make this template conditional in a correct way:
<xen:if is="{xen:helper !ismemberof, $visitor, X}">

Thank you in advance.
 
Code from navigation template.
Code:
<xen:if is="!{xen:helper ismemberof, $visitor, 13}">
<li class="navTab PopupClosed"><a style="color: #ffff2c" href="http://example.com/threads/c%C3%B3mo-ser-vendedora.6959/" class="navLink">Hazte vendedora</a></li>
</xen:if>
Testing permissions for users in that group, that content appears... any idea? I want to show an ad to become premium only for non-premium users.
 
Sometimes when quickly saving changes you need to ctrl-f5 (while viewing the page) on your browser to make the changes appear . Otherwise what you have posted looks correct assuming that group 13 is the group that is not supposed to see it.
 
I have double checked it, code is exactly as I posted before in navigation template, and with Ctrl+F5 the site loads every element again but the item appears for users in group 13. Any idea?
 
Back
Top Bottom