Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report