AL8 Forum
   登錄註冊幫助


標題: [D5.5] 代碼問[檔案與我一樣的回一下]●
 張威杰
 0088053
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 483

精華: 0

積分: 5506 點

現金: 85 元

存款: 0 元

閱讀權限: 10

註冊: 2007-9-30

狀態: 離線
 
發表於 2008-9-16 14:00  資料  個人空間  短消息  加為好友 
代碼問[檔案與我一樣的回一下]●

http://www.alan888.com/Discuz/vi ... BD%A7i%2B%BAu%B0%CA

在index.php部份的代碼如下


if($_DCACHE['announcements']) {
        foreach($_DCACHE['announcements'] as $announcement) {
            if(empty($announcement['redirect'])) {
                $announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'"><span class="bold">'.$announcement['subject'].'</span> '.
                    '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
            } else {
                $announcements .= $space.'<a href="'.$announcement['message'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
                    '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
            }
            $space = '&nbsp; &nbsp; &nbsp; &nbsp;';
        }
    }


如何與實際找的代碼不同呢

檔案代碼是
if($_DCACHE['announcements']) {
                $readapmids = !empty($_DCOOKIE['readapmid']) ? explode('D', $_DCOOKIE['readapmid']) : array();
                foreach($_DCACHE['announcements'] as $announcement) {
                        if(empty($announcement['groups']) || in_array($groupid, $announcement['groups'])) {
                                if(empty($announcement['type'])) {
                                        $announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'"><span class="bold">'.$announcement['subject'].'</span> '.
                                                '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
                                } elseif($announcement['type'] == 1) {
                                        $announcements .= $space.'<a href="'.$announcement['message'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
                                                '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
                                } elseif($discuz_uid && $announcement['type'] == 2 && !in_array($announcement['id'], $readapmids)) {
                                        $announcement['announce'] = TRUE;
                                        $pmlist[] = $announcement;
                                        $announcepm++;
                                }
                                $space = '&nbsp; &nbsp; &nbsp; &nbsp;';
                        }
                }


[ 本帖最後由 張威杰 於 2008-9-16 19:08 編輯 ]




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

頭銜: Lord

帖子: 498

精華: 0

積分: 6170 點

現金: 100 元

存款: 0 元

閱讀權限: 25

註冊: 2008-3-24

來自: Mars

狀態: 離線
 
發表於 2008-9-16 15:30  資料  個人空間  主頁 短消息  加為好友 
index.php你有修改過嗎?




 AL8 Forum © All rights reserved.
頂部
 張威杰
 0088053
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 483

精華: 0

積分: 5506 點

現金: 85 元

存款: 0 元

閱讀權限: 10

註冊: 2007-9-30

狀態: 離線
 
發表於 2008-9-16 15:41  資料  個人空間  短消息  加為好友 
沒有哦  我還有去找原檔的




 AL8 Forum © All rights reserved.
頂部
 張威杰
 0088053
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 483

精華: 0

積分: 5506 點

現金: 85 元

存款: 0 元

閱讀權限: 10

註冊: 2007-9-30

狀態: 離線
 
發表於 2008-9-16 19:09  資料  個人空間  短消息  加為好友 
檔案與我一樣的回一下




 AL8 Forum © All rights reserved.
頂部
 張威杰
 0088053
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 483

精華: 0

積分: 5506 點

現金: 85 元

存款: 0 元

閱讀權限: 10

註冊: 2007-9-30

狀態: 離線
 
發表於 2008-9-16 22:00  資料  個人空間  短消息  加為好友 
= =想罵人




 AL8 Forum © All rights reserved.
頂部
 烈魂
 0105950
Rank: 3Rank: 3Rank: 3
點擊查看 烈魂 的詳細資料

頭銜: Conqueror

帖子: 228

精華: 0

積分: 2580 點

現金: 70 元

存款: 0 元

閱讀權限: 20

註冊: 2008-8-2

來自: HK

狀態: 離線
 
發表於 2008-9-17 01:37  資料  個人空間  主頁 短消息  加為好友  添加 烈魂 為MSN好友 通過MSN和 烈魂 交談
可能因為5.5曾經更新過

因為他的發表於 2007-12-15 18:16




 AL8 Forum © All rights reserved.
頂部
 張威杰
 0088053
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 483

精華: 0

積分: 5506 點

現金: 85 元

存款: 0 元

閱讀權限: 10

註冊: 2007-9-30

狀態: 離線
 
發表於 2008-9-17 11:05  資料  個人空間  短消息  加為好友 
回覆 #6 烈魂 的帖子

那此插件修改就無法修了?

因公告想改6.0之方法


搜查都找不到


依然都是這個問題




 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-12-4 06:52
Processed in 0.079270 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.