DISCUZ Change Group posting system reminder Member Notification_add send notification prompt function, notification_php tutorial

Source: Internet
Author: User

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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.