AL8 Forum
   登錄註冊幫助


標題: [D6.0] 首頁四格6.0.0正式版,配套新論壇六風格[圖片+最新帖+新回復+熱門](繁化版)
 man哥
 0019930
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

自述: 免費代製 ...

帖子: 1373

精華: 0

積分: 1484 點

現金: 496 元

存款: 13000 元

閱讀權限: 70

註冊: 2005-4-27

狀態: 離線
 
發表於 2007-8-30 15:28  資料  個人空間  短消息  加為好友 
首頁四格6.0.0正式版,配套新論壇六風格[圖片+最新帖+新回復+熱門](繁化版)

繁化:man哥
原帖:http://www.discuz.net/thread-696558-1-1.html

注:插件本人沒有測試, 只提只繁化, 如果你成功安裝請回一覆一下!

演示:
 圖片附件: 遊客無法下載或閱讀圖片附件

要加入的文件:
1, pic.php 調用論壇圖片資料,
2, picli.gif 標題前的圖片
3, focus.swf 調用圖片的flash [此swf 與以往的大不相同,個人覺得更不錯]

需修改的文件:
1, index.php
2, discuz.htm

=======================  開始  ============================
步驟:共分4步

1, 將pic.php picli.gif focus.swf 按下載到的附件結構傳到FTP(網站)
   [pic.php 在論壇根目錄]
   [picli.gif focus.swf 在images文件夾下]

2, 打開 index.php
  搜尋:
$rsshead = $rssstatus
在之上加:
//----首頁四格代碼開始
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//新貼
$hack_cut_str = 26; //標題字數
$hack_cut_strauthor = 9;
$new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid ORDER BY t.dateline DESC LIMIT 0, 8");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
        $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
        $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
        $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
        if($nthread['highlight']) {
                $string = sprintf('%02d', $nthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $nthread['highlight'] = 'style="';
                $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $nthread['highlight'] .= '"';
        } else {
                $nthread['highlight'] = '';
        }
        $new_post_threadlist[] = $nthread;
}
//新回復
$hack_cut_str = 26; //標題字數
$hack_cut_strauthor = 9;
$new_reply_threadlist = array();
$rthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 8");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
        $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
$rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
        if($rthread['highlight']) {
                $string = sprintf('%02d', $rthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $rthread['highlight'] = 'style="';
                $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $rthread['highlight'] .= '"';
        } else {
                $rthread['highlight'] = '';
        }
        $new_reply_threadlist[] = $rthread;
}
//熱帖
$hack_cut_str = 26; //標題字數
$hack_cut_strauthor = 9;
$new_hot_threadlist = array();
$mthread = array();
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid  AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.views DESC LIMIT 0, 8");
while($mthread = $db->fetch_array($query)) {
        $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
        $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
        $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
$mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
        $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
        if($mthread['highlight']) {
                $string = sprintf('%02d', $mthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $mthread['highlight'] = 'style="';
                $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $mthread['highlight'] .= '"';
        } else {
                $mthread['highlight'] = '';
        }
        $new_hot_threadlist[] = $mthread;
}
//----首頁四格代碼結束
3, 打開 templates/default/discuz.htm

搜尋:
<div id="ad_text"></div>
在之下加:
<!-- 首頁四格代碼開始 -->
<div class="mainbox forumlist">
<table cellspacing="0" cellpadding="0">
  <thead class="category">
  <tr>
   <td align="center" style="padding:1px"><h3>≡ 論壇圖片 ≡</h3></td>
   <td align="center" style="padding:1px"><h3>≡ 最新帖子 ≡</h3></td>
   <td align="center" style="padding:1px"><h3>≡ 最新回復 ≡</h3></td>
   <td align="center" style="padding:1px"><h3>≡ 熱門帖子 ≡</h3></td>
  </tr>
  </thead>
  <tr>
   <td width="25%">
<?php
require_once 'pic.php';
?>
   </td>
   <td width="25%">
    <!--{loop $new_post_threadlist $nthread}-->
    <table border="0" width="100%" cellspacing="2">
     <tr>
      <td height="12" width="100%" style="border-top: 0px;padding:1px">
      <!--{if $nthread[replies]}-->
       <img src="images/picli.gif" border="0" /><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最后回復: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a>
                  <!--{else}-->
       <img src="images/picli.gif" border="0" /><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新話題 {LF}所在論壇: $nthread[forumname]{LF}主題標題: $nthread[subject] {LF}主題作者: $nthread[author]{LF}發表時間: $nthread[date]{LF}瀏覽次數: $nthread[views] 次 {LF}回復次數: $nthread[replies] 次{LF}最后回復: 暫時沒有回復'>$nthread[view_subject]</a>
      <!--{/if}-->
      </td>
     </tr>
    </table>
    <!--{/loop}-->
   </td>
   <td width="25%">
    <!--{loop $new_reply_threadlist $rthread}-->
    <table border="0" width="100%" cellspacing="2">
     <tr>
      <td height="12" width="100%" style="border-top: 0px;padding:1px"><img src="images/picli.gif" border="0" /><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title='最新回復 {LF}所在論壇: $rthread[forumname]{LF}主題標題: $rthread[subject]{LF}主題作者: $rthread[author]{LF}發表時間: $rthread[date]{LF}瀏覽次數: $rthread[views] 次{LF}回復次數: $rthread[replies] 次{LF}最后回復: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></td>
     </tr>
    </table>
    <!--{/loop}-->         
   </td>
   <td width="25%">
    <!--{loop $new_hot_threadlist $mthread}-->
    <table border="0" width="100%" cellspacing="2">
     <tr>
      <td height="12" width="100%" style="border-top: 0px;padding:1px"><img src="images/picli.gif" border="0" /><a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='熱門話題 {LF}所在論壇: $mthread[forumname]{LF}主題標題: $mthread[subject]{LF}主題作者: $mthread[author]{LF}發表時間: $mthread[date]{LF}瀏覽次數: $mthread[views] 次{LF}回復次數: $mthread[replies] 次{LF}最后回復: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>$mthread[view_subject]</a></td>
     </tr>
    </table>
    <!--{/loop}-->   
   </td>
  </tr>
</table>
</div>
<!-- 首頁四格代碼結束 -->
4, 上傳剛才修改過的 index.php 及 discuz.htm
如果你沒有修改過這兩個文件可以下載附件直接覆蓋就可以了!

~如果簡體插件需要繁化請pm我官方論壇插件連結~

[ 本帖最後由 man哥 於 2007-8-30 15:54 編輯 ]



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



 AL8 Forum © All rights reserved.
頂部
 新新手
 0011285
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 204

精華: 0

積分: 420 點

現金: 50 元

存款: 19563 元

閱讀權限: 20

註冊: 2004-11-9

狀態: 離線
 
發表於 2007-8-30 15:31  資料  個人空間  短消息  加為好友 
太好了~~推推!
試下安裝先 =]




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

頭銜: Forum Legend

暱稱: technetcal

自述: G-HK.ORG

帖子: 6362

精華: 0

積分: 20390 點

現金: 960 元

存款: 16248 元

閱讀權限: 70

註冊: 2005-6-18

狀態: 離線
 
發表於 2007-8-30 15:31  資料  個人空間  主頁 短消息  加為好友 
我支持你




 AL8 Forum © All rights reserved.
頂部
 wai312
 0061321
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 阿偉

自述: UID: 0061321

帖子: 1860

精華: 0

積分: 370 點

現金: 0 元

存款: 28652 元

閱讀權限: 70

註冊: 2006-12-18

來自: Hong Kong

狀態: 離線
 
發表於 2007-8-30 15:33  資料  個人空間  短消息  加為好友 
support




2
 AL8 Forum © All rights reserved.
頂部
 eddiex911
 0080647
 此發帖者已被禁止訪問

頭銜: Banned

帖子: 611

精華: 0

積分: 277 點

現金: 159 元

存款: 0 元

閱讀權限: 0

註冊: 2007-7-1

來自: 閉關中

狀態: 離線
 
發表於 2007-8-30 16:37  資料  個人空間  主頁 短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 trickman
 0082860
Rank: 1

頭銜: Newbie

帖子: 29

精華: 0

積分: 370 點

現金: 0 元

存款: 100 元

閱讀權限: 10

註冊: 2007-7-27

狀態: 離線
 
發表於 2007-8-30 16:45  資料  個人空間  短消息  加為好友 
我安了!
但圖片有問題wo...
救救我! 圖片附件: 遊客無法下載或閱讀圖片附件



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



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

頭銜: Forum Legend

帖子: 1221

精華: 0

積分: 7520 點

現金: 310 元

存款: 0 元

閱讀權限: 70

註冊: 2006-4-15

狀態: 離線
 
發表於 2007-8-30 16:58  資料  個人空間  主頁 短消息  加為好友 
QUOTE:
原帖由 trickman 於 2007-8-30 16:45 發表
我安了!
但圖片有問題wo...
救救我!49833


開放附件...但圖片一定要jpg




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

頭銜: Forum Legend

帖子: 1221

精華: 0

積分: 7520 點

現金: 310 元

存款: 0 元

閱讀權限: 70

註冊: 2006-4-15

狀態: 離線
 
發表於 2007-8-30 17:06  資料  個人空間  主頁 短消息  加為好友 




 AL8 Forum © All rights reserved.
頂部
 babababa
 0043394
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 390

精華: 0

積分: 3310 點

現金: 550 元

存款: 0 元

閱讀權限: 25

註冊: 2006-4-13

狀態: 離線
 
發表於 2007-8-30 17:21  資料  個人空間  短消息  加為好友 
我都成功安裝左啦




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

頭銜: Forum Legend

帖子: 1221

精華: 0

積分: 7520 點

現金: 310 元

存款: 0 元

閱讀權限: 70

註冊: 2006-4-15

狀態: 離線
 
發表於 2007-8-30 18:42  資料  個人空間  主頁 短消息  加為好友 
發現投票的....回覆不能顯示




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

頭銜: Forum Legend

帖子: 1272

精華: 0

積分: 9560 點

現金: 534 元

存款: 5678 元

閱讀權限: 70

註冊: 2007-1-3

狀態: 離線
 
發表於 2007-8-30 21:33  資料  個人空間  主頁 短消息  加為好友 
我支持你呀@o@
很漂亮




 AL8 Forum © All rights reserved.
頂部
 龍印
 0029457
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 450

精華: 0

積分: 310 點

現金: 236 元

存款: 2706 元

閱讀權限: 25

註冊: 2005-8-28

來自: Cyber N ...

狀態: 離線
 
發表於 2007-8-31 10:59  資料  個人空間  短消息  加為好友  添加 龍印 為MSN好友 通過MSN和 龍印 交談
SUP=],,,,支持,,,
thz~~也期望AL8的首頁4格




 AL8 Forum © All rights reserved.
頂部
 tony945
 0066905
Rank: 2Rank: 2

頭銜: Member

帖子: 81

精華: 0

積分: 890 點

現金: 100 元

存款: 0 元

閱讀權限: 15

註冊: 2007-2-10

狀態: 離線
 
發表於 2007-9-1 09:03  資料  個人空間  主頁 短消息  加為好友 
成功安裝完成




 AL8 Forum © All rights reserved.
頂部
 NAGISA
 0011716
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 224

精華: 0

積分: 2240 點

現金: 216 元

存款: 89 元

閱讀權限: 20

註冊: 2004-11-17

狀態: 離線
 
發表於 2007-9-1 09:23  資料  個人空間  短消息  加為好友 
我唔想要圖片..好似al8 原有四格咁就ok




 AL8 Forum © All rights reserved.
頂部
 ericb001
 0052817
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: EricB

帖子: 1262

精華: 0

積分: 2188 點

現金: 0 元

存款: 13955 元

閱讀權限: 70

註冊: 2006-9-17

狀態: 離線
 
發表於 2007-9-1 10:05  資料  個人空間  短消息  加為好友 
回覆 #14 NAGISA 的帖子

我會用呢個插件改到好似al8果個




 AL8 Forum © All rights reserved.
頂部
 KFORUM.
 0043885
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 2571

精華: 0

積分: 18000 點

現金: 684 元

存款: 42 元

閱讀權限: 70

註冊: 2006-4-22

狀態: 離線
 
發表於 2007-9-1 16:47  資料  個人空間  短消息  加為好友 
2個attach有咩分別??




 AL8 Forum © All rights reserved.
頂部
 某a
 0081999
Rank: 1

頭銜: Newbie

帖子: 45

精華: 0

積分: 650 點

現金: 80 元

存款: 10 元

閱讀權限: 10

註冊: 2007-7-17

狀態: 離線
 
發表於 2007-9-1 22:00  資料  個人空間  短消息  加為好友 
安裝已完成,非常漂亮的說:

http://sufo.no-ip.org/index.php




 AL8 Forum © All rights reserved.
頂部
 fionalmd
 0046686
Rank: 1

頭銜: Newbie

帖子: 49

精華: 0

積分: 510 點

現金: 100 元

存款: 0 元

閱讀權限: 10

註冊: 2006-6-15

來自: hk

狀態: 離線
 
發表於 2007-9-1 23:39  資料  個人空間  主頁 短消息  加為好友 
我裝左啦,,應該暫時冇問題吧...




 AL8 Forum © All rights reserved.
頂部
 kafai2407
 0061721
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1081

精華: 0

積分: 2780 點

現金: 24 元

存款: 7316 元

閱讀權限: 70

註冊: 2006-12-22

來自: 某一條河

狀態: 離線
 
發表於 2007-9-2 18:51  資料  個人空間  短消息  加為好友 
有冇得支援埋gif




 AL8 Forum © All rights reserved.
頂部
 rootlau
 0039549
Rank: 1
點擊查看 rootlau 的詳細資料

頭銜: Newbie

帖子: 12

精華: 0

積分: 140 點

現金: 98 元

存款: 0 元

閱讀權限: 10

註冊: 2006-2-3

來自: Internet

狀態: 離線
 
發表於 2007-9-4 12:04  資料  個人空間  主頁 短消息  加為好友 
覺得有些少慢,有冇方法可以加快些少?

係咪本身 d 圖太大定係其他問題?




Root Lau
http://matsutakako.org
 AL8 Forum © All rights reserved.
頂部
聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2010-9-3 15:35
Processed in 0.041247 second(s), 9 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.