欢迎光临
我们一直在努力

Discuz! 6.0.在论坛标题下加入广告的方法!~

建站超值云服务器,限时71元/月

首发思缘论坛!~

演示地址:http://www.missyuan.com/viewthread.php?tid=220760

如果您喜欢就顶一下,如果不喜欢那就砸砖吧,看见别人有过这个效果然后自己专研出来的!~

闲话不多说,由于6.0的gg显示太慢了我们只能手动的来添加!~

根据我一直以来的调查,我发现在标题下面加入广告效果最佳!~

下面我们来修改!~修改两个模板即可:

第一,修改forumdisplay.htm

找到

{lang forum_modedby}: <!–{if $moderatedby}–>$moderatedby<!–{else}–>{lang forum_opening}<!–{/if}–></p>

在上面加入:

<table border="0" cellpadding="0" cellspacing="0" width="970" bgcolor="#333333">
<tr>
  <td width="738">
  <p align="right"><script type="text/javascript"><!–
google_ad_client = "pub-***********";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-09-28: 首页
google_ad_channel = "6342346551";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "c1c1c1";
google_color_text = "ffffff";
google_color_url = "c1c1c1";
google_ui_features = "rc:6";
//–>
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></td>
  <td><p align="center"><script type="text/javascript"><!–
google_ad_client = "pub-***************";
google_ad_width = 120;
google_ad_height = 90;
google_ad_format = "120x90_0ads_al";
//2007-09-28: 标题
google_ad_channel = "7167117872";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "c1c1c1";
google_color_text = "333333";
google_color_url = "008000";
//–>
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>

即可,这样版面的标题下面已经添加好!~

第二,修改viewthread.htm

找到:

<div id="headsearch">
<!–{if !empty($google) && ($google & 4)}–>
  <script type="text/javascript" src="forumdata/cache/google_var.js"></script>
  <script type="text/javascript" src="include/javascript/google.js"></script>
<!–{/if}–>

在上面加入:

<table border="0" cellpadding="0" cellspacing="0" width="970" bgcolor="#333333">
<tr>
  <td width="738">
  <p align="right"><script type="text/javascript"><!–
google_ad_client = "pub-***********";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-09-28: 首页
google_ad_channel = "6342346551";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "c1c1c1";
google_color_text = "ffffff";
google_color_url = "c1c1c1";
google_ui_features = "rc:6";
//–>
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></td>
  <td><p align="center"><script type="text/javascript"><!–
google_ad_client = "pub-***************";
google_ad_width = 120;
google_ad_height = 90;
google_ad_format = "120x90_0ads_al";
//2007-09-28: 标题
google_ad_channel = "7167117872";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "c1c1c1";
google_color_text = "333333";
google_color_url = "008000";
//–>
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>

即可,这样帖子的标题下面已经添加好!~

上面大家把gg的ID改为自己的id

这次一就说这么多,下一次,我告诉大家如何在一个论坛里面使用多个模板来解决一些论坛由于部分版面不许投放gg的办法!~

\

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » Discuz! 6.0.在论坛标题下加入广告的方法!~
分享到: 更多 (0)