返回列表 发帖
查看: 1773|回复: 4

[求助] 如何让电脑版不显示首页四格,手机版显示首页四格

38

主题

146

回帖

228

积分

炉火纯青

贡献
1 点
金币
14 个
发表于 2023-5-20 17:25:29 | 查看全部 |阅读模式
如何让电脑版不显示首页四格,手机版显示首页四格?

如何把电脑版的首页四格给删掉,在哪个文件哪段代码?
我知道答案 回答被采纳将会获得1 贡献 + 1 金币 已有4人回答
回复

使用道具 举报

38

主题

146

回帖

228

积分

炉火纯青

贡献
1 点
金币
14 个
 楼主| 发表于 2023-5-20 17:39:28 | 查看全部
已解决,找到了
回复

使用道具 举报

ink

25

主题

165

回帖

218

积分

炉火纯青

贡献
2 点
金币
1 个
发表于 2023-5-20 22:47:41 | 查看全部
celover 发表于 2023-5-20 17:39
已解决,找到了

如何解决的,能否告知啊,感谢感谢!!!
回复

使用道具 举报

38

主题

146

回帖

228

积分

炉火纯青

贡献
1 点
金币
14 个
 楼主| 发表于 2023-5-22 08:17:35 | 查看全部
ink 发表于 2023-5-20 22:47
如何解决的,能否告知啊,感谢感谢!!!

\template\xxx\forum\discuz.html
删除这个文件里面的

<div class="mn">
                <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
                <!-- index four grid -->
                <div class="fl bm">
                        <div class="bm bmw cl">
                                <div id="category_grid" class="bm_c" >
                                        <table cellspacing="0" cellpadding="0"><tr>
                                        <!--{if !$_G['setting']['grid']['gridtype']}-->
                                                <td valign="top" class="category_l1">
                                                        <div class="newimgbox">
                                                                <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
                                                                <div class="module cl slidebox_grid" style="width:218px">
                                                                        <script type="text/javascript">
                                                                        var slideSpeed = 5000;
                                                                        var slideImgsize = [218,200];
                                                                        var slideBorderColor = '{$_G['style']['specialborder']}';
                                                                        var slideBgColor = '{$_G['style']['commonbg']}';
                                                                        var slideImgs = new Array();
                                                                        var slideImgLinks = new Array();
                                                                        var slideImgTexts = new Array();
                                                                        var slideSwitchColor = '{$_G['style']['tabletext']}';
                                                                        var slideSwitchbgColor = '{$_G['style']['commonbg']}';
                                                                        var slideSwitchHiColor = '{$_G['style']['specialborder']}';
                                                                        {eval $k = 1;}
                                                                        <!--{loop $grids['slide'] $stid $svalue}-->
                                                                                slideImgs[<!--{echo $k}-->] = '$svalue[image]';
                                                                                slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
                                                                                slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
                                                                                {eval $k++;}
                                                                        <!--{/loop}-->
                                                                        </script>
                                                                        <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
                                                                </div>
                                                        </div>
                                                </td>
                                        <!--{/if}-->
                                        <td valign="top" class="category_l2">
                                                <div class="subjectbox">
                                                        <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
                                                        <ul class="category_newlist">
                                                                <!--{loop $grids['newthread'] $thread}-->
                                                                <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
                                                                        <!--{eval $thread[tid]=$thread[closed];}-->
                                                                <!--{/if}-->
                                                                <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
                                                                <!--{/loop}-->
                                                         </ul>
                                                 </div>
                                        </td>
                                        <td valign="top" class="category_l3">
                                                <div class="replaybox">
                                                        <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
                                                        <ul class="category_newlist">
                                                                <!--{loop $grids['newreply'] $thread}-->
                                                                <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
                                                                        <!--{eval $thread[tid]=$thread[closed];}-->
                                                                <!--{/if}-->
                                                                <li><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
                                                                <!--{/loop}-->
                                                         </ul>
                                                 </div>
                                        </td>
                                        <td valign="top" class="category_l3">
                                                <div class="hottiebox">
                                                        <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
                                                        <ul class="category_newlist">
                                                                <!--{loop $grids['hot'] $thread}-->
                                                                <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
                                                                        <!--{eval $thread[tid]=$thread[closed];}-->
                                                                <!--{/if}-->
                                                                <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
                                                                <!--{/loop}-->
                                                         </ul>
                                                 </div>
                                        </td>
                                        <!--{if $_G['setting']['grid']['gridtype']}-->
                                                <td valign="top" class="category_l4">
                                                        <div class="goodtiebox">
                                                                <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
                                                                <ul class="category_newlist">
                                                                        <!--{loop $grids['digest'] $thread}-->
                                                                                <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
                                                                                        <!--{eval $thread[tid]=$thread[closed];}-->
                                                                                <!--{/if}-->
                                                                                <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
                                                                        <!--{/loop}-->
                                                                 </ul>
                                                        </div>
                                                </td>
                                        <!--{/if}-->
                                        </table>
                                </div>
                        </div>
                </div>
                <!-- index four grid end -->
                <!--{/if}-->
回复

使用道具 举报

ink

25

主题

165

回帖

218

积分

炉火纯青

贡献
2 点
金币
1 个
发表于 2023-5-22 17:15:11 | 查看全部
celover 发表于 2023-5-22 08:17
\template\xxx\forum\discuz.html
删除这个文件里面的

好的,谢谢啊,晚点就试试,再次感谢
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-12-20 13:46 , Processed in 0.055996 second(s), 11 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

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