POLE FORUM2

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 1064|回復: 19

免裝插件之輕量化直排(utf8繁)DX3.2

[複製鏈接]

管理員

個性簽名:
倉庫工頭

積分信息:
威望:6087
金錢:9076810
貢獻:6198
儲蓄:2146643647

發表於 2015-7-27 08:56:14 | 顯示全部樓層 |閱讀模式
1.附件修正後上傳附件到根目錄(模版部份新模版才修改)
2.打開附件裡source/module/forum/forum_index.php按下面方式修正
本件附件顯示要改的地方


               
遊客,如果您要查看本帖隱藏內容請回復
           

修改template\default\forum\discuz.htm(附件已經修改過)
找:
  1. <!--{loop $catlist $key $cat}-->
  2.                         <!--{hook/index_catlist $cat[fid]}-->
  3.                         <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  4.                                 <div class="bm_h cl">
  5.                                         <span class="o">
  6.                                                 <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" />
  7.                                         </span>
  8.                                         <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  9.                                         <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  10.                                         <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
  11.                                 </div>
  12.                                 <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  13.                                         <table cellspacing="0" cellpadding="0" class="fl_tb">
  14.                                                 <tr>
  15.                                                 <!--{loop $cat[forums] $forumid}-->
  16.                                                 <!--{eval $forum=$forumlist[$forumid];}-->
  17.                                                 <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  18.                                                 <!--{if $cat['forumcolumns']}-->
  19.                                                         <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  20.                                                                 </tr>
  21.                                                                 <!--{if $forum['orderid'] < $cat['forumscount']}-->
  22.                                                                         <tr class="fl_row">
  23.                                                                 <!--{/if}-->
  24.                                                         <!--{/if}-->
  25.                                                         <td class="fl_g" width="$cat[forumcolwidth]">
  26.                                                                 <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  27.                                                                 <!--{if $forum[icon]}-->
  28.                                                                         $forum[icon]
  29.                                                                 <!--{else}-->
  30.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  31.                                                                 <!--{/if}-->
  32.                                                                 </div>
  33.                                                                 <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  34.                                                                         <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  35.                                                                         <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  36.                                                                         <dd>
  37.                                                                         <!--{if $forum['permission'] == 1}-->
  38.                                                                                 {lang private_forum}
  39.                                                                         <!--{else}-->
  40.                                                                                 <!--{if $forum['redirect']}-->
  41.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  42.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  43.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  44.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  45.                                                                                         <!--{else}-->
  46.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  47.                                                                                         <!--{/if}-->
  48.                                                                                 <!--{else}-->
  49.                                                                                         {lang never}
  50.                                                                                 <!--{/if}-->
  51.                                                                         <!--{/if}-->
  52.                                                                         </dd>
  53.                                                                         <!--{hook/index_forum_extra $forum[fid]}-->
  54.                                                                 </dl>
  55.                                                         </td>
  56.                                                 <!--{else}-->
  57.                                                         <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  58.                                                                 <!--{if $forum[icon]}-->
  59.                                                                         $forum[icon]
  60.                                                                 <!--{else}-->
  61.                                                                         <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  62.                                                                 <!--{/if}-->
  63.                                                         </td>
  64.                                                         <td>
  65.                                                                 <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  66.                                                                 <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  67.                                                                 <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  68.                                                                 <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  69.                                                                 <!--{hook/index_forum_extra $forum[fid]}-->
  70.                                                         </td>
  71.                                                         <td class="fl_i">
  72.                                                                 <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  73.                                                         </td>
  74.                                                         <td class="fl_by">
  75.                                                                 <div>
  76.                                                                 <!--{if $forum['permission'] == 1}-->
  77.                                                                         {lang private_forum}
  78.                                                                 <!--{else}-->
  79.                                                                         <!--{if $forum['redirect']}-->
  80.                                                                                 <a href="$forumurl" class="xi2">{lang url_link}</a>
  81.                                                                         <!--{elseif is_array($forum['lastpost'])}-->
  82.                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  83.                                                                         <!--{else}-->
  84.                                                                                 {lang never}
  85.                                                                         <!--{/if}-->
  86.                                                                 <!--{/if}-->
  87.                                                                 </div>
  88.                                                         </td>
  89.                                                 </tr>
  90.                                                 <tr class="fl_row">
  91.                                                 <!--{/if}-->
  92.                                                 <!--{/loop}-->
  93.                                                 $cat['endrows']
  94.                                                 </tr>
  95.                                         </table>
  96.                                 </div>
  97.                         </div>
  98.                         <!--{ad/intercat/bm a_c/$cat[fid]}-->
  99.                 <!--{/loop}-->
複製代碼
刪除.

找:
  1. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
複製代碼
在其上加:
  1.         <!--{if empty($gid)}-->
  2.                 <style type="text/css">
  3.                 #fboxall { padding:0;margin:10px 0 0 0;width:100%;display:block; }
  4.                 .fbox3 { width:33.333%;float:left; }
  5.                 .fbox4 { width:24.9%;float:left; }
  6.                 .boxall1 { margin:0 9px 9px 0;}
  7.                 .boxall2 { margin:0 5px 5px 5px; }
  8.                 .boxall3 { margin:0 5px 5px 5px; }
  9.                 .boxall3b { margin:0 0 5px 5px; }
  10.                 .boxall4 { margin:0 0 9px 9px; }
  11.                 .conall { font-size:13px;margin:0; }
  12.                 </style>

  13.                 <div id="fboxall">
  14.                 {eval $col = 1;}
  15.                 <div class="{if $fbox==3}fbox3{else}fbox4{/if}" id="col_{$col}">
  16.                 <!--{subtemplate forum/discuz_fbox}-->
  17.                 </div>
  18.                 {eval $col = 2;}
  19.                 <div class="{if $fbox==3}fbox3{else}fbox4{/if}" id="col_{$col}">
  20.                 <!--{subtemplate forum/discuz_fbox}-->
  21.                 </div>
  22.                 {eval $col = 3;}
  23.                 <div class="{if $fbox==3}fbox3{else}fbox4{/if}" id="col_{$col}">
  24.                 <!--{subtemplate forum/discuz_fbox}-->
  25.                 </div>
  26.                 <!--{if $fbox==4}-->
  27.                 {eval $col = 4;}
  28.                 <div class="{if $fbox==3}fbox3{else}fbox4{/if}" id="col_{$col}">
  29.                 <!--{subtemplate forum/discuz_fbox}-->
  30.                 </div>
  31.                 <!--{/if}-->
  32.                 <div style="clear:both;"></div>
  33.                 </div>
  34.         <!--{/if}-->
複製代碼
完成.
PS:本附件除source/module/forum/forum_index.php要修改外其他請上傳覆蓋



本帖子中包含更多資源

您需要 登錄 才可以下載或查看,沒有帳號?立即註冊

x

超級版主

積分信息:
威望:729
金錢:19500
貢獻:873
儲蓄:0

發表於 2015-7-27 10:01:00 | 顯示全部樓層
謝謝你的分享內容~太棒了
http://94i3.tw/

超級版主

積分信息:
威望:729
金錢:19500
貢獻:873
儲蓄:0

發表於 2015-7-27 10:01:01 | 顯示全部樓層
謝謝你的分享內容~太棒了
http://94i3.tw/

9 59 411

中級會員

積分信息:
威望:26
金錢:260
貢獻:40
儲蓄:0

發表於 2015-7-28 07:39:38 | 顯示全部樓層
我看看內容如何是否值得研究

9 75 602

高級會員

積分信息:
威望:68
金錢:309
貢獻:82
儲蓄:0

發表於 2015-8-1 10:49:35 | 顯示全部樓層
不錯的內容~讚

金牌會員

積分信息:
威望:146
金錢:1325
貢獻:148
儲蓄:0

發表於 2015-10-28 09:41:42 | 顯示全部樓層
不錯的內容~讚

3 7 81

註冊會員

積分信息:
威望:8
金錢:48
貢獻:10
儲蓄:0

發表於 2015-11-7 09:09:27 | 顯示全部樓層
謝謝大大分享 感謝大大

金牌會員

積分信息:
威望:153
金錢:1088
貢獻:232
儲蓄:201

發表於 2016-10-7 19:15:12 | 顯示全部樓層
不錯的內容~讚

金牌會員

積分信息:
威望:110
金錢:534
貢獻:199
儲蓄:0

發表於 2017-5-6 01:13:40 | 顯示全部樓層
我看看內容如何是否值得研究

金牌會員

積分信息:
威望:556
金錢:280
貢獻:766
儲蓄:0

發表於 2017-9-2 13:43:48 | 顯示全部樓層
不錯的內容~讚
您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

聯繫我們||小黑屋|手機版|Archiver|POLE FORUM2  

GMT+8, 2025-4-20 06:06 , Processed in 0.050210 second(s), 32 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表