AL8 Forum
   登錄註冊幫助


標題: [D5.5] HONG KONG KISS - HKiss [HOME模板] By ChristopheR
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237

精華: 0

積分: 2870 點

現金: 40 元

存款: 0 元

閱讀權限: 20

註冊: 2007-5-26

來自: Hong Kong

狀態: 離線
 
發表於 2007-10-1 18:30  資料  個人空間  短消息  加為好友 
HONG KONG KISS - HKiss [HOME模板] By ChristopheR

HONG KONG KISS - HKiss [HOME模板] By ChristopheR - http://HKiss.net

安裝難度: 新手不建議安裝

解壓密碼: hkiss

技術支援: http://HKiss.net
(我會更快回答你們的問題)



:: 演示 ::




:: 使用方法 ::

修改 forumdisplay.php , index.php

forumdisplay.php





$discuz_action = 2;



下加



$boardhitthreads = '';
$query = $db->query("SELECT tid,subject,lastpost FROM cdb_threads where fid='$fid' ORDER BY views DESC LIMIT 0, 10");
while($thread = $db->fetch_array($query)) {
        $thread[subject] = cutstr($thread[subject], 22);
        $boardhitthreads.="<DIV>  ﹒<a href='viewthread.php?tid=$thread[tid]'>$thread[subject]</A></DIV>";
}



到這步驟 , 請更新援存!!

index.php





require_once DISCUZ_ROOT.'./include/forum.func.php';



下加



require_once DISCUZ_ROOT.'./include/misc.func.php';







$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;



下加



//---------------hack Meminfo start
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 6.0")) {
                $visitor_browser = "Internet Explorer 6.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.5")) {
                $visitor_browser = "Internet Explorer 5.5";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.0")) {
                $visitor_browser = "Internet Explorer 5.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 4.01")) {
                $visitor_browser = "Internet Explorer 4.01";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NetCaptor")) {
                $visitor_browser = "NetCaptor";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Netscape")) {
                $visitor_browser = "Netscape";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Lynx")) {
                $visitor_browser = "Lynx";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Opera")) {
                $visitor_browser = "Opera";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Konqueror")) {
                $visitor_browser = "Konqueror";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mozilla")) {
                $visitor_browser = "Mozilla";
        } else {
                $visitor_browser = "其它";
        }
//上面的是瀏覽器//
        if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.1")) {
                $visitor_os = "Windows XP";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.2")) {
                $visitor_os = "Windows Server 2003";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5")) {
                $visitor_os = "Windows 2000";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "4.9")) {
                $visitor_os = "Windows ME";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 4")) {
                $visitor_os = "Windows NT 4.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "98")) {
                $visitor_os = "Windows 98";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "95")) {
                $visitor_os = "Windows 95";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mac")) {
                $visitor_os = "Mac";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Linux")) {
                $visitor_os = "Linux";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Unix")) {
                $visitor_os = "Unix";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "FreeBSD")) {
                $visitor_os = "FreeBSD";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "SunOS")) {
                $visitor_os = "SunOS";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "BeOS")) {
                $visitor_os = "BeOS";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "OS/2")) {
                $visitor_os = "OS/2";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "PC")) {
                $visitor_os = "Macintosh";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "AIX")) {
                $visitor_os = "AIX";
        } else {
                $visitor_os = "其他";
        }

        $mem_home = convertip($onlineip, $datadir = "./");
//info//
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//新貼//
$hack_cut_str =16; //修改標題顯示字數
$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, 10");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = $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 = 16; //修改標題顯示字數
$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, 10");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = $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;
}
//回覆//



5.5



$topiclist = isset($qihoo_links['topics']) ? $qihoo_links['topics'] : '';



下加



//社區公告

if($_DCACHE['announcements']){
       foreach ($_DCACHE['announcements'] as $notice_B) {
              $notice.="  <img src='images/maxjay_free_meili/dot.gif' border='0' align='absmiddle'> <a href='announcement.php?id=$notice_B[id]#$notice_B[id]'>".cutstr($notice_B[subject], 30)."</a><br />";
       }
}else{
       $notice='最近沒有論壇公告';
}







include template('discuz');



改為



include template('hkiss_home');



最後 , 更新援存 , 完成 !!

:: 注意事項 ::

1. 建議先找一個比較配合HOME模板的論壇風格 ,

2. 下載附件檔案 HKiss_home模樣+home圖案+pic程式完整包.rar ,

3. 開啟 images 檔 , 把檔內圖片放到你現用的風格圖片檔內 ,

4. 把 hkiss_home.htm 檔 , 放到 /templates/default 內 ,

5. 再把 pic.php 檔 , 放到論壇根目錄 , 完成!!


6. 使用 pic.php 時 , 請確保論壇上有附件圖片 , 否則會出現空白情況 !!



HKiss_home模樣+home圖案+pic程式完整包.rar

[ 本帖最後由 ChristopheR 於 2007-10-12 12:21 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 街舞小子
 0039118
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 街舞小子 的詳細資料

頭銜: Lord

帖子: 470

精華: 0

積分: 5100 點

現金: 80 元

存款: 0 元

閱讀權限: 25

註冊: 2006-1-23

狀態: 離線
 
發表於 2007-10-1 19:05  資料  個人空間  短消息  加為好友 
死圖
搞搞佢




 AL8 Forum © All rights reserved.
頂部
 草kei
 0085958
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 121

精華: 0

積分: 1350 點

現金: 100 元

存款: 0 元

閱讀權限: 20

註冊: 2007-9-1

狀態: 離線
 
發表於 2007-10-1 19:05  資料  個人空間  短消息  加為好友 
死圖 死line @@ 睇唔到wo~~




 AL8 Forum © All rights reserved.
頂部
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237

精華: 0

積分: 2870 點

現金: 40 元

存款: 0 元

閱讀權限: 20

註冊: 2007-5-26

來自: Hong Kong

狀態: 離線
 
發表於 2007-10-1 19:11  資料  個人空間  短消息  加為好友 


QUOTE:
原帖由 草kei 於 2007-10-1 19:05 發表
死圖 死line @@ 睇唔到wo~~

我用 思球嘜 個個上載系統上載..  
死圖要問佢.. 但係以家冇事= =




 AL8 Forum © All rights reserved.
頂部
 B_Chong
 0037461
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 2240

精華: 0

積分: 13830 點

現金: 8235 元

存款: 0 元

閱讀權限: 70

註冊: 2005-12-24

狀態: 離線
 
發表於 2007-10-2 01:13  資料  個人空間  短消息  加為好友 
知唔知點樣整 HOME頁 同 原版 互換呀??
我要有呢樣野先裝得HOME頁呢...




 AL8 Forum © All rights reserved.
頂部
 kotoka
 0025298
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: K T K

自述: +.+

帖子: 2757

精華: 0

積分: 15654 點

現金: 481 元

存款: 11794 元

閱讀權限: 70

註冊: 2005-7-2

來自: YaMaZaK ...

狀態: 離線
 
發表於 2007-10-2 14:32  資料  個人空間  主頁 短消息  加為好友  QQ ICQ 狀態
我想知論壇列表果度點搞好~~




 AL8 Forum © All rights reserved.
頂部
 小馬
 0016673
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 小馬 的詳細資料

頭銜: Lord

帖子: 356

精華: 0

積分: 4390 點

現金: 11 元

存款: 0 元

閱讀權限: 25

註冊: 2005-2-16

來自: 3G 動漫論壇

狀態: 離線
 
發表於 2007-10-3 12:48  資料  個人空間  主頁 短消息  加為好友 
是否一定先安裝 AL8-AIR風格才可以安裝?




http://www.3g-ani.net
非常歡迎你
 AL8 Forum © All rights reserved.
頂部
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237

精華: 0

積分: 2870 點

現金: 40 元

存款: 0 元

閱讀權限: 20

註冊: 2007-5-26

來自: Hong Kong

狀態: 離線
 
發表於 2007-10-3 13:00  資料  個人空間  短消息  加為好友 


QUOTE:
原帖由 小馬 於 2007-10-3 12:48 發表
是否一定先安裝 AL8-AIR風格才可以安裝?

不一定..  但你使用AIR比較配合home模板




 AL8 Forum © All rights reserved.
頂部
 ltk0020
 0021002
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 ltk0020 的詳細資料

頭銜: Lord

帖子: 487

精華: 0

積分: 6340 點

現金: 0 元

存款: 279 元

閱讀權限: 25

註冊: 2005-5-11

狀態: 離線
 
發表於 2007-10-3 13:43  資料  個人空間  短消息  加為好友 
真係幾靚wo,但係我前兩日裝左火狐,支持下先

不過仍然係有不完善既地方,d區要自己手動改

[ 本帖最後由 ltk0020 於 2007-10-3 14:48 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237

精華: 0

積分: 2870 點

現金: 40 元

存款: 0 元

閱讀權限: 20

註冊: 2007-5-26

來自: Hong Kong

狀態: 離線
 
發表於 2007-10-3 17:14  資料  個人空間  短消息  加為好友 


QUOTE:
原帖由 ltk0020 於 2007-10-3 13:43 發表
真係幾靚wo,但係我前兩日裝左火狐,支持下先
不過仍然係有不完善既地方,d區要自己手動改

版區唔係人人一樣.. 當然要自己改..




 AL8 Forum © All rights reserved.
頂部
 ltk0020
 0021002
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 ltk0020 的詳細資料

頭銜: Lord

帖子: 487

精華: 0

積分: 6340 點

現金: 0 元

存款: 279 元

閱讀權限: 25

註冊: 2005-5-11

狀態: 離線
 
發表於 2007-10-3 20:41  資料  個人空間  短消息  加為好友 
所以係一個玩死人既缺點




 AL8 Forum © All rights reserved.
頂部
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237

精華: 0

積分: 2870 點

現金: 40 元

存款: 0 元

閱讀權限: 20

註冊: 2007-5-26

來自: Hong Kong

狀態: 離線
 
發表於 2007-10-3 23:23  資料  個人空間  短消息  加為好友 
#1 已加入詳細說明..  

如安裝失敗的請跟著方法做..




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

頭銜: Forum Legend

帖子: 1739

精華: 0

積分: 12639 點

現金: 1589 元

存款: 1424 元

閱讀權限: 70

註冊: 2007-8-10

狀態: 離線
 
發表於 2007-10-4 12:11  資料  個人空間  短消息  加為好友 
正就幾正  

但點開返個頁底Processed in 0.069631 second(s), 8 queries 出黎?

(後台開左冇反應喎)




 AL8 Forum © All rights reserved.
頂部
 ltk0020
 0021002
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 ltk0020 的詳細資料

頭銜: Lord

帖子: 487

精華: 0

積分: 6340 點

現金: 0 元

存款: 279 元

閱讀權限: 25

註冊: 2005-5-11

狀態: 離線
 
發表於 2007-10-4 15:54  資料  個人空間  短消息  加為好友 
footer個頁野? [temxxx footer]




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

頭銜: Forum Legend

帖子: 1739

精華: 0

積分: 12639 點

現金: 1589 元

存款: 1424 元

閱讀權限: 70

註冊: 2007-8-10

狀態: 離線
 
發表於 2007-10-4 16:03  資料  個人空間  短消息  加為好友 
回覆 #14 ltk0020 的帖子

呢個野改到暈@@

不過排得好過火弧(個人覺得)




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

頭銜: Forum Legend

帖子: 1739

精華: 0

積分: 12639 點

現金: 1589 元

存款: 1424 元

閱讀權限: 70

註冊: 2007-8-10

狀態: 離線
 
發表於 2007-10-4 18:47  資料  個人空間  短消息  加為好友 
今日生日和 在線用戶 有問題

原因不可以單獨的顯示 在線用戶

今日生日的開關也是有error的

確定完畢  收工




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

頭銜: Forum Legend

帖子: 1739

精華: 0

積分: 12639 點

現金: 1589 元

存款: 1424 元

閱讀權限: 70

註冊: 2007-8-10

狀態: 離線
 
發表於 2007-10-4 19:31  資料  個人空間  短消息  加為好友 
送上顯示圖一張

[attach]52023[/attach]



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



 AL8 Forum © All rights reserved.
頂部
 ChristopheR
 0077493
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 237