1.修改viewthread.php文件,
查找:
if($allowgetattach && !$threadpay) {
修改为:
if(!$threadpay) {
2.修改模板文件 viewthread.htm
查找:
<!–{if $post['attachment']}–>
<div class=”notice” style=”width: 500px”>{lang attachment}: <em>{lang attach_nopermission}</em></div>
<!–{elseif $hideattach[$post[pid]] && $post['attachments']}–>
修改为:
<!–{if $hideattach[$post[pid]] && $post['attachments']}–>
原创文章,转载请注明: 转载自感叹忽然的部落格
本文链接地址: Discuz6.1实现“游客可以查看图片但不能下载附件