AL8 Forum
   登錄註冊幫助


標題: [D5.5] pw首頁~論壇標題、介紹,最後發表、版主列表、帖子數 美化
 2506
 0029488
Rank: 2Rank: 2

頭銜: Member

帖子: 86

精華: 0

積分: 995 點

現金: 25 元

存款: 139 元

閱讀權限: 15

註冊: 2005-8-28

狀態: 離線
 
發表於 2007-5-6 15:21  資料  個人空間  短消息  加為好友 
pw首頁~論壇標題、介紹,最後發表、版主列表、帖子數 美化

難度:

修改: 兩個文件

適合:5.5版本使用

增加: 一些圖片

版權:晴春 [DZ:52327755]      原作者:我上網來摘星星

演示:http://www.cx-host.com/milksugar/bbs/

原貼:http://www.discuz.net/thread-576247-1-1.html

修改開始

一、修改include/forum.func.php,搜尋:
$lastpost['dateline'] = gmdate("$dateformat $timeformat", $lastpost['dateline'] + $timeoffset * 3600);


下面加:

$lastpost['subjectsc'] = cutstr($lastpost['subject'], 23);


上面的23是   要在首頁顯示主題的字數 ,自己調整一下

二、修改templates/default/discuz.htm       [我現在用5.5預設discuz.htm文件修改,如有過改動,請自己搜尋]
      搜尋:
<!--{loop $catlist $key $cat}-->
<!--{if $cat['forumscount']}-->
  <div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;"><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  <tr><td colspan="<!--{if $cat['forumcolumns']}-->$cat[forumcolumns]<!--{else}-->7<!--{/if}-->" class="header" style="padding-left:20px">
  <div class="subtable" style="padding: 0px"><div class="right">
  <!--{if $cat['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $cat[moderators]</font> <!--{/if}-->
  <a href="###" onclick="toggle_collapse('category_$cat[fid]');"><img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" border="0" alt="" /></a>
  </div><a href="$indexname?gid=$cat[fid]">$cat[name]</a></div>
  </td></tr>
  <!--{if !$cat['forumcolumns']}-->
   <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]">
   <tr class="category" align="center">
   <td width="5%"> </td>
   <td width="56%" align="left">{lang forum_name}</td>
   <td width="5%">{lang forum_threads}</td>
   <td width="5%">{lang forum_posts}</td>
   <td width="13%">{lang forum_lastpost}</td>
   <td width="16%">{lang forum_moderators}</td>
   </tr>
   <!--{loop $cat[forums] $forumid}-->
    <!--{eval $forum=$forumlist[$forumid];}-->
    <tr class="row" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
    <td align="center">$forum[folder]</td>
    <td align="left" class="subject">
    $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
    <!--{if $forum[todayposts]}--><span class="todayposts">($forum[todayposts])</span><!--{/if}-->
    <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum['subforums']<!--{/if}--></span></td>
    <td align="center">$forum[threads]</td>
    <td align="center">$forum[posts]</td>
    <!--{if $forum['permission'] == 1}-->
     <td align="center"><span class="smalltxt">{lang private_forum}</span></td>
    <!--{else}-->
     <!--{if is_array($forum['lastpost'])}-->
      <td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>
      <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
      </td>
     <!--{else}-->
      <td align="center"><span class="smalltxt">{lang never}</span></td>
     <!--{/if}-->
    <!--{/if}-->
    <td align="center" style="word-break: keep-all">$forum[moderators]</td></tr>
   <!--{/loop}-->
  <!--{else}-->
   <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]"><tr class="altbg2">
   <!--{loop $cat['forums'] $forumid}-->
    <!--{eval $forum=$forumlist[$forumid];}-->
    <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
     </tr>
     <!--{if $forum['orderid'] < $cat['forumscount']}-->
      <tr class="altbg2">
     <!--{/if}-->
    <!--{/if}-->
    <td width="$cat[forumcolwidth]" valign="top" class="altbg2" onMouseOver="this.style.backgroundColor='{ALTBG1}'" onMouseOut="this.style.backgroundColor='{ALTBG2}'">
    <table cellspacing="0" cellpadding="0" width="100%">
    <tr><td rowspan="3" align="center" width="15%">$forum[folder]</td><td colspan="3" class="bold subject"><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></td></tr>
    <tr class="smalltxt"><td colspan="3">{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}-->
    </td></tr><tr class="smalltxt"><td>{lang forum_threads}: $forum[threads]</td><td>{lang forum_posts}: $forum[posts]</td><td>{lang forum_todayposts}: $forum[todayposts]</td></tr></table>
    </td>
   <!--{/loop}-->
   $cat['endrows']
  <!--{/if}-->
  </tbody></table></div>


修改為:
<!--{loop $catlist $key $cat}-->
        <!--{if $cat['forumscount']}-->
                <div>
                  <div class="spaceborder spacebottom" style="width: {TABLEWIDTH}; clear: both; margin-top: 5px;">
                    <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
              <tr>
                <td colspan="7" class="header" style="padding-left:20px"><div class="subtable" style="padding: 0px">
                  <div class="right">
                      <!--{if $cat['moderators']}-->
                    <font color="{HEADERTEXT}">{lang forum_category_modedby}: $cat[moderators]</font>
                      <!--{/if}-->
                      <a href="#" onClick="toggle_collapse('category_$cat[fid]');"><img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" border="0" alt="" /></a>  </div>
                  <a href="$indexname?gid=$cat[fid]">$cat[name]</a></div></td>
              </tr>
              <!--{if !$cat['forumcolumns']}-->
              <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]">
                <tr class="category" align="center">
                  <td width="5%"> </td>
                  <td width="56%" align="left">{lang forum_name}</td>
                  <td width="35%" colspan="3">{lang forum_lastpost}</td>
                </tr>
                <!--{loop $cat[forums] $forumid}-->
                <!--{eval $forum=$forumlist[$forumid];}-->
                <tr class="row" onMouseOver="this.className='row1'" onMouseOut="this.className='row'">
                  <td align="center">$forum[folder]</td>
                  <td align="left" class="subject"> $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a> <br>
                      <img src="{IMGDIR}/forumlin.gif" height=5><br>
                    <span class="smalltxt">$forum[description]
                      <!--{if $forum['subforums']}-->
                      <br>
                      <span class="bold">{lang forum_subforums}:</span> $forum['subforums']
                      <!--{/if}-->
                    </span></td>
                  
                  <!--{if $forum['permission'] == 1}-->
                  <td width="4"><img src="{IMGDIR}/last.gif"></td><td align="center"><span class="smalltxt">{lang private_forum}</span></td>
                  <!--{else}-->
                  <!--{if is_array($forum['lastpost'])}-->
                                  <td width="12" align="right">
<a href="post.php?action=newthread&fid=$forum[fid]&extra=page%3D1"><img src="{IMGDIR}/topicnew.gif" border="0" alt="在本版發表新帖"></a><br>
<a href="post.php?action=newthread&fid=$forum[fid]&extra=page%3D1&poll=yes"><img src="{IMGDIR}/vote.gif" border="0" alt="在本版發起投票"></a><br>
<a href="forumdisplay.php?fid=$forum[fid]&filter=digest"><img src="{IMGDIR}/tsale.gif" border="0" alt="查看本版的精華帖"></a>
</td>
                  <td width="4"><img src="{IMGDIR}/last.gif"></td>
                                  <td align="left" title="發布時間: $forum[lastpost][dateline]{LF}完整標題: $forum[lastpost][subject]" nowrap>
                                  <img src="{IMGDIR}/ttopic.jpg"> = <span class="smalltxt"><a title="發布時間: $forum[lastpost][dateline]{LF}完整標題: $forum[lastpost][subject]" href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][subjectsc]</a></span>
<br><img src="{IMGDIR}/forumlin2.gif" height=5><br>
<img src="{IMGDIR}/wirter.jpg"> =<!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><font color="#88B500">($forum[lastpost][dateline])</font></a>
<br>
<img src="{IMGDIR}/forumlin2.gif" height=5><br>
                  </td>
                  <!--{else}-->
                  <td align="center"><span class="smalltxt">{lang never}</span></td>
                  <!--{/if}-->
                  <!--{/if}-->
                </tr>
                <tr class="row">
                  <td height="28" bgcolor="#FFFFFF"></td>
                  <td height="28" bgcolor="#FFFFFF"><img src="{IMGDIR}/moderator.gif"> $forum[moderators]</td>
                  <td bgcolor="#FFFFFF" height="28" colspan="3"><img src="{IMGDIR}/i_topic.gif"  alt="主題總數"> <font color="#9933CC">$forum[threads]</font> <img src="{IMGDIR}/i_post.gif" alt="帖子總數"> <font color="#0099FF">$forum[posts]</font> <img src="{IMGDIR}/i_today.gif" alt="今日帖數"> <font color="#FF3399">$forum[todayposts]</font></td>
                </tr>
                <!--{/loop}-->
                <!--{else}-->
                        <tbody id="category_$cat[fid]" style="$collapse['category_'.$cat[fid]]"><tr class="altbg2">
                        <!--{loop $cat['forums'] $forumid}-->
                                <!--{eval $forum=$forumlist[$forumid];}-->
                                <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
                                        </tr>
                                        <!--{if $forum['orderid'] < $cat['forumscount']}-->
                                                <tr class="altbg2">
                                        <!--{/if}-->
                                <!--{/if}-->
                                <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>
                                <div style="float:left;width: 33%; padding-top: 6px;"><span class="smalltxt"><img src="{IMGDIR}/i_topic.gif"  alt="主題總數" /> <span class="STYLE1">$forum[threads]</span></span></div>
                                <div style="float:left;width: 33%; padding-top: 6px;"><span class="smalltxt"><img src="{IMGDIR}/i_post.gif" alt="帖子總數" />: <span class="STYLE2">$forum[posts]</span></span></div>                                <div style="float:left;width: 33%; padding-top: 6px;"><span class="smalltxt"><img src="{IMGDIR}/i_today.gif" alt="今日帖數" /> <span class="STYLE3">$forum[todayposts]</span></span></div> </td>
                        <!--{/loop}-->
                        $cat['endrows']
                <!--{/if}-->
                </tbody></table></div><br></div>
        <!--{/if}-->
<!--{/loop}-->
<div>


找到就刪除:

<!--{if !empty($advlist['intercat']) && $key < max(array_keys($catlist))}--><div style="clear: both; margin-top: 5px;"><!--{echo $advlist['intercat'][array_rand($advlist['intercat'])]}--></div><!--{else}--><br><!--{/if}-->
<!--{/if}-->
<!--{/loop}-->


最後再上傳圖片檔案到,風格的目錄下

∼完成∼

[ 本帖最後由 2506 於 2007-5-6 15:25 編輯 ]



 附件: 您所在的用戶組無法下載或查看附件



新開論壇
http://www.cx-host.com/milksugar/
 AL8 Forum © All rights reserved.
頂部
 rextsang
 0045651
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 rextsang 的詳細資料

頭銜: Forum Legend

暱稱: Moderator

自述: 我唔係板主

帖子: 11188

精華: 0

積分: 3360 點

現金: 0 元

存款: 41568 元

閱讀權限: 70

註冊: 2006-5-26

狀態: 離線
 
發表於 2007-5-6 15:23  資料  個人空間  短消息  加為好友 
-.-仿pw美化




#非黃金廣告位
 AL8 Forum © All rights reserved.
頂部
 2506
 0029488
Rank: 2Rank: 2

頭銜: Member

帖子: 86

精華: 0

積分: 995 點

現金: 25 元

存款: 139 元

閱讀權限: 15

註冊: 2005-8-28

狀態: 離線
 
發表於 2007-5-6 15:24  資料  個人空間  短消息  加為好友 
恩~~~~~~~~




新開論壇
http://www.cx-host.com/milksugar/
 AL8 Forum © All rights reserved.
頂部
 kulu
 0049992
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 232

精華: 0

積分: 230 點

現金: 0 元

存款: 110 元

閱讀權限: 20

註冊: 2006-8-15

狀態: 離線
 
發表於 2007-5-6 15:26  資料  個人空間  主頁 短消息  加為好友 
回覆 #3 2506 的帖子

動作真快 = =

找到馬上搶頭香= =




We need your energy, Xdai.net
 AL8 Forum © All rights reserved.
頂部
 人仔
 0022810
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 人仔 的詳細資料

頭銜: Forum Legend

暱稱: [x'''┬ ...

自述: DVD-RW ...

帖子: 5136

精華: 1

積分: 3587 點

現金: 0 元

存款: 19093 元

閱讀權限: 70

註冊: 2005-6-2

來自: 澳門

狀態: 離線
 
發表於 2007-5-6 15:58  資料  個人空間  短消息  加為好友 
我來也
但唔安




 AL8 Forum © All rights reserved.
頂部
 無盡ソ命運
 0068067
Rank: 3Rank: 3Rank: 3
點擊查看 無盡ソ命運 的詳細資料

頭銜: Conqueror

帖子: 163

精華: 0

積分: 1540 點

現金: 0 元

存款: 90 元

閱讀權限: 20

註冊: 2007-2-22

狀態: 離線
 
發表於 2007-5-6 16:13  資料  個人空間  短消息  加為好友 
支持樓主,一陣去安裝先xDDDD
但係樓主D圖片改得唔係太好
都係用作者果個

[ 本帖最後由 無盡ソ命運 於 2007-5-6 16:19 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 nickyjelly
 0029774
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 nickyjelly 的詳細資料

頭銜: Forum Legend

帖子: 2303

精華: 0

積分: 9080 點

現金: 170 元

存款: 5696 元

閱讀權限: 70

註冊: 2005-9-1

狀態: 離線
 
發表於 2007-5-6 16:48  資料  個人空間  短消息  加為好友  添加 nickyjelly 為MSN好友 通過MSN和 nickyjelly 交談
好似好哂位咁既 .. -口-""




 AL8 Forum © All rights reserved.
頂部
 小智仔
 0040753
Rank: 3Rank: 3Rank: 3
點擊查看 小智仔 的詳細資料

頭銜: Conqueror

帖子: 210

精華: 0

積分: 2340 點

現金: 26 元

存款: 1 元

閱讀權限: 20

註冊: 2006-2-28

狀態: 離線
 
發表於 2007-5-6 18:22  資料  個人空間  短消息  加為好友 
純支持唔安

因為有會員拉唔到落下面




 AL8 Forum © All rights reserved.
頂部
 過兒
 0045078
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 543

精華: 0

積分: 6130 點

現金: 40 元

存款: 1000 元

閱讀權限: 25

註冊: 2006-5-15

狀態: 離線
 
發表於 2007-5-6 20:33  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 小智仔 於 2007-5-6 18:22 發表
純支持唔安
因為有會員拉唔到落下面

咩意思呢




 AL8 Forum © All rights reserved.
頂部
 過兒
 0045078
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 543

精華: 0

積分: 6130 點

現金: 40 元

存款: 1000 元

閱讀權限: 25

註冊: 2006-5-15

狀態: 離線
 
發表於 2007-5-6 20:35  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 小智仔 於 2007-5-6 18:22 發表
純支持唔安
因為有會員拉唔到落下面

咩意思呢




 AL8 Forum © All rights reserved.
頂部
 漩渦鳴人
 0019177
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5

頭銜: King

帖子: 927

精華: 0

積分: 6981 點

現金: 21 元

存款: 42610 元

閱讀權限: 30

註冊: 2005-4-12

來自: ≡ 酷Game ≡

狀態: 離線
 
發表於 2007-5-6 20:44  資料  個人空間  主頁 短消息  加為好友  添加 漩渦鳴人 為MSN好友 通過MSN和 漩渦鳴人 交談
多謝大大的分享




免費遊戲封測序號任你拿 http://www.mt-game.com
 AL8 Forum © All rights reserved.
頂部
 ken911hk
 0035915
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 176

精華: 0

積分: 1759 點

現金: 349 元

存款: 0 元

閱讀權限: 20

註冊: 2005-11-29

來自: 香港@無 ...

狀態: 離線
 
發表於 2007-5-6 22:52  資料  個人空間  主頁 短消息  加為好友  添加 ken911hk 為MSN好友 通過MSN和 ken911hk 交談 ICQ 狀態 Yahoo!
好似幾哂位下




無名論壇 U-K Forum
http://uk-f.coms.hk
↑快快按吧 快快註冊吧
 AL8 Forum © All rights reserved.
頂部
 芝麻貓
 0026866
Rank: 2Rank: 2

頭銜: Member

帖子: 63

精華: 0

積分: 830 點

現金: 14 元

存款: 60 元

閱讀權限: 15

註冊: 2005-7-21

狀態: 離線
 
發表於 2007-5-6 23:10  資料  個人空間  短消息  加為好友 
支持 = =+




 AL8 Forum © All rights reserved.
頂部
 六翅天使
 0049020
Rank: 3Rank: 3Rank: 3
點擊查看 六翅天使 的詳細資料

頭銜: Conqueror

帖子: 242

精華: 0

積分: 2090 點

現金: 618 元

存款: 5 元

閱讀權限: 20

註冊: 2006-7-31

狀態: 離線
 
發表於 2007-5-7 18:06  資料  個人空間  短消息  加為好友 
好~頂一個~~




From 夢幻星球
 AL8 Forum © All rights reserved.
頂部
 【無形風】
 0054006
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

自述: AL8是我家

帖子: 1093

精華: 0

積分: 200 點

現金: 0 元

存款: 110 元

閱讀權限: 70

註冊: 2006-10-1

狀態: 離線
 
發表於 2007-5-7 18:11  資料  個人空間  短消息  加為好友 
MAXSPEED 5.2 點改—。—




 AL8 Forum © All rights reserved.
頂部
 瑋少
 0040547
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1568

精華: 0

積分: 8161 點

現金: 532 元

存款: 5840 元

閱讀權限: 70

註冊: 2006-2-25

來自: 超人氣討論區

狀態: 離線
 
發表於 2007-5-7 18:51  資料  個人空間  主頁 短消息  加為好友 
作者果個link係咩




 AL8 Forum