织梦DEDECMS文章被评论后发短消息给作者的方法

网站建设 2022-07-27 09:12www.1681989.com免费网站
DEDECMS 文章被别人评论后系统短消息通知作者的代码成功,现在特别将方法分享给大家,需要修改的文件是feedback.php。找到 $query = "INSERT INTO `58pic_feedback` (`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`, `bad`,`good […]



 DEDECMS文章被别人评论后系统短消息通知作者的代码成功,现在特别将方法分享给大家,需要修改的文件是feedback.php。找到

$query = "INSERT INTO `58pic_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($query); 

修改为

$query = "INSERT INTO `58pic_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'); "; 
$query1 = "INSERT INTO `58pic_member_pms` (`flogid`,`fromid`,`toid`,

`tologid`,`folder`,`subject`,`sendtime`,`writetime`,`hasview`,`isadm`,`message`) 
                   VALUES ('adm','1','$mid','$writer','box','你的《{$arctitle}》有新的评论',

'$dtime','$dtime','0','0','{$cfg_ml->M_LogID}说:{$msg}'); "; 
$rs = $dsql->ExecuteNoneQuery($query); 
$rs = $dsql->ExecuteNoneQuery($query1);



Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by