限制实习版主\版主和超版加精华的级别和给自己加精华
打开 include/moderation.inc.php 查找[code]$threadlist[$thread['tid']] = $thread;[/code]
[i]复制代码[/i]
之下加入
限制斑竹及超级斑竹给自己加精华, 管理员则不受限制.
限制版主只能加精华I
限制超级版主只能加精华I和精华II
管理员则不受限制 [code]
if($level > 0 && $adminid != 1) {
if($thread['authorid'] == $discuz_uid && $operation==digest){
showmessage("抱歉!您不能将自己的主题加入精华,请返回。");
}
}
if($level > 1 && $adminid == 4) {
if($operation==digest){
showmessage("抱歉!,您不能将主题加入『 精华 I 』以上的精华级别,请返
回。");
}
}
if($level > 1 && $adminid == 3) {
if($operation==digest){
showmessage("抱歉!,您不能将主题加入『 精华 I 』以上的精华级别,请返
回。");
}
}
if($level > 2 && $adminid == 2) {
if($operation==digest){
showmessage("抱歉!您不能将主题加入『 精华 II 』以上的精华级别,请返
回。");
}
}
[/code] 要限制吗??
页:
[1]
