原帖由 M55 于 2006-3-11 09:26 发表
正解~~~~~同时感谢兄弟的热心!收下了
同时提个问题给楼主兄弟:
怎么取消“短信”功能??
如果你不希望发布的时候收到短信请找到:
- ##给用户发短信息,通知其爱墙号
- $db->query("UPDATE {$tablepre}members SET newpm='1' WHERE uid IN ($discuz_uid)", 'UNBUFFERED');
- $subject = "您在爱墙发布祝福的号码";
- $message = "您好,您在爱墙发布的祝福已经完成,下面是祝福号码,请记住,以便于查询。\r\n祝福号码:".$loveid;
- $query = "INSERT INTO {$tablepre}pms (msgfrom, msgfromid, msgtoid, folder, new, subject, dateline, message)
- VALUES('温州论坛', '0', '$discuz_uid', 'inbox', '1', '$subject', '$timestamp', '$message')";
- $db->query($query);
复制代码
将其删除就可以了!
如果你删除别人的祝福时,不希望发送短信给别人,请找到:
- ##给用户发短信息,通知其爱墙号被删
- $query = $db->query("SELECT uid,id FROM {$tablepre}lovewall WHERE id IN ('".implode('\',\'', $moderate)."')");
- while($delrow = $db->fetch_array($query))
- {
- $duid = $delrow['uid'];
- $db->query("UPDATE {$tablepre}members SET newpm='1' WHERE uid=$duid", 'UNBUFFERED');
- $subject = "被删除祝福的号码";
- $message = "您好,您在爱墙发布的祝福因为违规已经被删除。\r\n被删除的祝福号码:".$delrow['id'];
- $sql = "INSERT INTO {$tablepre}pms (msgfrom, msgfromid, msgtoid, folder, new, subject, dateline, message)
- VALUES('温州论坛', '0', '$duid', 'inbox', '1', '$subject', '$timestamp', '$message')";
- $db->query($sql);
- }
复制代码
将其删除即可! |