TShopping

 找回密碼
 註冊
搜索
查看: 996|回復: 2

[教學] [x2.5]免裝插件之輕量化直排

[複製鏈接]
發表於 2013-10-11 23:41:48 | 顯示全部樓層 |閱讀模式
 
Push to Facebook Push to Plurk Push to Twitter 
免裝插件之輕量化直排(轉)
附件有 discuz.htm<<是直橫混排版上傳覆蓋即可



直橫混排上傳覆蓋



修改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}" onclick="toggle_collapse('category_$cat[fid]');" />
  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. <div class="wp mtn">
  2. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  3. </div>
複製代碼

刪除.


找:

  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}-->
複製代碼

完成.


 

臉書網友討論

本帖子中包含更多資源

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

x
發表於 2014-7-2 10:09:26 | 顯示全部樓層
谢谢您,顶











bjcars.net

版主招募中

發表於 2014-8-8 22:00:11 | 顯示全部樓層
谢谢了。。。 我很赞成,继续努力吧


您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2016-12-5 08:10 , Processed in 0.061277 second(s), 22 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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