欢迎光临杨雨的个人博客站!

杨雨个人网站-杨雨个人博客-杨照佳

杨雨个人博客网站

关注互联网和搜索引擎的个人博客网站

首页 > cms使用教程 > discuz使用教程 >

Google广告与Discuz! 论坛完美结合教程

发布时间:2019-03-11  编辑:杨雨个人博客网站   点击:   

4、在你认为合适的位置加入下文提供的代码格式,我的是这样的:找到

<!--{if $whosonlinestatus}-->

在前面加入

以下为引用的内容:

<tbody>
<tr>
<td colspan="3" class="header"><span class="bold">赞助商链接</span>
</td></tr></tbody>
<tbody>
                <tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                <td width="5%" align="center" valign="middle"><img src=http://www.chinaz.com/prime/2007/0801/"{IMGDIR}/supe_updateusers.gif" alt="" /></td>
<td width="95%" colspan="2" valign="middle" style="word-break: keep-all">
<script type="text/javascript"><!--
google_ad_client = "pub-3626584744060780";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-04-25: sample
google_ad_channel = "1605672121";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src=http://www.chinaz.com/prime/2007/0801/"http:/pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-3626584744060780";
google_ad_width = 180;
google_ad_height = 90;
google_ad_format = "180x90_0ads_al_s";
//2007-04-25: sample
google_ad_channel = "1605672121";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src=http://www.chinaz.com/prime/2007/0801/"http:/pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr>
                </tbody>

 

5、更新缓存,搞定

内页修改方法:

1、进后台——论坛管理——模版编辑

2、你正在使用哪个模版就点击它右边的“详情”

3、找到forumdisplay和viewthread(如果没有,就去默认模版里面找),点后面的“编辑” (如果不能编辑,先去ftp修改文件属性)

4、在你认为合适的位置加入下文提供的代码格式

以下为引用的内容:
<div class="maintable">
        <div class="spaceborder" style="width: {TABLEWIDTH}">
        <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
<tr>
<td colspan="3" class="header"><span class="bold">赞助商链接</span>
</td></tr></tbody>
<tbody>
                <tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
                <td width="5%" align="center" valign="middle"><img src=http://www.chinaz.com/prime/2007/0801/"{IMGDIR}/supe_updateusers.gif" alt="" /></td>
<td width="95%" colspan="2" valign="middle" style="word-break: keep-all">
<script type="text/javascript"><!--
google_ad_client = "pub-3626584744060780";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-04-25: sample
google_ad_channel = "1605672121";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src=http://www.chinaz.com/prime/2007/0801/"http:/pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-3626584744060780";
google_ad_width = 180;
google_ad_height = 90;
google_ad_format = "180x90_0ads_al_s";
//2007-04-25: sample
google_ad_channel = "1605672121";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src=http://www.chinaz.com/prime/2007/0801/"http:/pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr>
</table></div><br></div>
 

5、更新缓存,搞定!

截图

本文地址:http://itbyc.com/cms/discuz/19108.html
转载请注明出处。

分享是一种快乐,也是一种美德:
评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
博客首页 | WEB开发 | 网站运营 | CMS使用教程 滇ICP备14002061号-1