SMF Ads Support Forum

Support => General Support => Topic started by: txt3rob on January 06, 2008, 07:33:57 AM

Title: how put ads every 10 replys
Post by: txt3rob on January 06, 2008, 07:33:57 AM
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
Title: Re: how put ads every 10 replys
Post by: tiger5226 on January 08, 2008, 07:59:07 PM
//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