[ ] 遊客可以看見附件,點下載時提示需要註冊 [1P]

遊客可以看見附件,點下載時提示需要註冊
http://www.ejew.org/bbs/viewthread.php?tid=53721

viewthread.php中將
$allowgetattach = !empty($forum['allowgetattach']) || ($allowgetattach && !$forum['getattachperm']) || forumperm($forum['getattachperm']);
改為
$allowgetattach = !$discuz_uid || !empty($forum['allowgetattach']) || ($allowgetattach && !$forum['getattachperm']) || forumperm($forum['getattachperm']);
即可.

更簡單的方式
直接改成
$allowgetattach = 1;
標籤: viewthread, attachment, admin, d, v, t
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-1753-1.html#pid2414
套一句黃小琥說過的話:「你可以點歌,但是我可以選歌」

查看附件時,提示遊客註冊和登陸論壇 FOR Discuz! 6.0.0

查看附件時,提示遊客註冊和登陸論壇 FOR Discuz! 6.0.0
http://www.discuz.net/thread-740574-1-4.html

演示地址:http://bbs.szline.cn/thread-180955-1-1.html
找到並打開:\templates\default\templates.lang.php
'attach_nopermission' => '您所在的用戶組無法下載或查看附件',
替換成:
'attach_nopermission' => '您所在的用戶組無法下載或查看附件,請先<a href="register.php"><font color="red"><b>註冊< /b></font></a>,然後再<a href="logging.php?action=login"><font color="red"><b>登陸</b></font></a>論壇查看!',
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-1753-1.html#pid4840

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP