本站公收录50年前的影片
 找回密码
 立即注册
快捷导航
搜索
回复: 0

关闭电脑端显示四格后,让手机端显示多格的修改方法

[复制链接]
发表于 2025-5-10 23:43:46 | 显示全部楼层 |阅读模式
后台开启论坛首页四格,然后打开template\你的模板\forum\discuz.htm(或者是discuz.php)删掉下面代码
  1. <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  2.                 <!-- index four grid -->
  3.                 <div class="fl bm">
  4.                         <div class="bm bmw cl">
  5.                                 <div id="category_grid" class="bm_c" >
  6.                                         <table cellspacing="0" cellpadding="0"><tr>
  7.                                         <!--{if !$_G['setting']['grid']['gridtype']}-->
  8.                                                 <td valign="top" class="category_l1">
  9.                                                         <div class="newimgbox">
  10.                                                                 <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  11.                                                                 <!--{if $_G['setting']['forumallowside']}-->
  12.                                                                     <!--{eval $slide_width = 220;}-->
  13.                                                                 <!--{else}-->
  14.                                                                     <!--{eval $slide_width = 278;}-->
  15.                                                                 <!--{/if}-->
  16.                                                                 <div class="module cl slidebox_grid" style="width:{$slide_width}px">
  17.                                                                         <script type="text/javascript">
  18.                                                                         var slideSpeed = 5000;
  19.                                                                         var slideImgsize = [{$slide_width},200];
  20.                                                                         var slideBorderColor = '{$_G['style']['specialborder']}';
  21.                                                                         var slideBgColor = '{$_G['style']['commonbg']}';
  22.                                                                         var slideImgs = new Array();
  23.                                                                         var slideImgLinks = new Array();
  24.                                                                         var slideImgTexts = new Array();
  25.                                                                         var slideSwitchColor = '{$_G['style']['tabletext']}';
  26.                                                                         var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  27.                                                                         var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  28.                                                                         {eval $k = 1;}
  29.                                                                         <!--{loop $grids['slide'] $stid $svalue}-->
  30.                                                                                 slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  31.                                                                                 slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  32.                                                                                 slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  33.                                                                                 {eval $k++;}
  34.                                                                         <!--{/loop}-->
  35.                                                                         </script>
  36.                                                                         <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  37.                                                                 </div>
  38.                                                         </div>
  39.                                                 </td>
  40.                                         <!--{/if}-->
  41.                                         <td valign="top" class="category_l2">
  42.                                                 <div class="subjectbox">
  43.                                                         <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  44.                                                 <ul class="category_newlist">
  45.                                                         <!--{loop $grids['newthread'] $thread}-->
  46.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  47.                                                                         <!--{eval $thread['tid']=$thread['closed'];}-->
  48.                                                                 <!--{/if}-->
  49.                                                                 <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>
  50.                                                                 <!--{/loop}-->
  51.                                                  </ul>
  52.                                          </div>
  53.                                         </td>
  54.                                         <td valign="top" class="category_l3">
  55.                                                 <div class="replaybox">
  56.                                                         <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  57.                                                 <ul class="category_newlist">
  58.                                                         <!--{loop $grids['newreply'] $thread}-->
  59.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  60.                                                                         <!--{eval $thread['tid']=$thread['closed'];}-->
  61.                                                                 <!--{/if}-->
  62.                                                                 <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>
  63.                                                                 <!--{/loop}-->
  64.                                                  </ul>
  65.                                          </div>
  66.                                         </td>
  67.                                         <td valign="top" class="category_l3">
  68.                                                 <div class="hottiebox">
  69.                                                         <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  70.                                                 <ul class="category_newlist">
  71.                                                         <!--{loop $grids['hot'] $thread}-->
  72.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  73.                                                                         <!--{eval $thread['tid']=$thread['closed'];}-->
  74.                                                                 <!--{/if}-->
  75.                                                                 <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>
  76.                                                                 <!--{/loop}-->
  77.                                                  </ul>
  78.                                          </div>
  79.                                         </td>
  80.                                         <!--{if $_G['setting']['grid']['gridtype']}-->
  81.                                                 <td valign="top" class="category_l4">
  82.                                                         <div class="goodtiebox">
  83.                                                                 <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  84.                                                                 <ul class="category_newlist">
  85.                                                                         <!--{loop $grids['digest'] $thread}-->
  86.                                                                                 <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  87.                                                                                         <!--{eval $thread['tid']=$thread['closed'];}-->
  88.                                                                                 <!--{/if}-->
  89.                                                                                 <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>
  90.                                                                         <!--{/loop}-->
  91.                                                                  </ul>
  92.                                                          </div>
  93.                                                 </td>
  94.                                         <!--{/if}-->
  95.                                         </table>
  96.                                 </div>
  97.                         </div>
  98.                 </div>
  99.                 <!-- index four grid end -->
  100.                 <!--{/if}-->
复制代码




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

本版积分规则

手机版|小黑屋|联系管理|老影迷

GMT+8, 2025-9-21 05:25 , Processed in 0.092394 second(s), 24 queries .

Powered by Discuz! X3.5

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