XF 1.4 Conditional Statement Error

Hey Everyone,
I was wondering what I'm doing wrong with the conditional statements, I keep getting a syntax error. Can someone look this over and let me know what I'm doing wrong? I'm wanting to hide ads from the premium user group. @Brogan can you help? I've looked over your resource already and can't seem to figure out what I'm doing wrong.



<xen:hook name="ad_forum_view_above_thread_list" />

<xen:if is="!{xen:helper ismemberof, $visitor, Premium Member}">

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ad_forum_view_above_thread_list -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3259883122493735"
data-ad-slot="6545866058"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

</xen:if>
 
Top Bottom