AL8 Forum
   登錄註冊幫助


標題: [D6.0] [精心傑作]滾動聯盟論壇+方向選擇+首頁伸縮圖標 for 6.0
 ericb001
 0052817
Rank: 5Rank: 5Rank: 5Rank: 5Rank: 5

頭銜: King

帖子: 862

精華: 0

積分: 7420 點

現金: 0 元

存款: 1735 元

閱讀權限: 30

註冊: 2006-9-17

狀態: 離線
 
發表於 2007-8-30 22:18  資料  個人空間  短消息  加為好友 
[精心傑作]滾動聯盟論壇+方向選擇+首頁伸縮圖標 for 6.0

修改自 : http://alan888.com/Discuz/thread-104441-1-1.html


適用版本: Discuz! 6.0
作者: alan888
修正:deadxp
6.0版:ericb
演示: http://hkec.coms.hk/
修改文件: include/cache.func.php, discuz.htm


此帖是根據 Discuz4.1 插件 "用滾動圖示顯示聯盟論壇" 修正及使用在 Discuz 5.0 上
再根據5.0 修改用於 Discuz 5.5上
再根據5.5 修改用於 Discuz 6.0上

本插件暫時未能支援FireFox的瀏覽器

1. 修改 include/cache.func.php

if($flink['description']) {
                                                $forumlink['content'] = "<h5><a href=\"$flink[url]\" target=\"_blank\">$flink[name]</a></h5><p>$flink[description]</p>";
                                                if($flink['logo']) {
                                                        $forumlink['type'] = 1;
                                                        $forumlink['logo'] = $flink['logo'];
                                                } else {
                                                        $forumlink['type'] = 2;
                                                }
                                                $data[] = $forumlink;
                                        } else {
                                                if($flink['logo']) {
                                                        $tightlink_logo .= "<a href=\"$flink[url]\" target=\"_blank\"><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink[name]\" /></a> ";
                                                } else {
                                                        $tightlink_text .= "<a href=\"$flink[url]\" target=\"_blank\">[$flink[name]]</a> ";
                                                }
                                        }

更換為
if($flink['description']) {
                                                $forumlink['content'] = "<a href=\"$flink[url]\" target=\"_blank\" title=\"$flink[name]\r\n$flink[description]\"><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink[name]\r\n$flink[description]\"></a>";
                                                if($flink['logo']) {
                                                        $forumlink['type'] = 1;
                                                        $forumlink['logo'] = $flink['logo'];
                                                } else {
                                                        $forumlink['type'] = 2;
                                                }
                                                $data[] = $forumlink;
                                        } else {
                                                if($flink['logo']) {
                                                        $tightlink_logo .= "<a href=\"$flink[url]\" target=\"_blank\"><img src=\"$flink[logo]\" border=\"0\" alt=\"$flink[name]\"></a>";
                                                } else {
                                                        $tightlink_text .= "<a href=\"$flink[url]\" target=\"_blank\">$flink[name]></a>";
                                                }
                                        }

2. 後台 -> 更新緩存

3. 修改模板 discuz.htm


<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
        <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" onclick="toggle_collapse('forumlinks');" /></span>
        <h4>{lang board_links}</h4>
        <table summary="{lang board_links}" cellpadding="0" cellspacing="0" style="$collapse[forumlinks]" id="forumlinks">
                <tr>
                        <th style="padding: 0 10px">滾動方向 [<font face="webdings" onMouseOver="if(getElementById(ericb).direction == 'left')getElementById(ericb).scrollAmount=6;" onMouseOut="getElementById(ericb).scrollAmount=4;" onMouseUp="getElementById(ericb).scrollAmount=12;"onMouseDown="getElementById(ericb).direction='left';getElementById(ericb).scrollAmount=10;"> <span style="cursor:pointer;cursor:hand" title="向左滾動">7</span></font> <font face="webdings" onClick="stop=0;getElementById(ericb).start();"><span style="cursor:pointer;cursor:hand" title="開始">4</span></font> <font face="webdings" onClick="stop=1;getElementById(ericb).stop();"><span style="cursor:pointer;cursor:hand" title="暫停"><</span></font> <font face="webdings" onMouseOver="if(getElementById(ericb).direction == 'right') getElementById(ericb).scrollAmount=6;"onMouseOut="getElementById(ericb).scrollAmount=4;" onMouseUp="getElementById(ericb).scrollAmount=12;" onMouseDown="getElementById(ericb).direction='right';getElementById(ericb).scrollAmount=10;"> <span style="cursor:pointer;cursor:hand" title="向右滾動">8</font> ]</th>
                </tr>
                <tr>
                        <td>
                                <marquee scrollamount="5" id="ericb" onmouseover="this.stop();" onmouseout="this.start();">
                                        <!--{loop $_DCACHE['forumlinks'] $flink}-->
                                                $flink[content]
                                        <!--{/loop}-->
                                </marquee>
                        </td>
                </tr>
        </table>
</div>
<!--{/if}-->

更換為
<!--{if $_DCACHE['forumlinks']}-->
<div class="box">
        <span class="headactions"><img id="forumlinks_img" src="{IMGDIR}/$collapseimg[forumlinks]" alt="" onclick="toggle_collapse('forumlinks');" /></span>
        <h4>{lang board_links}</h4>
        <table summary="{lang board_links}" cellpadding="0" cellspacing="0" style="$collapse[forumlinks]" id="forumlinks">
                <tr>
                        <th style="padding: 0 10px">滾動方向 [<font face="webdings" onMouseOver="if(document.all.ericb.direction == 'left')document.all.ericb.scrollAmount=6;" onMouseOut="document.all.ericb.scrollAmount=4;" onMouseUp="document.all.ericb.scrollAmount=12;"onMouseDown="document.all.ericb.direction='left';document.all.ericb.scrollAmount=10;"> <span style="cursor:pointer;cursor:hand" title="向左滾動">7</span></font> <font face="webdings" onClick="stop=0;document.all.ericb.start();"><span style="cursor:pointer;cursor:hand" title="開始">4</span></font> <font face="webdings" onClick="stop=1;document.all.ericb.stop();"><span style="cursor:pointer;cursor:hand" title="暫停"><</span></font> <font face="webdings" onMouseOver="if(document.all.ericb.direction == 'right') document.all.ericb.scrollAmount=6;"onMouseOut="document.all.ericb.scrollAmount=4;" onMouseUp="document.all.ericb.scrollAmount=12;" onMouseDown="document.all.ericb.direction='right';document.all.ericb.scrollAmount=10;"> <span style="cursor:pointer;cursor:hand" title="向右滾動">8</font> ]</th>
                </tr>
                <tr>
                        <td>
                                <marquee scrollamount="5" id="ericb" name="ericb" onmouseover="this.stop();" onmouseout="this.start();">
                                        <!--{loop $_DCACHE['forumlinks'] $flink}-->
                                                $flink[content]
                                        <!--{/loop}-->
                                </marquee>
                        </td>
                </tr>
        </table>
</div>
<!--{/if}-->


完成


ps:需要填論壇聯盟的文字說明

[ 本帖最後由 ericb001 於 2008-2-2 11:01 編輯 ]




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

頭銜: Member

帖子: 51

精華: 0

積分: 910 點

現金: 70 元

存款: 0 元

閱讀權限: 15

註冊: 2007-4-4

狀態: 離線
 
發表於 2007-8-30 22:21  資料  個人空間  短消息  加為好友 
多謝樓主..十卜




 AL8 Forum © All rights reserved.
頂部
 patrickho
 0044259
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

自述: 特派潛水員

帖子: 1965

精華: 0

積分: 160 點

現金: 0 元

存款: 9417 元

閱讀權限: 70

註冊: 2006-4-29

狀態: 離線
 
發表於 2007-8-30 22:21  資料  個人空間  主頁 短消息  加為好友  添加 patrickho 為MSN好友 通過MSN和 patrickho 交談
純喪支持
即改




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

頭銜: King

帖子: 618

精華: 0

積分: 6250 點

現金: 146 元

存款: 0 元

閱讀權限: 30

註冊: 2006-6-18

狀態: 離線
 
發表於 2007-8-30 22:37  資料  個人空間  短消息  加為好友 
支持!!!!!!!!!!
裝左啦!!!!!!




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

頭銜: Forum Legend

帖子: 1049

精華: 0

積分: 7210 點

現金: 566 元

存款: 3832 元

閱讀權限: 70

註冊: 2007-1-3

狀態: 離線
 
發表於 2007-8-30 23:01  資料  個人空間  主頁 短消息  加為好友 
有幾精心?
來頂一下囉




 AL8 Forum © All rights reserved.
頂部
 藍天白雲
 0048423
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 229

精華: 0

積分: 130 點

現金: 881 元

存款: 0 元

閱讀權限: 20

註冊: 2006-7-21

來自: 銀河系之中

狀態: 離線
 
發表於 2007-8-31 17:24  資料  個人空間  主頁 短消息  加為好友  添加 藍天白雲 為MSN好友 通過MSN和 藍天白雲 交談 ICQ 狀態 Yahoo!
非常實用
用上了

十分支持




http://www.stardiscuss.net/
 AL8 Forum © All rights reserved.
頂部
 snc.calvin
 0065177
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 snc.calvin 的詳細資料

頭銜: Lord

帖子: 489

精華: 0

積分: 770 點

現金: 516 元

存款: 1749 元

閱讀權限: 25

註冊: 2007-1-24

來自: 流行都會 ...

狀態: 離線
 
發表於 2007-8-31 18:13  資料  個人空間  主頁 短消息  加為好友  添加 snc.calvin 為MSN好友 通過MSN和 snc.calvin 交談
支持!終於有人發囉``




 AL8 Forum © All rights reserved.
頂部
 鳳雩晞風
 0033023
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 136

精華: 0

積分: 1900 點

現金: 0 元

存款: 261 元

閱讀權限: 20

註冊: 2005-10-18

狀態: 離線
 
發表於 2007-8-31 20:20  資料  個人空間  短消息  加為好友 
為什麼我安裝上去之後只會顯示
"滾動方向 [ 7 4 <  8 ]"
我用火狐看的,用IE看就沒問題的說。




http://acgpower.twbbs.org/bbs
鳳雩晞風飛揚論壇
 AL8 Forum © All rights reserved.
頂部
 六翅天使
 0049020
Rank: 3Rank: 3Rank: 3
點擊查看 六翅天使 的詳細資料

頭銜: Conqueror

帖子: 242

精華: 0

積分: 2090 點

現金: 618 元

存款: 5 元

閱讀權限: 20

註冊: 2006-7-31

狀態: 離線
 
發表於 2007-8-31 20:29  資料  個人空間  短消息  加為好友 
用ff有問題




From 夢幻星球
 AL8 Forum © All rights reserved.
頂部
 capolock
 0058686
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 capolock 的詳細資料

頭銜: Lord

帖子: 515

精華: 0

積分: 5757 點

現金: 0 元

存款: 0 元

閱讀權限: 25

註冊: 2006-11-23

狀態: 離線
 
發表於 2007-8-31 20:55  資料  個人空間  短消息  加為好友 
已安裝了
多謝




http://vit.nike.tw/index.php
測試帳號UID:2  
測試密碼:123456
 AL8 Forum © All rights reserved.
頂部
 靈魂0
 0071380
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1546

精華: 0

積分: 9530 點

現金: 802 元

存款: 4128 元

閱讀權限: 70

註冊: 2007-3-28

來自: Mega-I

狀態: 離線
 
發表於 2007-9-2 08:23  資料  個人空間  主頁 短消息  加為好友  添加 靈魂0 為MSN好友 通過MSN和 靈魂0 交談
Support! 可惜ff唔支援...




 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 21:03  資料  個人空間  主頁 短消息  加為好友  ICQ 狀態 Yahoo!
正野,多謝哂~




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

頭銜: Banned to Post

帖子: 6707

精華: 0

積分: 58771 點

現金: 0 元

存款: 1551 元

閱讀權限: 0

註冊: 2004-10-16

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

頭銜: Member

帖子: 90

精華: 0

積分: 1340 點

現金: 50 元

存款: 50 元

閱讀權限: 15

註冊: 2007-9-1

狀態: 離線
 
發表於 2007-9-3 16:59  資料  個人空間  短消息  加為好友 
請問這個差件是否要從5.0的開始裝上來?
謝謝




 AL8 Forum © All rights reserved.
頂部
 ab260531
 0069716
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 376

精華: 0

積分: 510 點

現金: 160 元

存款: 2956 元

閱讀權限: 25

註冊: 2007-3-12

狀態: 離線
 
發表於 2007-9-3 18:21  資料  個人空間  短消息  加為好友 
十卜..可惜又係吾十卜ff...




留位更新...
 AL8 Forum © All rights reserved.
頂部
 不懂我是誰
 0068464
 此發帖者帳號尚未激活

頭銜: Inactive Member

帖子: 1305

精華: 0

積分: 8724 點

現金: 108 元

存款: 7564 元

閱讀權限: 10

註冊: 2007-2-26

狀態: 離線
 
發表於 2007-9-3 18:43  資料  個人空間  短消息  加為好友 
支持下 ....




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

頭銜: Forum Legend

暱稱: 已激活的會員

自述: UID: 0024014

帖子: 5568

精華: 0

積分: 16452 點

現金: 2224 元

存款: 8535 元

閱讀權限: 70

註冊: 2005-6-18

狀態: 離線
 
發表於 2007-9-3 18:45  資料  個人空間  主頁 短消息  加為好友  添加 hamu278 為MSN好友 通過MSN和 hamu278 交談
我都十卜下先 (純呃post )




 AL8 Forum © All rights reserved.
頂部
 鳳雩晞風
 0033023
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 136

精華: 0

積分: 1900 點

現金: 0 元

存款: 261 元

閱讀權限: 20

註冊: 2005-10-18

狀態: 離線
 
發表於 2007-9-5 13:33  資料  個人空間  短消息  加為好友 
我想要問一下,
為什麼我安裝了之後首頁點選的聯盟網站網址不是我寫進去的網址?
無論我寫進去什麼網址都會變成 http://論壇網址/flink.php?id=數字
請問要怎麼解決啊?
http://ix.moe.to/dz/index.php