返回列表 发帖
查看: 276|回复: 11

[已解决] x3.5 默认模板手机首页四格,帖子右侧如何调试显示版块名称或者主题分类名称

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
发表于 2024-3-18 21:46:07 | 显示全部楼层 |阅读模式


x3.5 默认模板手机首页四格,帖子右侧如何调试显示版块名称或者主题分类名称

右侧默认显示用户名+回复数+人气数,占用5-8个字,宽度比例百分10-30都吃了
我替换$thread['author']这里纳入点只显示数字
我的主题分类名称就两字比例刚刚好,有没有哥哥姐姐知道如调,好人一生平安
  1.   </div>
  2.                 <div id="tabs-box" class="swiper-container listbox cl">
  3.                         <div class="swiper-wrapper">
  4.                                 <div class="swiper-slide">
  5.                                         <ul>
  6.                                         <!--{loop $grids['newthread'] $thread}-->
  7.                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  8.                                                 <!--{eval $thread['tid']=$thread['closed'];}-->
  9.                                         <!--{/if}-->
  10.                                         <!--{eval $i++;}-->
  11.                                         <li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['author']</span><span class="mnum">$i</span>{$thread['oldsubject']}</a></li>
  12.                                         <!--{/loop}-->
  13.                                         </ul>
  14.                                 </div>
  15.                                 <div class="swiper-slide">
  16.                                         <ul>
  17.                                         <!--{loop $grids['newreply'] $thread}-->
  18.                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  19.                                                 <!--{eval $thread['tid']=$thread['closed'];}-->
  20.                                         <!--{/if}-->                               
  21.                                         <li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['replies'] {lang reply}</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
  22.                                         <!--{/loop}-->
  23.                                         </ul>
  24.                                 </div>
  25.                                 <div class="swiper-slide">
  26.                                         <ul>
  27.                                         <!--{loop $grids['hot'] $thread}-->
  28.                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  29.                                                 <!--{eval $thread['tid']=$thread['closed'];}-->
  30.                                         <!--{/if}-->
  31.                                         <!--{eval $i++;}-->
  32.                                         <li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['views'] {lang mobrenqi}</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
  33.                                         <!--{/loop}-->
  34.                                         </ul>
  35.                                 </div>
  36.                                 <div class="swiper-slide">
  37.                                         <ul>
  38.                                         <!--{loop $grids['digest'] $thread}-->
  39.                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  40.                                                 <!--{eval $thread['tid']=$thread['closed'];}-->
  41.                                         <!--{/if}-->
  42.                                         <li><a href="forum.php?mod=viewthread&tid=$thread['tid']"{if $thread['highlight']} $thread['highlight']{/if}><span class="mybk">$thread['views']{lang mobrenqi}</span><span class="mico"></span>{$thread['oldsubject']}</a></li>
  43.                                         <!--{/loop}-->
  44.                                         </ul>
  45.                                 </div>
  46.                         </div>
  47.                 </div>
复制代码


1 贡献

最佳答案

已私聊 有偿处理, 其他有需要的 朋友 也  可以加我 qq
<table cellspacing="0" class="t_table" style="width:98%"><tbody><tr><td width="10%"><img id="aimg_SExcd" class="zoom" width="120" height="150" src="https://www.dismall.com/data/attachment/forum/202403
回复

使用道具 举报

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
 楼主| 发表于 2024-3-18 21:50:33 | 显示全部楼层
用户名用手机号或者qq号,一半宽度都吃了,真烦,有哥哥姐姐知道如何调吗
<table cellspacing="0" class="t_table" style="width:98%"><tbody><tr><td width="10%"><img id="aimg_SExcd" class="zoom" width="120" height="150" src="https://www.dismall.com/data/attachment/forum/202403
回复 支持 反对

使用道具 举报

18

主题

52

回帖

78

积分

渐入佳境

贡献
0 点
金币
0 个
发表于 2024-3-18 22:09:12 | 显示全部楼层
我折腾过,在这里改没用的,要改php文件,所以只能尝试买插件解决
要那个改php,或者购买那个插件,求告知一下 
发表于 2024-3-18 22:31
回复 支持 反对

使用道具 举报

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
 楼主| 发表于 2024-3-18 22:14:28 | 显示全部楼层
danhuangyou 发表于 2024-3-18 22:09
我折腾过,在这里改没用的,要改php文件,所以只能尝试买插件解决

那个插件
<table cellspacing="0" class="t_table" style="width:98%"><tbody><tr><td width="10%"><img id="aimg_SExcd" class="zoom" width="120" height="150" src="https://www.dismall.com/data/attachment/forum/202403
回复 支持 反对

使用道具 举报

9

主题

320

回帖

440

积分

炉火纯青

贡献
16 点
金币
24 个
发表于 2024-3-19 01:58:55 | 显示全部楼层
特意看了,手机touch版的论坛四格并没有显示用户名和人气值呀???
回复 支持 反对

使用道具 举报

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
 楼主| 发表于 2024-3-19 11:40:11 | 显示全部楼层
babyfacer 发表于 2024-3-19 01:58
特意看了,手机touch版的论坛四格并没有显示用户名和人气值呀???

有的,default/touch/forum/discuz.htm
$thread['author']用户名

$thread['replies'] {lang reply}回复

$thread['views'] {lang mobrenqi}人气

你截个图,看看你网站咋显示的,我网站没有显示这个。或者就是你直接发网址呀。手机版很窄,直接只显示标题最好 
发表于 2024-3-20 02:25
<table cellspacing="0" class="t_table" style="width:98%"><tbody><tr><td width="10%"><img id="aimg_SExcd" class="zoom" width="120" height="150" src="https://www.dismall.com/data/attachment/forum/202403
回复 支持 反对

使用道具 举报

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
 楼主| 发表于 2024-3-19 17:30:53 | 显示全部楼层
顶顶顶顶
回复

使用道具 举报

8

主题

1494

回帖

2586

积分

应用开发者

贡献
176 点
金币
123 个
QQ
发表于 2024-3-20 07:47:19 | 显示全部楼层
已私聊 有偿处理, 其他有需要的 朋友 也  可以加我 qq
专业解决各类服务器问题 和 discuz疑难杂症!
QQ 860855665 西部数码核心代理www.wensuhulian.com 飘仙建站论坛bbs.piaoxian.net
discuz互助QQ群 73131419
回复 支持 反对

使用道具 举报

43

主题

176

回帖

276

积分

炉火纯青

贡献
5 点
金币
10 个
 楼主| 发表于 2024-3-20 11:27:42 | 显示全部楼层
babyfacer 发表于 2024-3-19 01:58
特意看了,手机touch版的论坛四格并没有显示用户名和人气值呀???

花钱处理好了
<table cellspacing="0" class="t_table" style="width:98%"><tbody><tr><td width="10%"><img id="aimg_SExcd" class="zoom" width="120" height="150" src="https://www.dismall.com/data/attachment/forum/202403
回复 支持 反对

使用道具 举报

50

主题

184

回帖

247

积分

炉火纯青

贡献
1 点
金币
2 个
发表于 2024-3-22 08:48:03 | 显示全部楼层
看看           
回复 支持 反对

使用道具 举报

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

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2024-4-29 06:48 , Processed in 0.043856 second(s), 8 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2024 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表