Hide

14032357395521.jpg!photo.middle2s.jpg

一:升级数据库:

ALTER TABLE `pre_common_usergroup_field` ADD `ishidefree` TINYINT( 1 ) DEFAULT '0' NOT NULL
二:修改source/admincp/admincp_usergroups.php

查找

showsetting('usergroups_edit_post_new', 'allowpostnew', $group['allowpost'], 'radio');
前面加入:
showsetting('usergroups_hidefree_post', 'ishidefreenew', $group['ishidefree'], 'radio');
再查找:
'allowpost' => $_GET['allowpostnew'],
前面加入 :
'ishidefree' => $_GET['ishidefreenew'],
三:修改source/function/function_discuzcode.php

查找(大概在38行):

if($_G['member']['credits'] >= $creditsrequire || $_G['forum']['ismoderator']
后面插入 :
|| $_G['group']['ishidefree']
整体效果为:
if($_G['member']['credits'] >= $creditsrequire || $_G['forum']['ismoderator'] || $_G['group']['ishidefree']|| $_G['uid'] && $authorid == $_G['uid']) {
再找第2个 :
if($authorreplyexist
注意:是第2个(一共有两个,这里要改第2个) 后面插入 :
|| $_G['group']['ishidefree']
整体效果:
if($authorreplyexist||$_G['group']['ishidefree']){
四:修改source/language/lang_admincp.php

查找:

'usergroups_edit_post_new' => '允许发新话题',
在上面添加:
'usergroups_hidefree_post' => '拥有隐藏贴免回覆权限:', 'usergroups_hidefree_post_comment' => '设置是否拥有隐藏贴免回覆权限',
发表新评论