Discuz教程网

[常见问题] 删除DZ X3无下限的请求桌面通知

[复制链接]
authicon dly 发表于 2013-8-22 18:18:16 | 显示全部楼层 |阅读模式
具体代码在template/default/common/footer.htm里面
大约136行到152行,具体内容如下:
  1. <!--{if ($_G[member][newpm] || $_G[member][newprompt]) && empty($_G['cookie']['ignore_notice'])}-->
  2.         <script type="text/javascript" src="{$_G[setting][jspath]}html5notification.js?{VERHASH}"></script>
  3.         <script type="text/javascript">
  4.         var h5n = new Html5notification();
  5.         if(h5n.issupport()) {
  6.                 <!--{if $_G[member][newpm] && $_GET[do] != 'pm'}-->
  7.                 h5n.shownotification('pm', '$_G[siteurl]home.php?mod=space&do=pm', '<!--{avatar($_G[uid],small,true)}-->', '{lang newpm_subject}', '{lang newpm_notice_info}');
  8.                 <!--{/if}-->
  9.                 <!--{if $_G[member][newprompt] && $_GET[do] != 'notice'}-->
  10.                                 <!--{loop $_G['member']['category_num'] $key $val}-->
  11.                                         <!--{eval $noticetitle = lang('template', 'notice_'.$key);}-->
  12.                                         h5n.shownotification('notice_$key', '$_G[siteurl]home.php?mod=space&do=notice&view=$key', '<!--{avatar($_G[uid],small,true)}-->', '$noticetitle ($val)', '{lang newnotice_notice_info}');
  13.                                 <!--{/loop}-->
  14.                 <!--{/if}-->
  15.         }
  16.         </script>
  17. <!--{/if}-->
复制代码
全部删除即可。

顺便提一下,应用中心的插件更新提示在124到127行:
  1. <!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && empty($_G['cookie']['pluginnotice'])}-->
  2.         <div class="focus plugin" id="plugin_notice"></div>
  3.         <script type="text/javascript">pluginNotice();</script>
  4. <!--{/if}-->
复制代码
我删除了这2个,没有了那个烦人的无下限的请求桌面通知和插件更新的提示了,爽!



上一篇:首页没显示啊
下一篇:1314学习网签到记录贴-2013年8月23日
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-17 16:44

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表