[RSS Feed/News] ismemberof check in template

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
In Xenforo 1.x, to hide ads from certain user group, we did something like this:

<xen:if is="!{xen:helper ismemberof, $visitor, 89}">
<div id="bannerTop" style="min-height: 90px; margin-right: auto; margin-left: auto; padding: 4px 0 4px 0;">
<div id='cdm-zone-04'></div>
</div>
</xen:if>

This check doesn't seem to work under xenforo 2.0.

Also, in 1.x, to check current page is not forum home page in the template, I was doing below but it doesn't seem to work in 2.0.

<xen:if...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom