就是说 Google AdSense 广告不能放置在退出页面,感谢页面,404错误页面,以及登录页面。广告应当是内容定位的,文字很少,几乎没有文字的图片库网站也不适合放置广告。Ads should not be the main focus of the page and/or be more prominent than the content itself. This may include pages that a user visits before potentially exiting a domain (i.e., “exit pages” or “thank you” pages), 404 error pages, and some log-in pages. As our ads are contextually targeted, image galleries with little text are also not the best place for our ads.
那样的话,Google AdSense 代码就不适合放到 phpBB 的模板文件的全局页脚模板, overall_footer.html 中了,因为这样在所有的页面中的都会显示广告的。要符合Google条款,广告只显示在内容丰富的页面,那就是论坛首页,版面页面,帖子页面。
最好的方法是,新添加一个模板文件,adsense.html 其中加入Google AdSense 广告代码。
编辑 index_body.html viewtopic_body.html viewforum_body.html
在合适的地方,比如在包含头部文件的代码下边,加上这段代码:
代码: 全选
<!-- INCLUDE adsense.html -->