=========================================
作者: HklcskY
版本: Discuz!5.0
演示: 見附件
聲明: (必看)
1、若要使要icon 便該區全部論壇要使用同大小的icon
2、若要使用本插件我建議全部都把
"下級論壇橫排" 設定為2
3、如要轉帖,請先Pm我
4、本修改法可能在我己更改的檔案抄出來有一些錯誤,若有錯誤 麻煩Pm或回帖告知,謝謝!
5、演示icon我借用了樂古論壇的icon,如有侵犯,麻煩Pm或回帖告知,謝謝!
6、這插件打了很辛苦,麻煩大家不要做CD-ROM....
7、本插件不含子論壇Display
以下文章可以配合修改
http://www.alan888.com/Discuz/thread-82678-1-1.html
http://www.alan888.com/Discuz/thread-82688-1-1.html
=========================================
1.到後台 論壇管理 >> 編輯論壇 >>該區按[編輯]
下級論壇橫排:
設置下級論壇橫排時每行論壇數量,如果設置為 0,則按正常方式排列
修改為 "
2"
本插件建議設定為2,否則會走位
====================================================
2.修改include/forum.func.php
找
$lastpost['dateline'] = gmdate("$dateformat $timeformat", $lastpost['dateline'] + $timeoffset * 3600);
上加
$lastpost['subject'] = cutstr($lastpost['subject'], 23);
上列修改那個 "23"為首頁最後回覆 標題長度的字數 , 若超過以上設定單位,便會使用 ... 省略去
====================================================
3.修改include/forum.func.php
找
foreach(explode("\t", $moderators) as $moderator) {
$modlist .= $comma.'<a href="viewpro.php?username='.rawurlencode($moderator).'">'.($inherit ? $moderator : $moderator).'</a>';
$comma = ', ';
}
之下增加
$modlist = "$modlist : <b>版主</b>";
====================================================
4.修改discuz.htm模版
找
<td width="$cat[forumcolwidth]" class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a><br>
<span class="smalltxt"><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_threads}: $forum[threads]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_posts}: $forum[posts]</div><div style="float:left;width: 33%; padding-top: 6px;">{lang forum_todayposts}: $forum[todayposts]</div></span>
</td>
更換成
<td width="$cat[forumcolwidth]" class="altbg2" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
<table border="1" width="100%" id="table1" style="border-width: 0px">
<tr>
<td style="border-style: none; border-width: medium" width="18%" height="100%" align="center" rowspan="2">
<table border="1" width="100%" id="table2" style="border-width: 0px">
<tr>
<td style="border-style: none; border-width: medium" align="center"><!--{if $forum['icon']}-->$forum[icon]<!--{else}--><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{/if}--></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" align="center">主 : $forum[threads]
回 : $forum[posts] </td>
</tr>
</table>
</td>
<td style="border-style: none; border-width: medium" height="80%">
<span class="bold">
<img border="0" src="images/loop/forum.gif"> <a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a> <a href="forumdisplay.php?fid=$forum[fid]&filter=digest">
<font color="#C0C0C0">【精華】</font></a><font color="#C0C0C0"> </font> </span><br><fieldset style=width:"100%">
<!--{if is_array($forum['lastpost'])}--><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{$forum[lastpost][subject]}</a> <!--{else}-->未有<!--{/if}--></fieldset></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" height="20%">
<p align="right">$forum[moderators]<br></td>
</tr>
</table>
</td>
5.把附件解壓放在
論壇目錄
之內
[
本帖最後由 hklcsky 於 2006-10-21 18:31 編輯 ]