Flexin
Active member
Sidebar = 200 x 200
Top breadcrumb = 720
Thanks. Is there a standard height for the 720?
James
Sidebar = 200 x 200
Top breadcrumb = 720
<xen:hook name="ad_message_body" />
<style type="text/css">
.message-body-dynamic {
width: 125px;
height: 125px;
}
@media(min-width: 360px) {
.message-body-dynamic {
width: 180px;
height: 150px;
}
}
@media(min-width: 640px) {
.message-body-dynamic {
width: 300px;
height: 250px;
}
}
</style>
<xen:if is="!{$visitor.user_id}">
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
<xen:if is="@enableResponsive">
<div style="min-height: 150px; margin-left: 8px; float: right">
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Message Body - Dynamic -->
<ins class="adsbygoogle message-body-dynamic"
style="display:inline-block"
data-ad-client="ca-pub-12345678"
data-ad-slot="987654321"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<xen:else />
<div style="min-height: 150px; margin-left: 8px; float: right">
<script type="text/javascript">
google_ad_client = "ca-pub-4545465645";
/* Message Body */
google_ad_slot = "3445565645";
google_ad_width = 300;
google_ad_height = 250;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</xen:if>
</xen:if>
</xen:if>
I think BD Widget can do thatAnd a skyscraper on right side of thread view list: http://www.avforums.com/forums/tvs.104/
For the first, use the ad_message_body template.
This is mine:
Code:<xen:hook name="ad_message_body" /> <style type="text/css"> .message-body-dynamic { width: 125px; height: 125px; } @media(min-width: 360px) { .message-body-dynamic { width: 180px; height: 150px; } } @media(min-width: 640px) { .message-body-dynamic { width: 300px; height: 250px; } } </style> <xen:if is="!{$visitor.user_id}"> <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0"> <xen:if is="@enableResponsive"> <div style="min-height: 150px; margin-left: 8px; float: right"> <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Message Body - Dynamic --> <ins class="adsbygoogle message-body-dynamic" style="display:inline-block" data-ad-client="ca-pub-12345678" data-ad-slot="987654321"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <xen:else /> <div style="min-height: 150px; margin-left: 8px; float: right"> <script type="text/javascript"> google_ad_client = "ca-pub-4545465645"; /* Message Body */ google_ad_slot = "3445565645"; google_ad_width = 300; google_ad_height = 250; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </xen:if> </xen:if> </xen:if>
For the second, use the ad_sidebar_below_visitor_panel template.
Edit: Just realised it's the thread list, you will need to create a custom template and edit the forum_view template accordingly.
http://xenforo.com/community/resources/conditional-statements.1604/
How can I show content after post x on every page in a thread?
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == x">
This content will show after post x on every page
</xen:if>
We have it below the quick reply, works best for us and also 1 under the 1st post + block floating right.OK, how about what about the 1st and 15th post on every page?
This template doesn't work when I insert any code in it.....
ad_forum_view_above_node_list
Anyone know why?
How can I add adverts under each forum Category ?
What's the name of that addon? I need to put something under my categories. any idea?I remember, there is an addon for that.
I think it's paid addon.
We use essential cookies to make this site work, and optional cookies to enhance your experience.