<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1 AND {$thread.reply_count} > 0 AND !{$visitor.user_id}">
<li class="message">
<div class="messageUserInfo">
<div class="messageUserBlock">
<div class="avatarHolder" style="height: 102px; width: 102px">
<span class="helper"></span>
<img src="http://www.mysite.com/forum/styles/uix/xenforo/avatars/avatar_a.png" alt="Avatar" height="96px" width="96px" style="border: 0px; padding: 2px" />
</div>
<h3 class="userText">
<span style="font-weight: bold; color: #666666">Sponsored</span>
<em class="userTitle" itemprop="title">Advertisement</em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<article>
<blockquote class="messageText ugc baseHtml">
ADCODE
</div>
</blockquote>
</article>
</div>
</div>
</li>
</xen:if>
<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$visitor.user_id}">
<div style="text-align: center; margin-top:20px">
AD CODE
</xen:if>
What a shame- ad size surely effects clicks. There is no work Around?Responsive occurs regardless of device. If the width of the browser triggers a smaller ad, the smaller ad is shown.
... As the sidebar is re-located to the bottom of the forum in responsive mode ...
<h3 class="userText">
<span style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Guest Advertisement</em>
</h3>
<h3 class="userText">
<span class="username" itemprop="name" style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Guest Advertisement</em>
</h3>
<xen:hook name="ad_message_below" />
<xen:if is="!in_array({$forum.node_id}, array(81, 67))">
<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', 'thread_create', 'thread_reply', 'lnblog_entry_create'))">
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id} AND !{$visitor.user_id}">
<li class="message">
<div class="messageUserInfo">
<div class="messageUserBlock">
<div class="avatarHolder"><span class="helper"></span><img src="http://domain.name/styles/default/xenforo/avatar-marketing.jpg" width="96px" height="96px"></div>
<h3 class="userText">
<span style="font-weight: bold">Marketing</span>
<em class="userTitle" itemprop="title"></em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<blockquote class="messageText ugc baseHtml">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- caskanja responsive ispod prvog posta -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-******************"
data-ad-slot="*************"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</blockquote>
</div>
</div>
</li>
</xen:if>
</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', 'thread_create', 'thread_reply', 'lnblog_entry_create'))">
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>
<xen:if is="{$contentTemplate} == 'forum_list'">
<!-- start -->
<xen:elseif is="{$contentTemplate} == 'search_form'" />
<!-- search -->
<xen:elseif is="in_array({$contentTemplate}, array('conversation_list','account_alerts','news_feed_page','member_notable','member_view'))" />
<!-- social networking -->
<xen:elseif is="in_array({$contentTemplate}, array('register_form','online_list','news_feed_page','thread_reply','thread_create','conversation_add','conversation_reply','help_index','help_smilies','help_bb_codes','help_trophies','help_cookies'))" />
<!-- corporate com -->
<xen:elseif is="in_array({$category.node_id}, array(3,293))" />
<!-- entertainment and lifestyle -->
<xen:elseif is="in_array({$category.node_id}, array(56,8,5))" />
<!-- mixed, multi-topic -->
<xen:else />
<!-- no IVW -->
</xen:if>
For you, use BD Widget to make it easy to manage or add.thanks, maybe someone can use my code:
Code:<xen:if is="{$contentTemplate} == 'forum_list'"> <!-- start --> <xen:elseif is="{$contentTemplate} == 'search_form'" /> <!-- search --> <xen:elseif is="in_array({$contentTemplate}, array('conversation_list','account_alerts','news_feed_page','member_notable','member_view'))" /> <!-- social networking --> <xen:elseif is="in_array({$contentTemplate}, array('register_form','online_list','news_feed_page','thread_reply','thread_create','conversation_add','conversation_reply','help_index','help_smilies','help_bb_codes','help_trophies','help_cookies'))" /> <!-- corporate com --> <xen:elseif is="in_array({$category.node_id}, array(3,293))" /> <!-- entertainment and lifestyle --> <xen:elseif is="in_array({$category.node_id}, array(56,8,5))" /> <!-- mixed, multi-topic --> <xen:else /> <!-- no IVW --> </xen:if>
List of contentTemplates I found:
- forum_list
- search_form
- conversation_list
- account_alerts
- news_feed_page
- member_notable
- member_view
- register_form
- online_list
- news_feed_page
- thread_reply
- thread_create
- conversation_add
- conversation_reply
- help_index
- help_smilies
- help_bb_codes
- help_trophies
- help_cookies
We use essential cookies to make this site work, and optional cookies to enhance your experience.