修改文件template\default\forum\post_editor_attribute.htm
修改代码
<label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"{if $thread['hiddenreplies']} checked="checked"{/if} value="1">{lang hiddenreplies}</label>
1
修改为
<label for="hiddenreplies"><input type="checkbox" name="hiddenreplies" id="hiddenreplies" class="pc"{if $thread['hiddenreplies']} {/if} value="1" checked="checked" {if !$_G['adminid'] == '1' }disabled="disabled"{/if}>{lang hiddenreplies}</label>
解释:checked=”checked” 预先选定复选框或单选按钮。说白了 默认选项
解释:disabled=”disabled” 用户不可修改选项
解释: {if !$_G[‘adminid’] == ‘1’ }disabled=”disabled”{/if} 判断是否是管理组;这里用了取反,如果是管理组就可以修改,不执行此代码;否则执行此代码。