織夢(mèng)會(huì)員文章被別人評(píng)論后可以自動(dòng)發(fā)送系統(tǒng)短消息通知作者,現(xiàn)在就教大家如何實(shí)現(xiàn)這個(gè)功能:
我們找到并打開(kāi)/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}》有新的評(píng)論','$dtime','$dtime','0','0','{$cfg_ml->M_LoginID}說(shuō):{$msg}'); "; $rs = $dsql->ExecuteNoneQuery($inquery); $rs = $dsql->ExecuteNoneQuery($inquery1); |
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)會(huì)員文章被評(píng)論后自動(dòng)發(fā)短消息給作者的教程