博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
DISCUZ 更改群组发帖系统提醒成员 notification_add 发送通知提示函数
阅读量:4453 次
发布时间:2019-06-07

本文共 642 字,大约阅读时间需要 2 分钟。

notification_add($touid, $type, $note, $notevars = array(), $system = 0)
$touid : 发送给谁?
$type : 方式? 常用的是post
$note : 可以自己编辑内容
$notevars = 一些内容参数
$system = 默认情况下为0
 
 
 
将下列代码加入到souse/class/module/module_forum_thread.php文件第139行即可
 
if($this->param['isgroup']==1){
   $bt=$this->param['subject'];
            $querys = DB::fetch_all('select * from pre_forum_groupuser where fid='.$this->forum['fid']);
   foreach($querys as $arr){
     notification_add($arr['uid'], 'system', $author.'发表了:'.$bt, array('from_id' => 0, 'from_idtype' => 'sendnotice'), 1);
     }
    }
 
实现效果:群组内任意一成员在群组里面发帖子,群组所有成员就会收到系统提醒,并且提示有系统提醒。
 
 
author:超越 有问题请加群

转载于:https://www.cnblogs.com/52chaoyue/p/4195110.html

你可能感兴趣的文章
lua语言三则特性
查看>>
asp.net的Nelocity模板引擎
查看>>
fis webpack 原理对比
查看>>
22 广播的发送
查看>>
【转载】C++资源之不完全导引
查看>>
php导出数据到excel,防止身份证等数字字符格式变成科学计数的方法
查看>>
(转)Understanding Waiting Times Between Events with the Poisson and Exponential Distributions
查看>>
Why GraphQL is Taking Over APIs
查看>>
HTML 标题
查看>>
SoapUI开源版简单定制报告4
查看>>
第一天
查看>>
Linux 创建用户 限制SFTP用户只能访问某个目录
查看>>
石子合并
查看>>
怪异的grep结果
查看>>
百度编辑器自定义插件
查看>>
【CYH-02】NOIp考砸后虐题赛:函数:题解
查看>>
Angular 资料大集合
查看>>
html基础
查看>>
redis的安装与使用
查看>>
Linux 安装 Djiango
查看>>