XF 1.4 Duplicate post - ad_message_below

Hey Everybody,

I am using Google Adsense and have noticed that messages posted in my forums are being duplicated when they have adsense code attached to them. Here is my code:


<xen:if is="!{xen:helper ismemberof, $visitor, 5, 6, 7}">
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 5 AND !{$message.conversation_id}">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
ADCODE
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</xen:if>
</xen:if>

So I only show ads on the every 5 messages, I noticed that in 2 separate posts, the message that was supposed to have this code attached has been duplicated. Does anyone know what this may be or have experienced this? Thanks!
 
Back
Top Bottom