Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of sending a successful review short message to the contributor after the contribution review of dream weaving members

Shulou Source: shulou.com Published: 2022-06-02 05:17:04 10月02日 Update

This article mainly introduces the method of weaving dream members to send successful short messages to contributors after reviewing their contributions. The article is very detailed and has a certain reference value. Interested friends must finish reading it!

How to send a successful review short message to the contributor after the contribution review of dream weaving members?

1. Open dede/archives_do.php and find:

$query = "SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_ arctiny` arcLEFT JOIN `xc_ arctype` tp ON tp.id=arc.typeidLEFT JOIN `xc_ channeltype` ch ON ch.id=tp.channeltypeWHERE arc.id in ($arcids)"

Modified to:

$query = "SELECT arc.id,arc.mid,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_ arctiny` arcLEFT JOIN `xc_ arctype` tp ON tp.id=arc.typeidLEFT JOIN `xc_ channeltype` ch ON ch.id=tp.channeltypeWHERE arc.id in ($arcids)"

To achieve the function, extract the publisher ID, that is, the midvalue seen in the backstage member center.

two。 Find:

$dsql- > Execute ('ckall')

Add a line below it:

$dtime = time ()

Achieve the function to get the current audit time, that is, the time to release the short message.

3. Find:

$dsql- > ExecuteNoneQuery ("Update `dede_ member`set scores=scores+ {$cfg_sendarc_scores} where mid='". $cfg_ml- > M_ID. ";")

Add under it:

$mid = $row ['mid']; $dsql- > ExecuteNoneQuery ("INSERT INTO `dede_member_ pms` (`floginid`, `fromid`, `toid`, `folder`, `uplot`, `sendtime`, `writetime`, `viewhas`, `isadmin`, `message`) VALUES (' admin','1','$mid','inbox',' document audit message!','$dtime','$dtime','0','0',' your article has been reviewed by this site!')

To achieve the function, read out the user id, and write all the information into the short message table.

This will send a short message to the appropriate publisher at the same time of the audit.

Note: the table name in this method can be changed to your own table name.

The above are all the contents of the method of sending successful short messages to contributors after the contribution review of Weaving Dream members. Thank you for your reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Contribution short message member success contributor function method that is message content time line value member center interest publisher at the same time backstage guy buddy. Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB Huawei Shulou Information MySQL