短信清空:
source/include/space/space_pm.php
查找:- } elseif($_GET['subop'] == 'ignore') {
复制代码 在上面添加
- } elseif($_GET['subop'] == 'alldel') {
- require_once DISCUZ_ROOT.'./config/config_ucenter.php';
- DB::query("DELETE FROM ".UC_DBTABLEPRE."pms WHERE msgtoid ='$_G[uid]' AND folder='inbox'");
- showmessage("所有短信已经清空。", "home.php?mod=space&do=pm");
复制代码 template/default/home/space_pm.htm
查找:- <a href="home.php?mod=space&do=pm&subop=ignore"$actives[ignore]>{lang ignore_list}</a>
复制代码 改成:- <a href="home.php?mod=space&do=pm&subop=ignore"$actives[ignore]>{lang ignore_list}</a><span class="pipe">|</span>
- <a href="home.php?mod=space&do=pm&subop=alldel">清空短信息</a>
复制代码 --
提醒清空:
source/include/space/space_notice.php
查找:- $actives = array($view=>' class="a"');
复制代码 在下面添加:- if($_GET['action'] == 'alldel') {
- DB::query("DELETE FROM ".DB::table('home_notification')." WHERE uid='$_G[uid]'");
- showmessage("此分类提醒信息已经清空。", "home.php?mod=space&do=notice");
- }
复制代码 template/default/home/space_notice.htm
查找:- <div class="tbmu">{lang notice_warning_message}</div>
复制代码 在下面添加:- <div class="tbmu"><a href="home.php?mod=space&do=notice&action=alldel">清空此分类提醒信息</a></div>
复制代码 完成.
原作:江湖大虾仁
地址:http://www.discuz.net/thread-1512973-1-1.html
|