DISCUZ change group posting system alert member icationication_add send notification function notification_add ($ touid, $ type, $ note, $ notevarsarray (), $ system0) $ touid: who to send? $ Type: method? Commonly used is post $ note: you can edit the content by yourself. $ notevars DISCUZ changes the group posting system and reminds the member icationication_add to send the notification prompt function.
Notification_add ($ touid, $ type, $ note, $ notevars = array (), $ system = 0)
$ Touid: Who is the sender?
$ Type: method? Usually post
$ Note: you can edit the content yourself.
$ Notevars = some content parameters
$ System = 0 by default
Add the following code to line 3 of the souse/class/module/module_forum_thread.php file.
If ($ this-> param ['isgroup'] = 1 ){
$ Bt = $ this-> param ['subobject'];
$ 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 );
}
}
Effect: If any member of the group posts in the group, all the members of the group will receive a system reminder and receive a system reminder.
Author: If you have any questions, add them to the group.