The method of sending short messages to the author after comments on dream-weaving articles
The editor will share with you the method of sending a short message to the author after the dream weaving article has been commented. I hope you will gain a lot after reading this article. Let's discuss it together.
How to send a short message to the author after the dream-weaving article is commented on?
After the DEDECMS article is commented by others, the system sends a short message to the author as follows: in the feedback.php file, add a sql statement and insert the comment success message into the dede_member_ PMS table, so that the author can receive the notification.
The file that needs to be modified is: feedback.php
Find:
$inquery = "INSERT INTO `feed 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}', '0century paramagram');"; $rs = $dsql-> ExecuteNoneQuery ($inquery)
Modified to:
$inquery = "INSERT INTO `feed 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}', '0mm,' 0mm,'$feedbacktype','$face','$msg');" $inquery1 = "INSERT INTO `dtime', pms` (`floginid`, `fromid`, `toid`, `tologinid`, `folder`, `folt`, `sendtime`, `writetime`, `hasview`, `isadmin`, `message`) VALUES ('admin',' 1comment,'$mid','$writer', 'inbox',' your" {$arctitle} "has new comments','$dtime','$dtime', '0,0,' $cfg_ml- > M_LoginID} say: {$msg}'); $rs = $dsql-> ExecuteNoneQuery ($inquery) $rs = $dsql-> ExecuteNoneQuery ($inquery1); after reading this article, I believe you have a certain understanding of the method of sending short messages to the author after comments on dream-weaving articles. Want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!