蒲洮洮 发表于 2024-9-3 02:50:16

3.5手机论坛首页,可以开N格么

类似这样子,在公告下面添加

1 贡献最佳答案

      后台开启论坛首页四格,然后打开template\你的模板\forum\discuz.htm(或者是discuz.php)删掉下面代码
                                                                                                                                                                                                                                                                                                                                                {lang latest_images}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      var slideSpeed = 5000;                                                                        var slideImgsize = [{$slide_width},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;}                                                                                                                                                      slideImgs[] = '$svalue';                                                                              slideImgLinks[] = '{$svalue}';                                                                              slideImgTexts[] = '$svalue';                                                                              {eval $k++;}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        {lang collection_lastthread}                                                                                                                                                                                                                                                                                                                                                                        $thread                                                                                                                                                                                                                                                                                                                                                {lang show_newthreads}                                                                                                                                                                                                                                                                                                                                                                        $thread                                                                                                                                                                                                                                                                                                                                                {lang hot_thread}                                                                                                                                                                                                                                                                                                                                                                        $thread                                                                                                                                                                                                                                                                                                                                                                                                                  {lang post_digest_thread}                                                                                                                                                                                                                                                                                                                                                                                                                                                                              $thread                                                                                                                                                                                                                                                                                                                                                                                                                                          

这样电脑端就不显示自带的论坛首页四格,只让触屏版显示      

onetheme发表于2023-11-19 10:47:11
[*]详细答案 >

阎清雅 发表于 2024-9-3 02:50:53

N格里面内容最好可以自定义那种,只要手机版的

郁和静 发表于 2024-9-3 02:51:23

默认自带的手机版是基于电脑版开启的前提下的,是自带了的。如果不喜欢那种效果,那就需要自己选购第三方N格插件了

郁和静 发表于 2024-9-3 02:51:35



后台开启论坛首页四格,然后打开template\你的模板\forum\discuz.htm(或者是discuz.php)删掉下面代码
<!--{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>                                                                <!--{if $_G['setting']['forumallowside']}-->                                                                  <!--{eval $slide_width = 220;}-->                                                                <!--{else}-->                                                                  <!--{eval $slide_width = 278;}-->                                                                <!--{/if}-->                                                                <div class="module cl slidebox_grid" style="width:{$slide_width}px">                                                                        <script type="text/javascript">                                                                        var slideSpeed = 5000;                                                                        var slideImgsize = [{$slide_width},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';                                                                              slideImgLinks[<!--{echo $k}-->] = '{$svalue}';                                                                              slideImgTexts[<!--{echo $k}-->] = '$svalue';                                                                              {eval $k++;}                                                                        <!--{/loop}-->                                                                        </script>                                                                        <script language="javascript" type="text/javascript" src="{$_G}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&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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&goto=lastpost#lastpost"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</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&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread</strong><br/>{lang author}: $thread ($thread)<br/>{lang show}/{lang reply}: $thread/$thread" onmouseover="showTip(this)"{else} title="$thread"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread</a></li>                                                                        <!--{/loop}-->                                                               </ul>                                                         </div>                                                </td>                                        <!--{/if}-->                                        </table>                              </div>                        </div>                </div>                <!-- index four grid end -->                <!--{/if}-->

这样电脑端就不显示自带的论坛首页四格,只让触屏版显示

宿和怡 发表于 2024-9-3 02:51:54

我只是看到拿金币的

搭仑扯 发表于 2024-9-3 02:52:05

差点走宝了,原来还有金币拿

黎世敏 发表于 2024-9-3 02:52:12

拿完走人

黎世敏 发表于 2024-9-3 02:52:28

我只是看到拿金币的
页: [1]
查看完整版本: 3.5手机论坛首页,可以开N格么