• 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...

Arty

Well-known member
#2
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
#5
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.