意外惊喜终于找到-游客可以看见附件,点下载时提示需要注册
在论坛搜索了N次,也关注了N次了,但始终没有得到个好的结果。今天无意中溜达发现此帖,是在回复中的。我看到回复的作者是齐天大圣。至于是不是原创也不清楚了,先拿出来和大家分享吧。
超简单,经测试确实可用,演示:http://www.ivgo.net
经测试,5.5的方法6.0正式版也适用
viewthread.php中将- $allowgetattach = !empty($forum['allowgetattach']) || ($allowgetattach && !$forum['getattachperm']) || forumperm($forum['getattachperm']);
复制代码 改为- $allowgetattach = !$discuz_uid || !empty($forum['allowgetattach']) || ($allowgetattach && !$forum['getattachperm']) || forumperm($forum['getattachperm']);
复制代码 BUG:只能在附件里显示图片,如果是引用附件图片还是会没办法显示。我尽量修改完美解决方案!
[ 本帖最后由 ietong 于 2007-9-5 22:53 编辑 ] |