DISCUZ Change Group posting system reminder Member Notification_add send notification prompt function, notification
Notification_add ($touid, $type, $note, $notevars = Array (), $system = 0) $touid: Who is it sent to? $type: How? Commonly used is post$note: You can edit the content yourself $notevars = Some content parameters $system = 0 By default Add the following code to the Souse/class/module/module_forum_ Thread.php the 139th line of the file can be if ($this->param[' Isgroup ']==1) {
$BT = $this->param[' subject ');
$querys = Db::fetch_all (' select * from Pre_forum_groupuser wherefid= '. $this->forum[' fid ');
foreach ($querysas $arr) {
Notification_add ($arr [' uid '], ' system ', $author. ' Published: '. $BT, Array (' from_id ' = 0, ' from_idtype ' = ' sendnotice ') , 1);
}
To achieve the effect: any member within the group posts in the group, all members of the group will receive a system alert, and prompted a system reminder. Author: Beyond the question please Dabigatran
http://www.bkjia.com/PHPjc/935347.html www.bkjia.com true http://www.bkjia.com/PHPjc/935347.html techarticle DISCUZ Change Group posting system reminder Member Notification_add send notification prompt function, notification notification_add ($touid, $type, $note, $notevars = array (), $system = 0) $touid ...