|
|
本帖最后由 民审-M 于 2018-10-27 17:37 编辑
DZAPP的插件没有判断图片是本地还是远程,只要论坛启用了远程附件功能,就一律把图片链接指向远程,导致在本地的图片无法显示:
解决办法,打开:source/plugin/dzapp_base/function/function_base.php
找到:
- return ($_G['setting']['ftp']['on'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']).$type.$url;
复制代码
修改为:
- if(!$_G['setting']['ftp']['on'] || file_exists(DISCUZ_ROOT.$_G['setting']['attachdir'].$type.$url)){
- return $_G['setting']['attachurl'].$type.$url;
- }else{
- return $_G['setting']['ftp']['attachurl'].$type.$url;
- }
复制代码
需要改各个DZAPP插件的DIY文件。
DZAPP插件推荐:
DZAPP基础插件 V2018.3.0 DZ建站学习研究分享(草根吧魔方解密DZAPP 2018全套学习研究)
https://www.cgzz8.cn/t-36040-1-1.html
(出处: 草根吧)
DZAPP插件管理中心 V2017.2.1 DZ建站学习研究分享(草根吧魔方解密DZAPP 2018全套首发)
https://www.cgzz8.cn/t-36041-1-1.html
(出处: 草根吧)
|
|