XF 1.5 Google Ads - Need the code to hide from pages not allowed, like so...

DieselMinded

Well-known member
this does not work...

Code:
<xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_facebook', 'register_twitter', 'register_google', 'login', 'login_two_step', 'error_with_login', 'contact'))">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 2017MM -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="xxxxxxxxxxx"
     data-ad-slot="4227052263"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<br />
</xen:if>
 
it may be because of the ad on I'm using to show the add...

i will just add to page container manually what do i need to add to the code to prevent user group 3,4,5 from seeing the ad aswell
 
Back
Top Bottom