XF 1.5 Putting an ad every Xth post in a thread...

tribedude

Active member
In addition to the stock ad location templates, is there a way to put an ad every Xth post in a thread?
 

Arty

Well-known member
You can use template modifications for that. In template thread_view replace
Code:
<xen:foreach loop="$posts" value="$post">
with something like
Code:
<xen:foreach loop="$posts" value="$post" i="$i">
<xen:if is="{$i} == 1">
   code for ad after second post
</xen:if>
 

RobParker

Well-known member
Be somewhat careful that you don't end up violating policies, etc.

We found that digital points addon which puts an ad after the last read post ended up converting much better than putting ads in various fixed positions.
 
Top