PDA

View Full Version : phpadsnew after every 10. post


Ruffneck
06-25-2004, 05:57 AM
i want make text ads like google with own ads/links, i´m using adsense on the header i want now using phpadsnew text ads on every 10nd post of a thread...
how can i make it? i only know i must modifid a template postbit....

trainer
07-05-2004, 03:42 PM
anyone ever get this figured out? would be interested in know also

sabret00the
07-05-2004, 04:09 PM
i wanted to do this half way through a threw, but after every so many posts would be even better :)

eoc_Jason
07-08-2004, 02:03 AM
You might be able to do it with a conditional based on the post count. Otherwise you will need to edit the showthread.php file.

sabret00the
07-08-2004, 06:25 AM
nah it can be done with a conditional i.e. <if condition="$counter==10 or $counter==20 or $counter==30 or $counter==40">$phpadsnew</if>

Andy R
11-01-2004, 06:05 PM
This is nearly exactly what I am looking for except that some of my threads have 400+ posts and I was wondering if there was an easier way to tell it to add the ads every X posts rather then state between which posts to add them?

Any help is greatly appreciated!

Kaktus
11-02-2004, 02:46 AM
nah it can be done with a conditional i.e. <if condition="$counter==10 or $counter==20 or $counter==30 or $counter==40">$phpadsnew</if>

Where can we put that condition? :confused:

hpwilhelm
11-09-2004, 10:59 AM
Where can we put that condition? :confused:
In your postbit template :)

Andreas
11-09-2004, 11:09 AM
nah it can be done with a conditional i.e. <if condition="$counter==10 or $counter==20 or $counter==30 or $counter==40">$phpadsnew</if>

I'd suggest

<if condition="($post[postcount] % 10) == 0">$phpadsnew</if>

mayhemmike
11-12-2005, 07:57 PM
How do you call the phpcode for phpadsnew?

Is the code placed in the php include file?

If so, how do you call the function?

Thanx,

Mike