PHPBB3.X论坛风格第1贴与第9贴增加GOOGLE广告显示位置
查找
[code]{postrow.MESSAGE}[/code]
在后面增加
[code]<!-- IF postrow.S_FIRST_ROW == 1 or postrow.S_FIRST_ROW == 9 or postrow.S_FIRST_ROW%10 == 1 --><br>
<script type="text/javascript"><!--
google_ad_client = "pub-4427346567568271";
google_alternate_ad_url = "http://www.a3guo.com/hot468.htm";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- ENDIF -->[/code]
注意:可以将
[code]<script type="text/javascript"><!--
google_ad_client = "pub-4427346567568271";
google_alternate_ad_url = "http://www.a3guo.com/hot468.htm";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>[/code]
替换为你需要增加的广告代码