Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 如何修改手机版贴内图片大小

[复制链接]
清风遗落 发表于 2014-9-23 23:00:49 | 显示全部楼层 |阅读模式
发现手机版里面的图片都很小 怎么才能设置大小呢
花瓣微视频 发表于 2014-9-23 23:33:54 | 显示全部楼层
我也是想知道啊,但是好像现在都关心这个啦,官方现在主要是弄微社区啦,都不管手机版的了,现在互联网巨头都是想让用户在自己的内部循环,封闭起来
回复

使用道具 举报

allthebest 发表于 2014-9-24 01:41:46 | 显示全部楼层
\template\default\mobile\forum\discuzcode.htm

找到discuzcode.htm文件,搜索“200”会有两处代码如下


  1. function imagelist($attach) { global $_G;
  2. $attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));  
  3. $mobilethumburl = $attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid']) ? getforumimg($attach['aid'], 0, 200, 200, 'fixnone') : '' ;
  4. $aidencode = packaids($attach); $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : ''; }
复制代码


200 参数改大了之后你再在手机上看效果



修改前请先备份
回复

使用道具 举报

sonhill 发表于 2014-9-24 02:59:18 | 显示全部楼层
allthebest 发表于 2014-9-24 01:41
\template\default\mobile\forum\discuzcode.htm

找到discuzcode.htm文件,搜索“200”会有两处代码如下 ...

赞一个,allthebest大好人
回复

使用道具 举报

xyaung 发表于 2014-9-24 03:31:04 来自手机 | 显示全部楼层
多少合适啊
回复

使用道具 举报

allthebest 发表于 2014-9-24 03:56:57 | 显示全部楼层

自己慢慢调试到适合为止
回复

使用道具 举报

 楼主| 清风遗落 发表于 2014-9-24 12:18:03 | 显示全部楼层
allthebest 发表于 2014-9-24 01:41
\template\default\mobile\forum\discuzcode.htm

找到discuzcode.htm文件,搜索“200”会有两处代码如下 ...

如果宽度是400  高度根据宽度缩放 这个代码应该怎么弄啊
回复

使用道具 举报

allthebest 发表于 2014-9-24 16:33:01 | 显示全部楼层
清风遗落 发表于 2014-9-24 12:18
如果宽度是400  高度根据宽度缩放 这个代码应该怎么弄啊

缩略图 只能一同设置改大或小

不能只设宽度 高度根据宽度缩放
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 09:32 , Processed in 0.417842 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表