• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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


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


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.