所属分类:PHPBB论坛程序,插件收集与修改
用记事本打开 styles/subsilver2/template/viewtopic_body文件
查找
[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]
替换为你需要增加的广告代码
查找
[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]
替换为你需要增加的广告代码