1:首先找到source/admincp目录下的admincp_main.php文件
2:搜索$shownotice = '';将其下三个if判定注释掉既可,注释后的代码如下:

$shownotice = '';
/*
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && ($_G['setting']['showpatchnotice'] == 1 || !isset($_G['cookie']['checkpatch']))) {
$Discuz!_patch = new Discuz!_patch();
if($_G['setting']['showpatchnotice'] == 1) {
$notice = $Discuz!_patch->fetch_patch_notice();
if($notice['data']) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=patch" id="notice">'.($notice['fixed'] $lang['patch_fix_complete'] : $lang['patch_fix_rigth_now']).'</a></div>';
}
}
if(!isset($_G['cookie']['checkpatch'])) {
$Discuz!_patch->check_patch();
}
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !$shownotice && $_G['setting']['upgrade']) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
if($_G['uid'] && $_G['member']['allowadmincp'] == 1 && !isset($_G['cookie']['checkupgrade'])) {
$Discuz!_upgrade = new Discuz!_upgrade();
if($Discuz!_upgrade->check_upgrade()) {
if(empty($shownotice)) {
$shownotice = '<div class="notice"><a href="'.$basescript.' action=upgrade" id="notice">'.$lang['upgrade_right_now'].'</a></div>';
}
}
dsetcookie('checkupgrade', 1, 7200);
}*/

管理员后台工具清空缓存,浏览器清空缓存,就不会再提示了。

PS:推荐是经常升级,我删除该提示只是因为内网使用,不需要更新,而且改了一些文件,不想覆盖了重新改。


如您从本文得到了有价值的信息或帮助,请考虑扫描文末的二维码对我进行赞赏和鼓励。

与《去掉|删除:您目前使用的 Discuz! 程序有新版本发布,请及时升级》相关的博文:


发布时间 05/15/2014 09:19:01所属栏目 Software.所属标签 .

留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌