CyberAP
Well-known member
I have a code to insert an ad after first post but it also inserts ad in conversations and it doesn't depend on the thread page.
Here is my code:
How can I exclude conversations from this and show this only on the first page of the thread?
Here is my code:
PHP:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
<xen:include template="my_ad" />
</xen:if>
How can I exclude conversations from this and show this only on the first page of the thread?