织梦会员文章被别人评论后可以自动发送系统短消息通知作者,现在就教大家如何实现这个功能:
我们找到并打开/plus/feedback.php文件,在里面找到如下代码:
1 2 3 | $inquery = "INSERT INTO `dede_feedback` (`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`) VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime','{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); "; $rs = $dsql->ExecuteNoneQuery($inquery); |
将其替换为下面的代码:
1 2 3 4 5 6 | $inquery = "INSERT INTO `dede_feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`) VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime','{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); "; $inquery1 = "INSERT INTO `dede_member_pms` (`floginid`,`fromid`,`toid`, `tologinid`,`folder`,`subject`,`sendtime`,`writetime`,`hasview`,`isadmin`,`message`) VALUES ('admin','1','$mid','$writer','inbox','你的《{$arctitle}》有新的评论','$dtime','$dtime','0','0','{$cfg_ml->M_LoginID}说:{$msg}'); "; $rs = $dsql->ExecuteNoneQuery($inquery); $rs = $dsql->ExecuteNoneQuery($inquery1); |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 织梦会员文章被评论后自动发短消息给作者的教程