AL8 Forum
   登錄註冊幫助


標題: [分享][修改原創][美化]左右分割
 黑仔
 0006053
Rank: 1
點擊查看 黑仔 的詳細資料

頭銜: Newbie

帖子: 45

精華: 0

積分: 30 點

現金: 18 元

存款: 0 元

閱讀權限: 10

註冊: 2004-8-24

狀態: 離線
 
發表於 2005-3-24 23:37  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態
[分享][修改原創][美化]左右分割

『左右分割』
修改左D...原創者唔知= =||改下人咁囉~~
當增加下D技術~~都係修改下D模版咁
自已覺得咁樣加都唔錯下~~
因為字數限制,請係三樓下載01.txt 加入修改地方。

左邊顯視有(有其他野加可自行修改):

論壇資料(主題數,會員數等等,可自行加減)
快速登錄(未登錄顯視登入畫面)/個人資料 (登入後顯視個人資料,可以自行加減)
快速搜尋(搜尋帖子)
論壇新帖(最新發帖{發帖數顯視多少請自行到index.php修改})
論壇回覆(最新回覆{回覆數顯視多少請自行到index.php修改})
計數器(在線人數,最高紀錄,今日到訪會員)
Google搜尋器(可自行修改或直接刪除都可)
全球排名(可自行修改或直接刪除都可)
聯盟論壇(自動上升式)


演視(左邊): http://3forever.com/discuz/       
請先安裝:銀行(可以唔裝既= =刪左個一行就得架啦)
             今日發帖同昨日發帖(又係可以唔裝既= =刪左個一行就得架啦)


修改頁面: index.php,index.htm


修改index.php
尋找:
require DISCUZ_ROOT.'./include/forum.php';


下面加:
require DISCUZ_ROOT.'./include/misc.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//
//新貼//
$hack_cut_str = 36; //修改標題顯示字數
$new_post_threadlist = array();
$nthread = array();
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or f.viewperm LIKE '%\t$groupid\t%') 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['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
        $new_post_threadlist[] = $nthread;
}
//新貼//
//新回覆
$hack_cut_str = 36; //修改標題顯示字數
$new_reply_threadlist = array();
$rthread = array();
$query = $db->query("SELECT t.*, f.name FROM $table_threads t, $table_forums f WHERE f.password='' AND t.fid<>'$fid' AND (f.viewperm='' or  f.viewperm LIKE '%\t$groupid\t%') 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['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
        $new_reply_threadlist[] = $rthread;
}
//回覆//



如不想修改,可直接使用本站的模版。(大家風格唔同,應該唔岩用)

[ Last edited by 黑仔 on 2005-3-24 at 23:52 ]



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



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

頭銜: Forum Legend

暱稱: Captin

自述: 茶水部低 ...

帖子: 1386

精華: 0

積分: 15588 點

現金: 3294 元

存款: 185750 元

閱讀權限: 70

註冊: 2004-7-9

狀態: 離線
 
發表於 2005-3-24 23:40  資料  個人空間  短消息  加為好友  Yahoo!
支持
可唔可以教埋點改index.htm?




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

頭銜: Newbie

帖子: 45

精華: 0

積分: 30 點

現金: 18 元

存款: 0 元

閱讀權限: 10

註冊: 2004-8-24

狀態: 離線
 
發表於 2005-3-24 23:40  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態
因為字數限制,我post唔到加個到,請自行下載,01.txt


以下可自行決定刪除或不刪除
----------------------------------------------------

刪除頂部本身的論壇資料

<table border="0" cellspacing="0" cellpadding="0" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center">
  <tr>
    <td> <table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
        <tr bgcolor="{ALTBG1}" align="center">
          <td align="center"><table cellspacing="{TABLESPACE}" cellpadding="0" border="0" width="100%" align="center">
              <tr class="mediumtxt">
                <td > <a href="index.php"><strong>$bbname</strong></a><strong>
                  $navigation</strong><br>
                  {lang index_your} {lang credit_title} <span class="bold">$credit</span>
                  {lang credit_unit} / {lang index_status}: <span class="bold">$grouptitle</span>
                  <!--{if $invisible}-->
                  / {lang login_invisible_mode}
                  <!--{/if}-->
<br>{lang timenow} $currenttime, {lang your_lastvisit} $lastvisittime</td>
<td align="right" nowrap valign="bottom">今日貼數:<span class="bold">$_DCACHE['todaypost'][1]</span> /昨日貼數:<span class="bold">$_DCACHE['yestodaypost'][1]</span><br>
{lang total} <span class="bold">$threads</span> {lang index_threads}
/ <span class="bold">$posts</span> {lang index_posts} / <span class="bold">$totalmembers</span>
{lang index_members}<br><a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a> |
<!--{if $discuz_uid}--><a href="search.php?srchuid=$discuz_uid&srchfrom=604800&searchsubmit=yes">{lang show_mytopics}</a> | <!--{/if}-->
<a href="digest.php">{lang digest}</a> | <a href="member.php?action=markread">{lang mark_read}</a> {lang welcome_newmember} <a href="viewpro.php?username=$memberenc"><span class="bold">$lastmember</span></a><br>
</td></tr></table></td></tr></table></td>
</tr></table>
<br>


刪除原先的論壇聯盟(因為先前我裝左滾軸式,可能同大家唔同)
<!--{if empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus)}-->
<!--{if empty($forumlist)}--><br><br><!--{else}--></table></td></tr></table><br><br><!--{/if}-->
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td bgcolor="{BORDERCOLOR}">
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
<!--{/if}-->
<!--{if empty($gid) && $_DCACHE['forumlinks']}-->
<tr><td colspan="6" class="header"><table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
<tr><td>
<img src="{IMGDIR}/indexicon.gif" align="absmiddle"> <font color="white"><span class="bold">{lang  board_links}</span>&nbsp;&nbsp;&nbsp;<span class="smalltext">[<a href="links.php" style="color: {HEADERTEXT}" target="blank">詳細資料</a>]</span></font>
<td align="right"><span style="color:{HEADERTEXT}">滾動方向 [</span>
<span style="font-family:webdings;font-size:12px;color:{HEADERTEXT}">
<font onMouseOver="if(document.all.lmforum.direction ==  'left')document.all.lmforum.scrollAmount=6;" onMouseOut="document.all.lmforum.scrollAmount=4;"  onMouseUp="document.all.lmforum.scrollAmount=6;"  onMouseDown="document.all.lmforum.direction='left';document.all.lmforum.scrollAmount=10;"  style="cursor:hand;"><span title="向左滾動">7</span></font>
<font onClick="stop=0;document.all.lmforum.start();" style="cursor:hand;"><span title="開 始">4</span></font>
<font onClick="stop=1;document.all.lmforum.stop();" style="cursor:hand;"><span title="暫 停"><</span></font>
<font onMouseOver="if(document.all.lmforum.direction ==  'right')document.all.lmforum.scrollAmount=6;" onMouseOut="document.all.lmforum.scrollAmount=4;"  onMouseUp="document.all.lmforum.scrollAmount=6;"  onMouseDown="document.all.lmforum.direction='right';document.all.lmforum.scrollAmount=10;"  style="cursor:hand;"><span title="向右滾動">8</span></font></span>
<span style="color:{HEADERTEXT}"> ] </span></span>
</td></tr></table>


</td></tr>
<tr><td bgcolor="{ALTBG1}" width="5%" align="center" valign="middle"><img src="{IMGDIR}/forumlink.gif"></td>
<td bgcolor="{ALTBG2}" colspan=5>
<marquee scrollamount=4 name="lmforum" id="lmforum" onmouseover="document.all.lmforum.stop();" onmouseout="document.all.lmforum.start();">
<!--{loop $_DCACHE['forumlinks'] $flink}-->
<!--{if $flink['type'] == 1}-->
$flink[content]
<!--{else}-->
$flink[content]
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</marquee></td></tr>
<!--{if empty($gid)}-->


[ Last edited by 黑仔 on 2005-3-25 at 20:37 ]



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



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

頭銜: Newbie

帖子: 45

精華: 0

積分: 30 點

現金: 18 元

存款: 0 元

閱讀權限: 10

註冊: 2004-8-24

狀態: 離線
 
發表於 2005-3-24 23:42  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態
QUOTE:
引用由 於 2005-3-24 11:40 PM 發出的帖子, 內容為
支持
可唔可以教埋點改index.htm?


sor,因為頭先字數限制, post唔晒
dowload  01.txt有晒架啦




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1401

精華: 0

積分: 12096 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2005-3-24 23:56  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
文字??



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



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

頭銜: Forum Legend

暱稱: Captin

自述: 茶水部低 ...

帖子: 1386

精華: 0

積分: 15588 點

現金: 3294 元

存款: 185750 元

閱讀權限: 70

註冊: 2004-7-9

狀態: 離線
 
發表於 2005-3-25 00:02  資料  個人空間  短消息  加為好友  Yahoo!
QUOTE:
引用由 黑仔 於 2005-3-24 11:42 PM 發出的帖子, 內容為
sor,因為頭先字數限制, post唔晒
dowload  01.txt有晒架啦


唔該晒,麻煩晒!




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

頭銜: Newbie

帖子: 45

精華: 0

積分: 30 點

現金: 18 元

存款: 0 元

閱讀權限: 10

註冊: 2004-8-24

狀態: 離線
 
發表於 2005-3-25 00:02  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態
QUOTE:
引用由 ysk 於 2005-3-24 11:56 PM 發出的帖子, 內容為
文字??


修改 /include/cache.php

找:
                         $forumlink['content'] = "<a href=\"$flink[url]\" target=\"_blank\"><span class=\"bold\">$flink[name]</span></a><br>$flink[note]";


更換為:
                        $forumlink['content'] = "<a href=\"$flink[url]\" target=\"_blank\"><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink[name]
$flink[note]\"></a> &nbsp;";


在後台更新緩存,應該係咁樣~~

[ Last edited by 黑仔 on 2005-3-25 at 00:04 ]




 AL8 Forum © All rights reserved.
頂部
 MAXYAM
 0010101
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 451

精華: 1

積分: 12193 點

現金: 6771 元

存款: 0 元

閱讀權限: 25

註冊: 2004-10-19

狀態: 離線
 
發表於 2005-3-25 11:07  資料  個人空間  短消息  加為好友 




http://hkasd.com/statspng2.php http://hkasd.com/statspng.php
 AL8 Forum © All rights reserved.
頂部
 黑仔
 0006053
Rank: 1
點擊查看 黑仔 的詳細資料

頭銜: Newbie

帖子: 45

精華: 0

積分: 30 點

現金: 18 元

存款: 0 元

閱讀權限: 10

註冊: 2004-8-24

狀態: 離線
 
發表於 2005-3-25 11:48  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態
QUOTE:
引用由 MAXYAM 於 2005-3-25 11:07 AM 發出的帖子, 內容為
有什麼分別???

http://www.alan888.com/Discuz/viewthread.php?tid=23693



清楚好多~
有好多人唔係剩係要個index架嘛
同埋修改左囉




 AL8 Forum © All rights reserved.
頂部
 飛龍
 0016490
Rank: 2Rank: 2

頭銜: Member

帖子: 59

精華: 0

積分: 1339 點

現金: 139 元

存款: 2288 元

閱讀權限: 15

註冊: 2005-2-12

狀態: 離線
 
發表於 2005-3-25 12:35  資料  個人空間  短消息  加為好友  ICQ 狀態
為啥我的論壇會一直縮小的?

http://hkcee.no-ip.org/rickywlk20/




 AL8 Forum © All rights reserved.
頂部
 伏羲
 0012167
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 271

精華: 0

積分: 6145 點

現金: 10 元

存款: 11371 元

閱讀權限: 20

註冊: 2004-11-26

狀態: 離線
 
發表於 2005-3-25 13:59  資料  個人空間  短消息  加為好友 
為何這樣????



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



eVil Book 黑皮書 http://hkvz.com
招募版主及行政人員
 AL8 Forum © All rights reserved.
頂部
 伏羲
 0012167
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 271

精華: 0

積分: 6145 點

現金: 10 元

存款: 11371 元

閱讀權限: 20

註冊: 2004-11-26

狀態: 離線
 
發表於 2005-3-25 13:59  資料  個人空間  短消息  加為好友 
我的index.htm



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



eVil Book 黑皮書 http://hkvz.com
招募版主及行政人員
 AL8 Forum © All rights reserved.
頂部
 伏羲
 0012167
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 271

精華: 0

積分: 6145 點

現金: 10 元

存款: 11371 元

閱讀權限: 20

註冊: 2004-11-26

狀態: 離線
 
發表於 2005-3-26 15:28  資料  個人空間  短消息  加為好友 
推~~~~!




eVil Book 黑皮書 http://hkvz.com
招募版主及行政人員
 AL8 Forum © All rights reserved.
頂部
 huitinlok
 0011789
Rank: 1

頭銜: Newbie

帖子: 16

精華: 0

積分: 209 點

現金: 44 元

存款: 0 元

閱讀權限: 10

註冊: 2004-11-19

狀態: 離線
 
發表於 2005-3-26 18:54  資料  個人空間  短消息  加為好友 
I done@@ thx~




 AL8 Forum © All rights reserved.
頂部
 vinvin6
 0010960
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 136

精華: 0

積分: -530 點

現金: 202 元

存款: 0 元

閱讀權限: 20

註冊: 2004-11-4

狀態: 離線
 
發表於 2005-3-26 21:13  資料  個人空間  短消息  加為好友 
但我的index.htm改過野用你個個咪會冇晒我個d野囉-_-?




 AL8 Forum © All rights reserved.
頂部
 yik_999
 0014583
Rank: 2Rank: 2
點擊查看 yik_999 的詳細資料

頭銜: Member

帖子: 88

精華: 0

積分: 2584 點

現金: 0 元

存款: 11060 元

閱讀權限: 15

註冊: 2005-1-9

狀態: 離線
 
發表於 2005-4-27 15:12  資料  個人空間  短消息  加為好友 
今日貼數:
昨日貼數:
空左..點搞?




 AL8 Forum © All rights reserved.
頂部
 Chiu_hk
 0000237
Rank: 1

頭銜: Newbie

帖子: 39

精華: 0

積分: 1809 點

現金: 45 元

存款: 66 元

閱讀權限: 10

註冊: 2004-1-28

來自: Hong Kong

狀態: 離線
 
發表於 2005-5-1 11:53  資料  個人空間  主頁 短消息  加為好友 
QUOTE:
引用由 黑仔 於 2005-3-25 12:02 AM 發出的帖子, 內容為
修改 /include/cache.php

找:
[code]                         $forumlink['content'] = "<a href=\"$flink[url]\" target=\"_blank\"><span class=\"bold\"> ...


can't use .Eorr!
but i want logo 滾軸!

[ Last edited by Chiu_hk on 2005-5-1 at 11:55 ]




 AL8 Forum © All rights reserved.
頂部
 kenkwan
 0015981