Coinbase

Author Topic: how put ads every 10 replys  (Read 1886 times)

0 Members and 1 Guest are viewing this topic.

Offline txt3rob

  • Newbie
  • *
  • Posts: 1
    • Email
how put ads every 10 replys
« 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

Offline tiger5226

  • Jr. Member
  • **
  • Posts: 32
    • Email
Re: how put ads every 10 replys
« Reply #1 on: January 08, 2008, 07:59:07 pm »
Code: [Select]
//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

SMF Ads Support Forum

Re: how put ads every 10 replys
« Reply #1 on: January 08, 2008, 07:59:07 pm »
.

 

.