DISCUZ Change Group posting system reminder Member Notification_add send notification prompt function
Notification_add ($touid, $type, $note, $notevars = Array (), $system = 0)
$touid: Who is it sent to?
$type: How? Commonly used is the post
$note: You can edit your own content
$notevars = Some content parameters
$system = 0 By default
Add the following code to line 139th of the souse/class/module/module_forum_thread.php file
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);
}
}
Implementation 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