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 } ?> PHP: It's still displaying on every post. Whats the if first post command in PhpBB? Thanks.
<?php if($postrow_i == 0) echo $adsense; ?> PHP: or try "Banner Ad After First Post" hack by geocator < > (Brian) http://www.geocator.us
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.
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.