Forum Moderators: rogerd

Message Too Old, No Replies

Question for the phpBB Experts

         

arinick

4:07 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



I have recently set up my first forum-- and I am quickly getting hooked. I have read and seen examples of ad placements below the first post in a thread, and I would like to do the same-- but, I can't figure out how to write it into the TPL. Every attempt has resulted in the ad showing multiple times (at the bottom of each and every post).

Can anybody tell me the trick?

Thanks much

trillianjedi

4:17 pm on Nov 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's because the template is effectively used in a loop.

You'll need to get your feet wet with the php code.

From memory, it's viewtopic.php that you need to adjust - you'll need to insert adsense direct in there after post 1 is rendered and processed through the template, then allow the rest of the loop to continue as usual.

TJ

BlackRaven

6:21 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



arinick why dont u just the adsense phpbb mod? its in the phpbb mod db

arinick

7:09 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



I guess I hadn't seen how many publicly available mods were really out there! Thanks, BR.

I've downloaded one that not only places Adsense but also lets it be swapped out with other banners. Nice.

arinick

7:10 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



Trillian-- it is time that I start getting my feet wet with PHP, though. I've just got to find a little bit of time :D

numbchuckskills

9:25 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



this is what youre looking for:

[askdavetaylor.com...]