discuz 手机版 远程图片 原图显示

[复制链接]
admin 发表于 2019-12-24 10:47:47 | 显示全部楼层 |阅读模式 0
touch\forum\viewthread_album.htm
查找一处:
  1. <!--{eval $imgurl = getforumimg($imglist[aid][$key], 0,2000, 550, 'fixnone');}-->
复制代码

将这行注释或者删除

touch\forum\discuzcode.htm
查找第1处:
  1. $mobilethumburl = $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, $fix, $fix, $fixtype) : '' ;
复制代码
a.改成(单独远程图片调用原图):
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages']$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? ($attach['remote']?$attach[url].$attach[attachment]:getforumimg($attach['aid'], 0, $fix, $fix, $fixtype)) : '' ;
复制代码
b.改成(远程图片和本地都调用原图):
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages']$mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? ($attach[url].$attach[attachment]) : '' ;
复制代码



查找第2处:
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 2000, 2000, 'fixnone') : '' ;
复制代码
a.改成(单独远程图片调用原图):
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? ($attach['remote']?$attach[url].$attach[attachment]:getforumimg($attach['aid'], 0, 2000, 2000, 'fixnone')) : '' ;
复制代码
b.改成(远程图片和本地都调用原图):
  1. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? ($attach[url].$attach[attachment]) : '' ;
复制代码


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

本版积分规则