[string global_cpnav_top]
设为首页收藏本站[string global_cpnav_extra1]
[string global_cpnav_extra2]切换到宽版
[ad headerbanner/wp a_h]

 找回密码
 立即注册
[string global_login_extra]

QQ登录

只需一步,快速开始

[ad subnavbanner/a_mu]
搜索
[string global_header]
[string viewthread_top] [ad text/wp a_t]
返回列表 发新帖[string viewthread_postbutton_top]
[string viewthread_beginline]
查看: 5239|回复: 0

[Discuz!论坛] 本帖由 XXX 于 XXX 编辑 的修改方法(让管理人员均不受限制或均受限制)

[复制链接] [string viewthread_title_extra]
[string viewthread_title_row]
[array viewthread_avatartop/0]
[array viewthread_avatar/0]
  • 打卡等级:本地老炮
[array viewthread_sidetop/0]

9337

威望

7452

金钱

1万

贡献

管理员

自由的灵魂

积分
107438
主题
5631
回帖
26662
注册时间
2003-4-10
最后登录
2026-10-2
[array viewthread_sidebottom/0]
发表于 2009-5-10 23:49:14 | 显示全部楼层 |阅读模式 [array viewthread_postheader/0]
[ad thread/a_pt/2/0]
[array viewthread_posttop/0]
[ad thread/a_pr/3/0]

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册 [string global_login_text]

×
本帖最后由 IsaacZ 于 2011-8-2 15:43 编辑
后台——全局——用户权限——编辑帖子附加编辑记录:
在 60 秒后编辑帖子添加“本帖由 xxx 于 xxxx-xx-xx 编辑”字样。管理员编辑不受此限制

想把管理员编辑不受此限制改成 版主 超级版主 管理员都不受此限制

找到了include/editpost.inc.php里的:
  1.   if($editedby && ($timestamp - $orig['dateline']) > 60 && $adminid != 1) {
  2.    include_once language('misc');
复制代码
$adminid != 1   如何表达为版主,超级版主,管理员!

解决方案:

找到以下代码:
  1. if($editedby && ($timestamp - $orig['dateline']) > 60 && $adminid != 1) {
  2.    include_once language('misc');
复制代码
改为:

  1. if($editedby && ($timestamp - $orig['dateline']) > 60 && !in_array($adminid,array(1,2,3))) {
  2.    include_once language('misc');
复制代码
来源:http://www.discuz.net/forum.php?mod=viewthread&tid=879959




IsaacZ注:要想让所有人都受此限制,就去掉“ && !in_array($adminid,array(1,2,3))”。即上面代码改为:
  1. if($editedby && ($timestamp - $orig['dateline']) > 60 ) {
  2. include_once language('misc');
复制代码

默认是在 1分钟 时间内编辑则不显示时间戳,要想增加这个数值,只需修改 > 60 为别的数值,比如3分钟以内就改成 > 180。

为的更好地记录帖子的更新情况,点拨论坛此设置已经更改为:所有人均受此限制。管理员也不例外。(见本帖上方)
[array viewthread_postbottom/0]
不懂就搜!点此搜点拨论坛。如果本坛没有,请尝试点此问AI,或跟帖提问。
发帖前注意看置顶帖。
不定期借助AI对点拨论坛陈年老帖进行挖坟回复,打扰勿怪!
[array viewthread_postsightmlafter/0][ad thread/a_pb/1/0]
帖中出现了你所不知道的生词怎么办?——先在点拨论坛搜索
回复 [array viewthread_postfooter/0]

使用道具 举报 [array viewthread_postaction/0]

[array viewthread_endline/0]
[string viewthread_middle]
[string viewthread_fastpost_side] [string viewthread_fastpost_content]
[string viewthread_fastpost_func_extra]高级模式 [string viewthread_fastpost_ctrl_extra]
您需要登录后才可以回帖 登录 | 立即注册 [string global_login_text]

本版积分规则 [string viewthread_fastpost_btn_extra]

[string viewthread_bottom]
[ad footerbanner/wp a_f/1][ad footerbanner/wp a_f/2][ad footerbanner/wp a_f/3][ad float/a_fl/1][ad float/a_fr/2][ad couplebanner/a_fl a_cb/1][ad couplebanner/a_fr a_cb/2][ad cornerbanner/a_cn][string global_footer]

QQ|手机版|小黑屋|点拨论坛 [string global_footerlink]|网站地图

GMT+8, 2026-10-2 13:14 , Processed in 0.031055 second(s), 4 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表