请选择 进入手机版 | 继续访问电脑版

吾爱汇站网官方联系方式

工作时间: 周一到周五早上09:00-11:00, 下午03:00-05:00, 晚上20:30-22:30(周六、日休息)
QQ: 211985957  168528823  97147700  53150916 汇聚、帮助、交流   E-Mail: postmaster@5ihz.cn
用户交流QQ群
1群21532443 2群413446685 ←提醒:请勿重复加群,谢谢!(本站提供低价收费技术服务,详情联系在线客服)

[Discuz教程] 修改DZ回复可见仅在当天有效,次日需重新回复

[复制链接]
查看1648 | 回复0 | 2018-6-14 22:02:41 | 显示全部楼层 |阅读模式
打开文件
source\function\function_Discuzcode.php

找到
  1. $authorreplyexist = $_post['tid'] == $_G['tid'] ? C::t('forum_post')->fetch_pid_by_tid_authorid($_G['tid'], $_G['uid']) : FALSE;
复制代码

替换成



  1. $isture = DB::result_first("SELECT pid FROM  ".DB::table('forum_post')." WHERE tid=".$_G['tid']." AND authorid=".$_G['uid'] ." and from_unixtime(dateline,'%Y%m%d')='".dgmdate(TIMESTAMP,'Ymd')."' and invisible=0 LIMIT 1");
  2.               $authorreplyexist = $_post['tid'] == $_G['tid'] ? $isture : FALSE;
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则