1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Conditional Statement Error

Discussion in 'Styling and Customization Questions' started by TFroehlichIII, Jun 18, 2015.

  1. TFroehlichIII

    TFroehlichIII Member

    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"
    (adsbygoogle = window.adsbygoogle || []).push({});

  2. Brogan

    Brogan XenForo Moderator Staff Member

    You need to use the user group ID, as the resource explains.
  3. TFroehlichIII

    TFroehlichIII Member

    @Brogan you are the man. Thank you so much. I must have skipped over that part for some reason. Works like a charm. Thank you.

Share This Page