<xen:if is="{xen:helper ismemberof, $visitor, x}">
It will show content based on a certain usergroup...I need to base the conditional on the profile owner. Not the visitor.
Doesn't that conditional relate to the visitor of the page?
<xen:if is="{$resource_category_id} == x">...</xen:if>
I used some conditionals in css in my add-on.Is it possible to use conditionals in EXTRA.css?
For example I would like to show some things just to mods and admins, but not to the rest of the users.
I know I can do this in templates, but I would like to know if it's possible to also do it in extra.
Points 34 and 35 relate to the thread author.
XenForo_Template_Helper_Core::callHelper('ismemberof', array($visitor,3))
<xen:if is="!{xen:helper ismemberof, $visitor, x}">
This content will be hidden from members of user group x
</xen:if>
Ok, thanks.You would need to ask in the WF add-on thread as the code is different.
Helpful! THank you!
<xen:if is="{$item.previewImg}"><img src="{$item.previewImg}"></xen:if>
<xen:if is="{$item.previewImg} != ' '"><img src="{$item.previewImg}"></xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.