Debt Consolidation - Kamala Harris - Find jobs - Shopping news - Debt Consolidation

PDA

View Full Version : Ads in first post in PHPBB? My code isn't working


mizt
Sep 5th 2005, 12:15 pm
I'm trying to place ads within the first post on phpbb. I added the following code

<?php if($postrow_i == 0) { ?>

<script type="text/javascript"><!--
google_ad_client = "pub-5321002013560357";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "E1E8EC";
google_color_bg = "E1E8EC";
google_color_link = "234C60";
google_color_url = "234C60";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<?php } ?>

It's still displaying on every post. Whats the if first post command in PhpBB? Thanks.

Janissary
Sep 5th 2005, 1:01 pm
<?php
if($postrow_i == 0)
echo $adsense;
?>


or try "Banner Ad After First Post" hack by geocator < geocator@gmail.com > (Brian) http://www.geocator.us

mizt
Sep 5th 2005, 1:17 pm
Where do I declare $adsense = ad code

Janissary
Sep 5th 2005, 4:15 pm
extension.inc file in your phpbb root
I always use it for my functions... or you can just use echo 'your adsense code';

but as I said before the hack I refered will give you the ability to change the code from your admin panel.

mizt
Sep 5th 2005, 5:36 pm
For some reason i can't get that mode to work with my template. If you want ot make a quick $10 let me know.

Janissary
Sep 6th 2005, 2:33 am
yep, you can send me details....