Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

X1.5 指定版块发帖时 自动默认最高阅读权限

[复制链接]
StayGallant 发表于 2010-11-20 20:26:17 | 显示全部楼层 |阅读模式
本帖最后由 StayGallant 于 2010-12-1 16:15 编辑

有时候站里一些特殊版块 需要发帖的时候 内容只有楼主和管理员可见
修改文件:/template/default/forum/post.htm
记事本打开这个文件 找到

  1. <!--{if $_G['group']['allowsetreadperm']}-->
  2. <p class="mbn">{lang readperm}:</p>
  3. <p class="mbn">
  4. <em class="ftid">
  5. <select name="readperm" id="readperm" class="ps" style="width:90px">
  6. <option value="">{lang unlimited}</option>
  7. <!--{loop $_G['cache']['groupreadaccess'] $val}-->
  8. <option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
  9. <!--{/loop}-->
  10. <option value="255">{lang highest_right}</option>
  11. </select>
  12. </em>
  13. <img src="{IMGDIR}/faq.gif" alt="Tip" class="mtn vm" style="margin: 0;" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" /></a>
  14. </p>
  15. <!--{/if}-->
复制代码
替换为

  1. <!--{if $_G['fid'] == 39 }-->
  2. <p class="mbn">{lang readperm}:</p>
  3. <p class="mbn">
  4. <em class="ftid">
  5. <select name="readperm" id="readperm" class="ps" style="width:90px">
  6. <option value="255">{lang highest_right}</option>
  7. </select>
  8. </em>
  9. <img src="{IMGDIR}/faq.gif" alt="Tip" class="mtn vm" style="margin: 0;" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" /></a>
  10. </p>
  11. <!--{elseif $_G['group']['allowsetreadperm']}-->
  12. <p class="mbn">{lang readperm}:</p>
  13. <p class="mbn">
  14. <em class="ftid">
  15. <select name="readperm" id="readperm" class="ps" style="width:90px">
  16. <option value="">{lang unlimited}</option>
  17. <!--{loop $_G['cache']['groupreadaccess'] $val}-->
  18. <option value="$val[readaccess]" title="{lang readperm}: $val[readaccess]"{if $thread['readperm'] == $val[readaccess]} selected="selected"{/if}>$val[grouptitle]</option>
  19. <!--{/loop}-->
  20. <option value="255">{lang highest_right}</option>
  21. </select>
  22. </em>
  23. <img src="{IMGDIR}/faq.gif" alt="Tip" class="mtn vm" style="margin: 0;" onmouseover="showTip(this)" tip="{lang post_select_usergroup_readacces}" /></a>
  24. </p>
  25. <!--{/if}-->
复制代码

保存覆盖回去 更新缓存即可。

PS:替换后的第一行代码中39需要更换为目标版块的fid

怎么知道fid号?当前版块的地址中
比如:https://discuz.dismall.com/forumdisplay.php?fid=2
组后fid=后的那个数字 就是当前版块fid号


演示地址 931社区
 楼主| StayGallant 发表于 2010-12-1 16:16:31 | 显示全部楼层
添加演示地址
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-24 07:15 , Processed in 0.033925 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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