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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 怎样让Discuz! 清新版支持系统默认的四格

[复制链接]
丫hoo 发表于 2014-7-28 21:37:46 | 显示全部楼层 |阅读模式
  1. <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  2.                 <!-- index four grid -->
  3.                 <div class="fl mtn">
  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.                                                                 <div class="module cl slidebox_grid" style="width:218px">
  12.                                                                         <script type="text/javascript">
  13.                                                                         var slideSpeed = 5000;
  14.                                                                         var slideImgsize = [218,200];
  15.                                                                         var slideBorderColor = '{$_G['style']['specialborder']}';
  16.                                                                         var slideBgColor = '{$_G['style']['commonbg']}';
  17.                                                                         var slideImgs = new Array();
  18.                                                                         var slideImgLinks = new Array();
  19.                                                                         var slideImgTexts = new Array();
  20.                                                                         var slideSwitchColor = '{$_G['style']['tabletext']}';
  21.                                                                         var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  22.                                                                         var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  23.                                                                         {eval $k = 1;}
  24.                                                                         <!--{loop $grids['slide'] $stid $svalue}-->
  25.                                                                                 slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  26.                                                                                 slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  27.                                                                                 slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  28.                                                                                 {eval $k++;}
  29.                                                                         <!--{/loop}-->
  30.                                                                         </script>
  31.                                                                         <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  32.                                                                 </div>
  33.                                                         </div>
  34.                                                 </td>
  35.                                         <!--{/if}-->
  36.                                         <td valign="top" class="category_l2">
  37.                                                 <div class="subjectbox">
  38.                                                         <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  39.                                                 <ul class="category_newlist">
  40.                                                         <!--{loop $grids['newthread'] $thread}-->
  41.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  42.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  43.                                                                 <!--{/if}-->
  44.                                                                 <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]"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  45.                                                                 <!--{/loop}-->
  46.                                                  </ul>
  47.                                          </div>
  48.                                         </td>
  49.                                         <td valign="top" class="category_l3">
  50.                                                 <div class="replaybox">
  51.                                                         <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  52.                                                 <ul class="category_newlist">
  53.                                                         <!--{loop $grids['newreply'] $thread}-->
  54.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  55.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  56.                                                                 <!--{/if}-->
  57.                                                                 <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]"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  58.                                                                 <!--{/loop}-->
  59.                                                  </ul>
  60.                                          </div>
  61.                                         </td>
  62.                                         <td valign="top" class="category_l3">
  63.                                                 <div class="hottiebox">
  64.                                                         <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  65.                                                 <ul class="category_newlist">
  66.                                                         <!--{loop $grids['hot'] $thread}-->
  67.                                                         <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  68.                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  69.                                                                 <!--{/if}-->
  70.                                                                 <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]"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  71.                                                                 <!--{/loop}-->
  72.                                                  </ul>
  73.                                          </div>
  74.                                         </td>
  75.                                         <!--{if $_G['setting']['grid']['gridtype']}-->
  76.                                                 <td valign="top" class="category_l4">
  77.                                                         <div class="goodtiebox">
  78.                                                                 <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  79.                                                                 <ul class="category_newlist">
  80.                                                                         <!--{loop $grids['digest'] $thread}-->
  81.                                                                                 <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  82.                                                                                         <!--{eval $thread[tid]=$thread[closed];}-->
  83.                                                                                 <!--{/if}-->
  84.                                                                                 <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]"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  85.                                                                         <!--{/loop}-->
  86.                                                                  </ul>
  87.                                                          </div>
  88.                                                 </td>
  89.                                         <!--{/if}-->
  90.                                         </table>
  91.                                 </div>
  92.                         </div>
  93.                 </div>
  94.                 <!-- index four grid end -->
  95.                 <!--{/if}-->      
复制代码
把该代码放到模板/qing/forum/discuz.htm中  <!--{hook/index_top}--> 的前边
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-6-18 10:27 , Processed in 0.879611 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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