Home  >  Article  >  CMS Tutorial  >  How to send a text message to the author after a DreamWeaver article has been commented on?

How to send a text message to the author after a DreamWeaver article has been commented on?

angryTom
angryTomOriginal
2019-11-16 10:18:401638browse

How to send a text message to the author after a DreamWeaver article has been commented on?

How to send a text message to the author after the Dream Weaver article is commented on

DEDECMS The system sends a message after the article is commented by others The implementation method of sending short messages to authors is as follows: In the feedback.php file, add a sql statement to insert the message of successful comment into the dede_member_pms table, so that the author can receive the notification.

The file that needs to be modified is: feedback.php

Found:

$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);

Modify to:

$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);

Recommended tutorial: dedecms Tutorial

The above is the detailed content of How to send a text message to the author after a DreamWeaver article has been commented on?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn