News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

how put ads every 10 replys

Started by txt3rob, January 06, 2008, 07:33:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

txt3rob

im trying to add an advert every 10 replys i've got a topic with over 800 pages how to i get it to display every 10 replys?.

if not possible any one able to make some php code that will give me every multiple of 10 up to about 2000 with the right commers

tiger5226

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds[color=red]()[/color];
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Inside the red (10) I would try messing around with that to make multiples of 10. I am not a pro but there is no one here answering questions so I thought I would give you a place to start.

Mark