打开forumdisplay模板,找到:
[CSS] 纯文本查看 复制代码 <input onclick="tmodclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread[tid]"/>
修改为:
[CSS] 纯文本查看 复制代码 <input onclick="tmodclick(this)" class="checkbox admin$thread[authorid]" type="checkbox" name="moderate[]" value="$thread[tid]"/>
然后在页头通栏广告加入以下的代码:
[CSS] 纯文本查看 复制代码 <script>
var protected=[1,2,3] //被保护的UID名单
str2="<style>"
for (i=0;i<protected.length;i++){
str2+=".admin"+protected[i]+","
}
str2+=".admin0{display:none;}</style>"
check=0
for (i=0;i<protected.length;i++){
if (discuz_uid==protected[i]){check=1}
}
if (check==0){document.write(str2)}
</script>
|