XF 1.2 Conditional for not member of


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.


Well-known member
Code from navigation template.
<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>
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.


Well-known member
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.


Well-known member
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?

Chris D

XenForo developer
Staff member
That's completely expected behaviour.

That conditional isn't anything to do with permissions.