插件名稱: 仿大眾橫排
插件作者: 就是XP娘 ( http://kingyue.net )
插件編碼: Big5
插件版本: 2.0
技術支援: 就是XP娘 ( http://kingyue.net )
插件註解: 仿大眾橫排 v2.0 主要美化了前一版的樣式及修正了部份Bug.
安裝方法:
1) 下載附件: http://www.sendspace.com/file/8afhzj
, 並將 images 及 templates 兩資料夾上傳到論壇根目錄;
2) 去 templates/default/discuz.htm 找
- <!--{loop $catlist $key $cat}-->
- <!--{if $cat['forumscount']}-->
- <div class="mainbox forumlist">
- <span class="headactions">
- <!--{if $cat['moderators']}-->{lang forum_category_modedby}: $cat[moderators]<!--{/if}-->
- <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
- </span>
- <h3><a href="$indexname?gid=$cat[fid]">$cat[name]</a></h3>
- <table id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
- <!--{if !$cat['forumcolumns']}-->
- <thead class="category">
- <tr>
- <th>{lang forum_name}</th>
- <td class="nums">{lang forum_threads}</td>
- <td class="nums">{lang forum_posts}</td>
- <td class="lastpost">{lang forum_lastpost}</td>
- </tr>
- </thead>
- <!--{loop $cat[forums] $forumid}-->
- <!--{eval $forum=$forumlist[$forumid];}-->
- <tbody id="forum$forum[fid]">
- <tr>
- <th$forum[folder]>
- $forum[icon]
- <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
- <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
- <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
- <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}-->
- </th>
- <td class="nums">{if $forum['redirect']}--{else}$forum[threads]{/if}</td>
- <td class="nums">{if $forum['redirect']}--{else}$forum[posts]{/if}</td>
- <td class="lastpost">
- <!--{if $forum['permission'] == 1}-->
- {lang private_forum}
- <!--{else}-->
- <!--{if $forum['redirect']}-->
- --
- <!--{elseif is_array($forum['lastpost'])}-->
- <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a>
- <cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite>
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- <!--{/if}-->
- </td>
- </tr>
- </tbody>
- <!--{/loop}-->
- <!--{else}-->
- <tr>
- <!--{loop $cat['forums'] $forumid}-->
- <!--{eval $forum=$forumlist[$forumid];}-->
- <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
- </tr></tbody>
- <!--{if $forum['orderid'] < $cat['forumscount']}-->
- <tbody><tr>
- <!--{/if}-->
- <!--{/if}-->
- <th width="$cat[forumcolwidth]"{$forum[folder]}>
- <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
- <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
- <!--{if $forum['permission'] == 1}-->
- <p>{lang private_forum}
- <!--{else}-->
- <p>{lang forum_lastpost}:
- <!--{if is_array($forum['lastpost'])}-->
- <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
- {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
- <!--{else}-->
- {lang never}
- <!--{/if}-->
- </p>
- <!--{/if}-->
- </th>
- <!--{/loop}-->
- $cat['endrows']
- <!--{/if}-->
- </table>
- </div>
- <!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat'][0] ? $advlist['intercat'][0] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))}--><div class="ad_column" id="ad_intercat_$key"><!--{echo $advitems[$advlist['intercat'][$key][array_rand($advlist['intercat'][$key])]]}--></div><!--{else}--><div id="ad_intercat_$key"></div><!--{/if}-->
- <!--{/if}-->
- <!--{/loop}-->
复制代码 改成:
- <div style="clear:left">
- <table border="0" class="forummain" cellspacing="0" cellpadding="0">
- <tr><td class="forummain1" valign="top">
- {template discuz_forumlist}
- </td><td class="forummain2"> </td><td class="forummain3" valign="top">
- 右側資訊
- </td></tr>
- </table>
- <div>
复制代码 3) 去 templates/default/css.htm , 在末端加上:- /*index forummain*/
- .forummain { width: 980px }
- .forummain1 { width: 750px }
- .forummain2 { width: 20px }
- .forummain3 { width: 210px }
- /*index forumlist*/
- .forumbox { border: 0px; padding: 0; margin-bottom: {BOXSPACE}; }
- .forumbox h1, .forumbox h3, .forumbox h6 { line-height: 30px; background: url({IMGDIR}/other/forumlist_750_title.png); padding-left: 1em; background-repeat: no-repeat; background-position: 0 0; color: #000; }
- .forumbox h1 a, .forumbox h3 a { color: #000; }
- .forumbox .main { background: url({IMGDIR}/other/forumlist_750_main.png); background-repeat: repeat-y; }
- .forumbox table.main { width: 750px; }
- .forumbox div.thead { background: url({IMGDIR}/other/forumlist_530_bg.png) no-repeat; height: 30px }
- .forumbox thead th, .forumbox thead td { background: none; padding: 5px 2px; line-height: 22px; color: {TEXT}; }
- .forumbox thead.category th, .forumbox thead.category td { background: none; }
- .forumbox thead.separation th, .forumbox thead.separation td { border-top: 0px solid {BGBORDER} }
- .forumbox tbody cite, .forumbox tbody em { line-height: 1.3em; }
- .forumbox .down { width: 750px; height: 10px; background: url({IMGDIR}/other/forumlist_750_down.png) }
- .forumbox img.forumlogo { width: 180px; height: 100px; margin-left: 10px; }
- .forumlistindex tbody th, .forumlist tbody td, .threadlist tbody th, .threadlist tbody td { color: {TEXT}; padding: 1px 5px; border-bottom: 0px; background: none; }
- .forumlistindex tbody th { height: 20px; }
- .forumlistindex th, .threadlist th { text-align: left; }
- .forumlistindex th { padding-left: 5px !important; }
- .forumlistindex h2 em { color: {HIGHLIGHTLINK}; }
- .forumlistindex tbody th { background: none }
- .forumlistindex tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
复制代码 ~完成~
images/flogo 內有一些有用的圖片素材, 歡迎使用 |