本帖最后由 carlkyo 于 2011-11-8 21:20 编辑
source\language\lang_notification.php
在最后一行增加代码:
- 'system_thread_validating' => '有需要您审核的帖子呢!,点开这里看看吧,<a href="forum.php?mod=modcp&action=moderate&op=threads&fid=%7Bfid%7D%20target=" _blank="">现在进行审核</a><a href="home.php?mod=space&uid=%7Buid%7D" target="_blank">{actor}</a>在{area}发表{subject}',
复制代码 增加发帖判断:source\include\post\post_newthread.php
在大概378行后面增加代码:
- /*检查是否是需要审核贴,发送到相应版主 start*/
- if($displayorder == -2){
- //获取该区的版主列表
- $query = DB::query("SELECT uid FROM ".DB::table('forum_moderator')." WHERE fid=".$_G[fid]);
- while($moderator=DB::fetch($query)) {
- notification_add($moderator['uid'], 'system', 'system_thread_validating', array('fid'=>$fid,'uid'=>$_G['uid'],'actor'=>$_G['username'],'area'=>$_G['forum']['name'],'subject'=>$subject), 1);
- sendmail($toemail, $subject, $message, $from = '');
- }
- }
- /*检查是否是需要审核贴,发送到相应版主 end*/
复制代码
自己把变量替换了吧,分别是接受者邮箱、主题、邮件内容、来源
比如sendmail('xxx@qq.com','飞启有帖子要审核','点击链接http://ddddddd.com/审核帖子');
|