<xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'login', 'error_with_login', 'contact'))">
<xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
<style type="text/css">
.overtaking-top-dynamic {
width: 320px;
height: 50px;
}
@media(min-width: 484px) {
.overtaking-top-dynamic {
width: 468px;
height: 60px;
}
}
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Overtaking Top - Dynamic -->
<ins class="adsbygoogle overtaking-top-dynamic"
style="display:inline-block"
data-ad-client="ca-pub123456789"
data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</xen:if>
</xen:if>
<xen:if is="!in_array({$contentTemplate}, array('','message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'login', 'error_with_login', 'contact'))">
<xen:if is="!in_array({$contentTemplate}, array('', 'message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'xengallery_search_form_media', 'search_results', 'register_form', 'login', 'error_with_login', 'contact', 'thread_view', 'cta_overtaking_index'))">
No, just no ad. There is no error.Are you getting an error?
It works for me using this which I have just copied from one of my templates:
Code:<xen:if is="!in_array({$contentTemplate}, array('', 'message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'xengallery_search_form_media', 'search_results', 'register_form', 'login', 'error_with_login', 'contact', 'thread_view', 'cta_overtaking_index'))">
Newly created adsense ads doesn't display ads right awayNo, just no ad. There is no error.
I tried this one too, same problem.
It's created a long time ago so that's not the problem.Newly created adsense ads doesn't display ads right away
Just wait for a couple of minutes.
I don't know ether, but i have the same problem on both of my forums. Maybe because of another add-on...I still don't understand why it doesn't work for you.
I'm actually using '' and 'message_page' right now with no problems.
There are a few new templates introduced in 1.3 which should also be restricted from having Google AdSense advertisements displayed on them.
Those are the aforementioned message_page and also register_twitter and register_google.
So the array of excluded pages should now look something like:
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',...
Firstly how can I find node id ? If I want to disable adsense example for "13" id forum , Can you give an example conditional statement array ?Use a node id conditional statement array.
We use essential cookies to make this site work, and optional cookies to enhance your experience.