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.
<?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.