XF 1.3 Place an ad after every 5th post

caliman

Active member
Licensed customer
I posted this in the conditional thread and was told to use xen:calc. Unfortunately there are not a lot of examples of this.

So.. I was curious if anyone knows how to place an ad after every 5th post on a page?

Thanks in advance!

matt
 
A big thank you to you Jake. That is in the ballpark... it puts it in after 1st post, 6 post, 11 post, 16 post etc.. That will work just fine.
Oddly, my banner server is displaying the same banner in all those spots. That may be something outside of xF though. Thanks again
 
No it's my own ads. Fairly odd as it is just an html image tag and hyperlink. I suspect caching as I have a lot of that going on.
 
I figured out my caching issue - that is, I have a solution that works - I simply added a dummy variable to the end of the HREF and IMG tag that have the post position number - that way - each banner has different code - does not get cached - and loads.

;bpost={$post.position}
 
Back
Top Bottom