Why does this code not work?It doesn't display it in the post, the ad_message_body template does that.
If you want to create more separation however, add this as the first line in the ad template
</li><li>
<xen:comment> PLACE YOUR ADVERTISEMENT CODE DIRECTLY BELOW </xen:comment>
</li><li><xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ALOPECI TOPP -->
<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>
</xen:if>
Bro it works with going under the first post, only problem is that it looks messed up for me. Any ideas on how this could be resolved or what the cause could be?ad_message_below
Use this conditional:
<xen:if is="{$post.position} == 0">
advert
</xen:if>
Bro do you know how to make an ad appear after ever 3 posts? I know some java but not PHP. Its so simple to do but I can't.ad_message_below
Use this conditional:
<xen:if is="{$post.position} == 0">
advert
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.