ads in timeline feed

alt=
MONEE
@monee
2 months ago
36 posts
I want to inject ads into the timeline feed. Say an ad every x amount to action feeds. Is this possible?
douglas
@douglas
2 months ago
2,787 posts
I believe this would require a custom module or modifications to the timeline module.

Sorry, it's not possible at this time.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michael
@michael
2 months ago
7,713 posts
Its possible. You can do it in the foreach loop that outputs your timeline. Figure out which template that is and it will be something like:
{foreach $_item as $_i}
.... .stuff
{/foreach}
Then just put your add in there every X number of times like this
{foreach $_item as $_i}
                        {if $_i@iteration % 2 == 0}
                            PUT YOUR ADVERT IN HERE
                        {/if}
.... .stuff
{/foreach}


That will put an add every 2 posts. change the % 2 to % 6 to do it every six times.
alt=
MONEE
@monee
2 months ago
36 posts
Thanks. I will try this