×

discuz教程 s discuz

discuz教程:如何去掉论坛右下角的新短消息提醒?notifications是什么意思

admin admin 发表于2022-05-03 20:37:25 浏览124 评论0

抢沙发发表评论

discuz教程:如何去掉论坛右下角的新短消息提醒

如何去掉论坛右下角的新短消息提醒打开\template\default\common\footer.htm文件,然后找到137-150行的代码删除即可

       

《script type=“text/javascript“》        var h5n = new Html5notification();        if(h5n.issupport()) {                《!--{if $_G[member][newpm] && $_GET[do] != ’pm’}--》                h5n.shownotification(’pm’, ’$_G[siteurl]home.php?mod=space&do=pm’, ’《!--{avatar($_G[uid],small,true)}--》’, ’{lang newpm_subject}’, ’{lang newpm_notice_info}’);                《!--{/if}--》                《!--{if $_G[member][newprompt] && $_GET[do] != ’notice’}--》                                《!--{loop $_G[’member’][’category_num’] $key $val}--》                                        《!--{eval $noticetitle = lang(’template’, ’notice_’.$key);}--》                                        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}’);                                《!--{/loop}--》                《!--{/if}--》        }        《/script》

notifications是什么意思

notifications意为:通知(notification的复数形式)notification 英[ˌnəʊtɪfɪˈkeɪʃn] 美[ˌnoʊtɪfɪˈkeɪʃn] n. 通知; 通知单; 布告; 公布; 例句:When she updates the proposal, you receive a notification. 如果她更新了提案,您就会收到通知。we’ve received no official notification. 直到现在我们还没有接到正式通知。

header(“Content-type:text/html;charset=utf-8“);什么意思

它的意思是设置页面内容是html,编码格式是utf-8。

header()函数的作用是:发送一个原始 HTTP 标头[Http Header]到客户端。标头 (header) 是服务器以 HTTP 协义传 HTML 资料到浏览器前所送出的字串,在标头与 HTML 文件之间尚需空一行分隔。在 PHP 中送回 HTML 资料前,需先传完所有的标头。-discuz

常用header汇总:

header(’Content-Type: text/html; charset=utf-8’); //网页编码

header(’Content-Type: text/plain’); //纯文本格式

header(’Content-Type: image/jpeg’); //JPG、JPEG

header(’Content-Type: application/zip’); // ZIP文件

header(’Content-Type: application/pdf’); // PDF文件

header(’Content-Type: audio/mpeg’); // 音频文件

header(’Content-type: text/css’); //css文件

header(’Content-type: text/javascript’); //js文件

header(’Content-type: application/json’); //json

header(’Content-type: application/pdf’); //pdf

header(’Content-type: text/xml’); //xml

header(’Content-Type: application/x-shockw**e-flash’); //Flash动画