標題: [D6.0] 仿AL8首頁四格 For 6.0
 wai312
 0061321
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 阿偉

自述: UID: 0061321

帖子: 1801

精華: 0

積分: 110 點

現金: 0 元

存款: 17475 元

閱讀權限: 70

註冊: 2006-12-18

來自: Hong Kong

狀態: 在線
 
發表於 2007-9-2 15:30  資料  個人空間  短消息  加為好友 
仿AL8首頁四格 For 6.0

插件名稱:AL8首頁四格 For 6.0
適合版本:Discuz 6.0
作者:不明
演示:http://1314fun.coms.hk/
修改文件:index.php,discuz.htm
難度:容易

1.打開index.php


require_once './include/common.inc.php';


下面加:

require_once './include/userinfo.inc.php';




$discuz_action = 1;


下面加上

$seccodecheck = substr(sprintf('%05b', $seccodestatus), -2, 1);




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


在下面加上

//新貼//
$hack_cut_str = 36; //修改標題顯示字數
$new_post_threadlist = array();
$nthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$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['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 = 36; //修改標題顯示字數
$new_reply_threadlist = array();
$rthread = array();
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
$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['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;
}
//回覆//
$today  = mktime (0,0,0,date("m")  ,date("d"),date("Y"));
$build_date = mktime (0,0,0,11,20,2005);//請修改後面的三個數字,分別代表你論壇運行第一天的月,日,年。$build_days = (int)(($today-$build_date)/(24*3600));




'forumlinks', 'birthdays', 'supe_updateusers'


後面加

, 'foruminfo'


2.修改 discuz.htm


<div id="foruminfo">
        <div id="userinfo">
                <div id="nav">
                        <!--{if $supe['status']}--><a href="$supe[siteurl]" target="_blank">$supe['sitename']</a> - <!--{/if}-->
                        <!--{if $gid || !$discuz_uid}--><a href="$indexname">$bbname</a> <!--{else}--><a href="space.php?action=viewpro&uid=$discuz_uid" class="dropmenu" id="creditlist" onmouseover="showMenu(this.id)">$discuz_user</a> <!--{/if}-->
                        <!--{if $discuz_uid}-->
                                <!--{if $supe['status'] && $xspacestatus}-->
                                        - <a href="$supe[siteurl]/?uid/$discuz_uid" target="_blank">{lang space}</a>
                                <!--{elseif $spacestatus}-->
                                        - <a href="space.php?uid=$discuz_uid" target="_blank">{lang space}</a>
                                <!--{/if}-->
                                <!--{if $supe['status'] && !$xspacestatus}-->
                                        - <a href="$supe[siteurl]/?uid/$discuz_uid" target="_blank">{lang space_upgrade_space}</a>
                                <!--{/if}-->
                        <!--{/if}-->
                </div>
                <p>
                <!--{if $discuz_uid}-->
                        <!--{if $allowinvisible}-->{lang online_status}:
                        <span id="loginstatus"><!--{if !empty($invisible)}--><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_invisible_mode}</a><!--{else}--><a href="member.php?action=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');doane(event);">{lang login_normal_mode}</a><!--{/if}--></span>,
                        <!--{/if}-->
                        {lang your_lastvisit}: <em>$lastvisittime</em>,
                        <a href="search.php?srchfrom=$newthreads&searchsubmit=yes">{lang show_newthreads}</a> | <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)">{lang mark_read}</a>
                <!--{else}-->
                        <form id="loginform" method="post" name="login" action="logging.php?action=login&loginsubmit=true">
                                <input type="hidden" name="formhash" value="{FORMHASH}" />
                                <input type="hidden" name="cookietime" value="2592000" />
                                <input type="text" id="username" name="username" size="15" maxlength="40" tabindex="1" value="{lang username}/{lang uid}" onclick="this.value = ''" />
                                <input type="password" id="password" name="password" size="10" tabindex="2" onkeypress="if((event.keyCode ? event.keyCode : event.charCode) == 13) $('loginform').submit()" />
                                <button name="userlogin" type="submit" value="true">{lang login}</button>
                        </form>
                <!--{/if}-->
                </p>
        </div>

        <div id="forumstats">
                <p>
                        {lang index_today}: <em>$todayposts</em> , {lang index_yesterday}: <em>$postdata[0]</em> , {lang index_maxday}: <em>$postdata[1]</em> |
                        <a href="digest.php">{lang digest}</a>
                        <!--{if $rssstatus}--><a href="rss.php?auth=$rssauth" title="{lang rss_subscribe_all}" target="_blank"><img src="images/common/xml.gif" alt="{lang rss_subscribe_all}" /></a><!--{/if}-->
                </p>
                <p>{lang index_threads}: <em>$threads</em>, {lang index_posts}: <em>$posts</em>, {lang index_members}: <em>$totalmembers</em>, {lang welcome_newmember} <cite><a href="space.php?username=$memberenc">$lastmember</a></cite></p>
        </div>
</div>

<!--{if empty($gid) && $announcements}-->
        <div id="announcement" onmouseover="if(!anncount) {clearTimeout(annst);annst = 0}" onmouseout="if(!annst) annst = setTimeout('announcementScroll()', anndelay);">
                <div id="announcementbody"><ul>$announcements</ul></div>
        </div>
        <script type="text/javascript">
                var anndelay = 3000;
                var anncount = 0;var annheight = 36;var annst = 0;
                function announcementScroll() {
                        if(!annst) {
                                $('announcementbody').innerHTML += '<br style="clear: both"/>' + $('announcementbody').innerHTML;$('announcementbody').scrollTop = 0;
                                if($('announcementbody').scrollHeight > annheight * 2) {
                                        annst = setTimeout('announcementScroll()', anndelay);
                                } else {
                                        $('announcement').onmouseover = $('announcement').onmouseout = null;
                                }
                                return;
                        }
                        if(anncount == annheight) {
                                if($('announcementbody').scrollHeight - annheight <= $('announcementbody').scrollTop) {
                                        $('announcementbody').scrollTop = $('announcementbody').scrollHeight / 2 - annheight;
                                }
                                anncount = 0;annst = setTimeout('announcementScroll()', anndelay);
                        } else {
                                $('announcementbody').scrollTop++;anncount++;annst = setTimeout('announcementScroll()', 10);
                        }
                }
                announcementScroll();
        </script>
<!--{/if}-->


改為

<br>
<div style="clear: both; margin-top: 5px">
{template hot_topics}
</div>
<!--{if !empty($newpmexists) || $announcepm}-->
        <div style="clear: both; margin-top: 5px" id="pmprompt">
        {template pmprompt}
        </div>
<!--{/if}-->



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



 AL8 Forum © All rights reserved.
頂部
 teng
 0009876
 此發帖者已被禁止發言

頭銜: Banned to Post

帖子: 6700

精華: 0

積分: 58751 點

現金: 0 元

存款: 1551 元

閱讀權限: 0

註冊: 2004-10-16

狀態: 離線
 
發表於 2007-9-2 15:33  資料  個人空間  主頁 短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 patrickho
 0044259
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

自述: 特派潛水員

帖子: 1965

精華: 0

積分: 160 點

現金: 0 元

存款: 9417 元

閱讀權限: 70

註冊: 2006-4-29

狀態: 離線
 
發表於 2007-9-2 15:35  資料  個人空間  主頁 短消息  加為好友  添加 patrickho 為MSN好友 通過MSN和 patrickho 交談
回覆 #2 teng 的帖子

緩存唔難改姐
仲有d6.0rc的al8四格都係正式版用度
仲好過呢個




 AL8 Forum © All rights reserved.
頂部
 lsy
 0044411
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5
點擊查看 lsy 的詳細資料

頭銜: King

帖子: 702

精華: 0

積分: 6101 點

現金: 2775 元

存款: 0 元

閱讀權限: 30

註冊: 2006-5-2

狀態: 離線
 
發表於 2007-9-2 15:38  資料  個人空間  短消息  加為好友 
純支持
樓主個插件真係...複雜與簡易中間...
其實index.php可以唔洗改甘多野...
繼續努力




夢想.友堂 有md進!
[url=http://forum.dreamfd.com/?fromuid=1]http://forum.dreamfd.com[/url] <--11+
 AL8 Forum © All rights reserved.
頂部
 man15106
 0058799
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 man15106 的詳細資料

頭銜: Lord

帖子: 376

精華: 0

積分: 3800 點

現金: 101 元

存款: 0 元

閱讀權限: 25

註冊: 2006-11-24

狀態: 在線
 
發表於 2007-9-2 15:40  資料  個人空間  短消息  加為好友 
Support only..!!





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

頭銜: Lord

帖子: 511

精華: 0

積分: 6826 點

現金: 75 元

存款: 1 元

閱讀權限: 25

註冊: 2006-8-1

狀態: 離線
 
發表於 2007-9-2 15:40  資料  個人空間  短消息  加為好友 
等待研究
目前先用其他...




 AL8 Forum © All rights reserved.
頂部
 teng
 0009876
 此發帖者已被禁止發言

頭銜: Banned to Post

帖子: 6700

精華: 0

積分: 58751 點

現金: 0 元

存款: 1551 元

閱讀權限: 0

註冊: 2004-10-16

狀態: 離線
 
發表於 2007-9-2 15:41  資料  個人空間  主頁 短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 wai312
 0061321
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 阿偉

自述: UID: 0061321

帖子: 1801

精華: 0

積分: 110 點

現金: 0 元

存款: 17475 元

閱讀權限: 70

註冊: 2006-12-18

來自: Hong Kong

狀態: 在線
 
發表於 2007-9-2 15:51  資料  個人空間  短消息  加為好友 




 AL8 Forum © All rights reserved.
頂部
 KeNNyMK
 0057754
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1423

精華: 0

積分: 12467 點

現金: 0 元

存款: 199 元

閱讀權限: 70

註冊: 2006-11-12

狀態: 離線
 
發表於 2007-9-2 15:54  資料  個人空間  短消息  加為好友 
純支持 , 感覺上好似有缺憾 -_____-




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

頭銜: Forum Legend

帖子: 1067

精華: 0

積分: 2580 點

現金: 39 元

存款: 7316 元

閱讀權限: 70

註冊: 2006-12-22

來自: 某一條河

狀態: 離線
 
發表於 2007-9-2 16:18  資料  個人空間  短消息  加為好友 
純支持,,而使用其他




 AL8 Forum © All rights reserved.
頂部
 sohohung
 0045450
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 134

精華: 0

積分: 1500 點

現金: 104 元

存款: 0 元

閱讀權限: 20

註冊: 2006-5-22

來自: HK

狀態: 離線
 
發表於 2007-9-2 20:57  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態 Yahoo!
支持~ 3q~~~




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

頭銜: King

帖子: 874

精華: 0

積分: 7540 點

現金: 0 元

存款: 1735 元

閱讀權限: 30

註冊: 2006-9-17

狀態: 離線
 
發表於 2007-9-2 22:45  資料  個人空間  短消息  加為好友 
十卜一下
不過唔裝
等Eric03發




求支援PHP, MySQL, DA控制台, 冇廣告既免費空間 (最好就本地空間啦)
 AL8 Forum © All rights reserved.
頂部
 hk2apple
 0012184
Rank: 1

頭銜: Newbie

帖子: 30

精華: 0

積分: 3381 點

現金: 0 元

存款: 3575 元

閱讀權限: 10

註冊: 2004-11-26

狀態: 離線
 
發表於 2007-9-3 12:06  資料  個人空間  短消息  加為好友 
要研究一下...支持




 AL8 Forum © All rights reserved.
頂部
 小少風
 0066570
Rank: 3Rank: 3Rank: 3
點擊查看 小少風 的詳細資料

頭銜: Conqueror

帖子: 147

精華: 0

積分: 2080 點

現金: 88 元

存款: 0 元

閱讀權限: 20

註冊: 2007-2-7

狀態: 離線
 
發表於 2007-10-29 08:25  資料  個人空間  短消息  加為好友 
不能使用呀@@"

修改之後還是沒出現= ="




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

頭銜: Forum Legend

暱稱: 阿偉

自述: UID: 0061321

帖子: 1801

精華: 0

積分: 110 點

現金: 0 元

存款: 17475 元

閱讀權限: 70

註冊: 2006-12-18

來自: Hong Kong

狀態: 在線
 
發表於 2007-11-3 13:09  資料  個人空間  短消息  加為好友 
回覆 #14 小少風 的帖子

有更新緩存嗎?




 AL8 Forum © All rights reserved.
頂部
 fancyblue
 0090363
Rank: 1

頭銜: Newbie

帖子: 3

精華: 0

積分: 30 點

現金: 100 元

存款: 0 元

閱讀權限: 10

註冊: 2007-11-1

狀態: 離線
 
發表於 2007-11-18 21:38  資料  個人空間  短消息  加為好友 
請問大大,用完之後
已運行 天
那個天數一直出不來耶
應該如何修改呢?




 AL8 Forum © All rights reserved.
頂部
 ♂源月∮
 0078780
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 213

精華: 0

積分: 2120 點

現金: 288 元

存款: 0 元

閱讀權限: 20

註冊: 2007-6-9

狀態: 離線
 
發表於 2008-1-22 22:29  資料  個人空間  短消息  加為好友  添加 ♂源月∮ 為MSN好友 通過MSN和 ♂源月∮ 交談
檔名係RC1.rar,係咪6.0RC1先可以用??




 AL8 Forum © All rights reserved.
頂部


網頁空間由 I-SERVICES 提供
當前時區 GMT+8, 現在時間是 2008-12-5 20:21