年年我发



返回   年年我发 > 网站建设 > 建站交流 > Web Directory
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 218.2.29.112
旧 2007-07-01, 08:29 AM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 618
精华: 11
现金: 4905 元
资产: 7353 元
声望: 10 topvip 正向着好的方向发展
默认 如何不让phpld首页不显示adsense?

This mod will show Google Adsense under the "Featured Links" as "Sponsored Links". You can see what I mean on the site in my sig.

This mod was inspired from a thread of "seothatworks", Thank you!

In main.tpl just before "{* Links heading and sorting*}" add:
代码:
{if $category.ID != 0} {include file="googlead.tpl"} {/if}

Make a new file and call it googlead.tpl with these lines:
代码:
<h3>{l}Sponsored Links{/l}</h3> <DIV STYLE="text-align:center;margin-bottom:-10px;"> <script type="text/javascript"><!-- google_ad_client = "XXXXXXXXXXXX"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel ="XXXXXXXXXXXXX"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "008000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </DIV>
回复时引用此帖

wellcome to www.0058.net
  #2   IP: 218.2.29.112
旧 2007-07-01, 08:31 AM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 618
精华: 11
现金: 4905 元
资产: 7353 元
声望: 10 topvip 正向着好的方向发展
默认

How do I get adsense to appear on the search pages as well?

to make adsense appear in the search page as well, just use the following code:
代码:
{if $category.ID gt 0 or $qu} {include file="googlead.tpl"} {/if}

instead of
代码:
{if $category.ID != 0} {include file="googlead.tpl"} {/if}
回复时引用此帖
  #3   IP: 218.2.29.112
旧 2007-07-01, 08:36 AM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 618
精华: 11
现金: 4905 元
资产: 7353 元
声望: 10 topvip 正向着好的方向发展
默认

你也可以这么做:在main.tpl中加入

引用:
{if $category.ID != 0}
{literal}
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


</center>
{/literal}
{/if}
回复时引用此帖
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转


所有时间均为北京时间. 现在的时间是 11:29 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2009,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager