AL8 Forum
   登錄註冊幫助


標題: 【原創】編輯論壇_顯示_主題分類_絕對美觀實用 (只適合 Discuz! 3.0 )
 別問我是誰
 0005547
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9
點擊查看 別問我是誰 的詳細資料

頭銜: Honorary Admin

帖子: 8547

精華: 0

積分: 109065 點

現金: 648 元

存款: 24934 元

閱讀權限: 120

註冊: 2004-8-15

狀態: 離線
 
發表於 2005-12-7 06:47  資料  個人空間  短消息  加為好友 
【原創】編輯論壇_顯示_主題分類_絕對美觀實用 (只適合 Discuz! 3.0 )

.
只適合 Discuz! 3.0

看下圖 上圖為有跟本人早前修改過的版本

只是每行顯示三個 亦覺得太長 而左方空位太多

現在最新修改的 見下圖 真正能做到善用空間
 

簡易修改方法 ↓

修改方法 admin/forums.inc.php 找:

程式中 if($num%6==0)  6 是每行顯示多少個 請自行設定


                        // forum custom thread type
                        include_once DISCUZ_ROOT.'./forumdata/cache/cache_threadtypes.php';
                        $threadtypes = $forum['threadtypes'] ? unserialize($forum['threadtypes']):array();
                        $threadtypesoptions ='';
                        if ($_DCACHE['threadtypes']){
                                foreach( $_DCACHE['threadtypes'] as $key=>$val ){
                                        $checked = (is_array($threadtypes) && $threadtypes['types'][$key])  ? 'checked':'';
                                        $threadtypesoptions .="<input type=\"checkbox\" name=\"threadtypesnew[types][$key]\" value=\"$val\" $checked> $val<br>\n";
                                }
                        }else{
                                $threadtypesoptions = $lang['forums_edit_threadtypes_options_null'];
                        }
                       
                        $threadtypesstatuscheck = array( intval($threadtypes['status'])=>'checked');
                        $threadtypesstatusstyle = empty($threadtypes['status']) ? 'none':'';
                        showtype('forums_edit_threadtypes');
                        showsetting('forums_edit_threadtypes_status', '', '', "<input type=\"radio\" name=\"threadtypesnew[status]\" value=\"1\" $threadtypesstatuscheck[1]  onclick=\"findobj('threadtypeson').style.display=''\">$lang[yes] &nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"threadtypesnew[status]\" value=\"0\" $threadtypesstatuscheck[0] onclick=\"findobj('threadtypeson').style.display='none'\">$lang[no]");
                       
                        echo "<tbody id=\"threadtypeson\" style=\"display:$threadtypesstatusstyle\">";
                        showsetting('forums_edit_threadtypes_required','threadtypesnew[required]',$threadtypes['required'],'radio');
                        showsetting('forums_edit_threadtypes_listable','threadtypesnew[listable]',$threadtypes['listable'],'radio');
                        showsetting('forums_edit_threadtypes_prefix','threadtypesnew[prefix]',$threadtypes['prefix'],'radio');
                        showsetting('forums_edit_threadtypes_replaceicon','threadtypesnew[replaceicon]',$threadtypes['replaceicon'],'radio');
                        showsetting('forums_edit_threadtypes_options','','',$threadtypesoptions);
                        echo "</tbody>";

改為:

//--------------------------------------------------------------
                        // forum custom thread type
                        include_once DISCUZ_ROOT.'./forumdata/cache/cache_threadtypes.php';
                        $threadtypes = $forum['threadtypes'] ? unserialize($forum['threadtypes']):'';
                        $threadtypesoptions ='';
                        if ($_DCACHE['threadtypes']){
                        $num=0;
                                $threadtypesoptions .="<table cellspacing=\"4\" cellpadding=\"0\" width=\"100%\" align=\"center\"><tr>";
                                foreach( $_DCACHE['threadtypes'] as $key=>$val ){
                                        $checked = $threadtypes['types'][$key] ? 'checked':'';
                                        $threadtypesoptions .="<td><input type=\"checkbox\" name=\"threadtypesnew[types][$key]\" value=\"$val\" $checked> $val\n";
                        $num ++;
                        if($num%6==0) $threadtypesoptions.="<tr>";
                                }
                                $threadtypesoptions .="</td></tr></table>";
                        }else{
                                $threadtypesoptions = $lang['forums_edit_threadtypes_options_null'];
                        }
                       
                        $threadtypesstatuscheck = array( intval($threadtypes['status'])=>'checked');
                        $threadtypesstatusstyle = empty($threadtypes['status']) ? 'none':'';
                        showtype('forums_edit_threadtypes');
                        showsetting('forums_edit_threadtypes_status', '', '', "<input type=\"radio\" name=\"threadtypesnew[status]\" value=\"1\" $threadtypesstatuscheck[1]  onclick=\"findobj('threadtypeson').style.display=''\">$lang[yes] &nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"threadtypesnew[status]\" value=\"0\" $threadtypesstatuscheck[0] onclick=\"findobj('threadtypeson').style.display='none'\">$lang[no]");
                       
                        echo "<tbody id=\"threadtypeson\" style=\"display:$threadtypesstatusstyle\">";
                        showsetting('forums_edit_threadtypes_required','threadtypesnew[required]',$threadtypes['required'],'radio');
                        showsetting('forums_edit_threadtypes_listable','threadtypesnew[listable]',$threadtypes['listable'],'radio');
                        showsetting('forums_edit_threadtypes_prefix','threadtypesnew[prefix]',$threadtypes['prefix'],'radio');
                        showsetting('forums_edit_threadtypes_replaceicon','threadtypesnew[replaceicon]',$threadtypes['replaceicon'],'radio');

                        echo "<tr><td colspan=\"2\" class=\"altbg2\">$lang[forums_edit_threadtypes_options]<br>$lang[forums_edit_threadtypes_options_comment]</td></tr>\n";
                        echo "<tr><td colspan=\"2\" class=\"altbg2\">$threadtypesoptions</td></tr>\n";
                        echo "</tbody>";
//--------------------------------------------------------------

[此帖最後由 別問我是誰 在 2005-12-13 於 01:14 修改]



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



小莫小於水滴 自成大海汪洋
細莫細於沙粒 自成大地四方
勤檢就是美德 儲蓄可以致富
莫等閒 白了少年頭 空悲切
 AL8 Forum © All rights reserved.
頂部
 vans
 0023909
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 vans 的詳細資料

頭銜: Lord

帖子: 421

精華: 0

積分: 2994 點

現金: 50 元

存款: 4875 元

閱讀權限: 25

註冊: 2005-6-16

狀態: 離線
 
發表於 2005-12-7 11:31  資料  個人空間  短消息  加為好友 
別大謝謝啊

如你說的這樣很實用

也善用空間,馬上收下來去改




請善用搜尋功能
找不到答案再發帖
共同珍惜資源。。。
 AL8 Forum © All rights reserved.
頂部
 alanhkmok
 0036340
Rank: 2Rank: 2

頭銜: Member

帖子: 61

精華: 0

積分: 450 點

現金: 0 元

存款: 369 元

閱讀權限: 15

註冊: 2005-12-5

來自: hk-free ...

狀態: 離線
 
發表於 2005-12-7 11:44  資料  個人空間  主頁 短消息  加為好友 
thanks, let me try




 AL8 Forum © All rights reserved.
頂部
 mindar
 0035801
Rank: 1

頭銜: Newbie

帖子: 23

精華: 0

積分: 360 點

現金: 99 元

存款: 0 元

閱讀權限: 10

註冊: 2005-11-27

狀態: 離線
 
發表於 2005-12-7 12:44  資料  個人空間  短消息  加為好友 
不只善用空間,也非常美觀耶!!




 AL8 Forum © All rights reserved.
頂部
 渡一生
 0028142
Rank: 3Rank: 3Rank: 3
點擊查看 渡一生 的詳細資料

頭銜: Conqueror

帖子: 127

精華: 0

積分: 193 點

現金: 4 元

存款: 1013 元

閱讀權限: 20

註冊: 2005-8-8

狀態: 離線
 
發表於 2005-12-7 12:48  資料  個人空間  短消息  加為好友 
真是佩服,讚!




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

頭銜: Lord

帖子: 330

精華: 0

積分: 3980 點

現金: 324 元

存款: 7690 元

閱讀權限: 25

註冊: 2004-3-22

來自: hk

狀態: 離線
 
發表於 2005-12-7 12:57  資料  個人空間  主頁 短消息  加為好友 
than kyou somuch i want thisfor a long time




如果您有時間就黎我個論壇玩下啦,包正:
 AL8 Forum © All rights reserved.
頂部
 ar狂
 0031464
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

暱稱: 狂仔

帖子: 1426

精華: 0

積分: 14911 點

現金: 148 元

存款: 5352 元

閱讀權限: 70

註冊: 2005-9-25

來自: 澳門

狀態: 離線
 
發表於 2005-12-7 13:10  資料  個人空間  短消息  加為好友 
逼人呃帖嘰= =




Dz好難用 .. ? 好難學 .. ?
 AL8 Forum © All rights reserved.
頂部
 koyy
 0036015
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 128

精華: 0

積分: 1330 點

現金: 51 元

存款: 0 元

閱讀權限: 20

註冊: 2005-11-30

狀態: 離線
 
發表於 2005-12-7 16:34  資料  個人空間  短消息  加為好友 
多謝晒~thx




 AL8 Forum © All rights reserved.
頂部
 天之火
 0024192
Rank: 3Rank: 3Rank: 3
點擊查看 天之火 的詳細資料

頭銜: Conqueror

帖子: 220

精華: 0

積分: 2838 點

現金: 209 元

存款: 0 元

閱讀權限: 20

註冊: 2005-6-20

狀態: 離線
 
發表於 2005-12-7 16:39  資料  個人空間  短消息  加為好友 
改左咩呀?=.="美化左咩?




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

頭銜: Lord

帖子: 451

精華: 0

積分: 2820 點

現金: 936 元

存款: 4974 元

閱讀權限: 25

註冊: 2005-6-16

來自: 香港

狀態: 離線
 
發表於 2005-12-7 16:59  資料  個人空間  短消息  加為好友 
good




 AL8 Forum © All rights reserved.
頂部
 onfbb
 0006937
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 109

精華: 0

積分: 380 點

現金: 66 元

存款: 0 元

閱讀權限: 20

註冊: 2004-9-7

狀態: 離線
 
發表於 2005-12-7 17:01  資料  個人空間  短消息  加為好友 
謝謝啊...............




 AL8 Forum © All rights reserved.
頂部
 1312
 0035476
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 399

精華: 0

積分: 5202 點

現金: 3 元

存款: 175 元

閱讀權限: 25

註冊: 2005-11-22

狀態: 離線
 
發表於 2005-12-7 17:10  資料  個人空間  短消息  加為好友 
唔該哂~..




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

頭銜: Lord

帖子: 424

精華: 0

積分: 3288 點

現金: 227 元

存款: 787 元

閱讀權限: 25

註冊: 2005-7-17

來自: http:// ...

狀態: 離線
 
發表於 2005-12-7 17:10  資料  個人空間  主頁 短消息  加為好友 
謝謝 又發新hack囉~~~~謝了




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

頭銜: Lord

帖子: 424

精華: 0

積分: 3288 點

現金: 227 元

存款: 787 元

閱讀權限: 25

註冊: 2005-7-17

來自: http:// ...

狀態: 離線
 
發表於 2005-12-7 17:48  資料  個人空間  主頁 短消息  加為好友 
若果太多分類 如全選功能就更完美了!!




 AL8 Forum © All rights reserved.
頂部
 chan003
 0027641
 此發帖者已被禁止訪問

頭銜: Banned

帖子: 28

精華: 0

積分: 310 點

現金: 95 元

存款: 0 元

閱讀權限: 0

註冊: 2005-8-1

狀態: 離線
 
發表於 2005-12-7 18:19  資料  個人空間  短消息  加為好友 
*** 作者被禁止或刪除 內容自動屏蔽 ***
 別問我是誰
 0005547
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9
點擊查看 別問我是誰 的詳細資料

頭銜: Honorary Admin

帖子: 8547

精華: 0

積分: 109065 點

現金: 648 元

存款: 24934 元

閱讀權限: 120

註冊: 2004-8-15

狀態: 離線
 
發表於 2005-12-7 19:02  資料  個人空間  短消息  加為好友 


QUOTE:
引用由 johnng 於 2005-12-7 05:48 PM 發出的帖子內容   
若果太多分類 如全選功能就更完美了!!

加全選並不難 但跟本無用 因為無可能會選這麼多

若每區選得太多 forumdisplay.php 的分類顯示

你有否想像會變為怎様 




小莫小於水滴 自成大海汪洋
細莫細於沙粒 自成大地四方
勤檢就是美德 儲蓄可以致富
莫等閒 白了少年頭 空悲切
 AL8 Forum © All rights reserved.
頂部
 cschang
 0032371
Rank: 1

頭銜: Newbie

帖子: 6

精華: 0

積分: 120 點

現金: 4 元

存款: 0 元

閱讀權限: 10

註冊: 2005-10-9

狀態: 離線
 
發表於 2005-12-7 19:12  資料  個人空間  短消息  加為好友 
對啊!原來的真的視窗拉的又長又麻煩!




http://www.sixhost.net
 AL8 Forum © All rights reserved.
頂部
 gtonizuka
 0032115
Rank: 3Rank: 3Rank: 3
點擊查看 gtonizuka 的詳細資料

頭銜: Conqueror

帖子: 163

精華: 0

積分: 176 點

現金: 0 元

存款: 3101 元

閱讀權限: 20

註冊: 2005-10-5

狀態: 離線
 
發表於 2005-12-7 22:36  資料  個人空間  主頁 短消息  加為好友 
看看 推一把~~




 AL8 Forum © All rights reserved.
頂部
 別問我是誰
 0005547
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9
點擊查看 別問我是誰 的詳細資料

頭銜: Honorary Admin

帖子: 8547

精華: 0

積分: 109065 點

現金: 648 元

存款: 24934 元

閱讀權限: 120

註冊: 2004-8-15

狀態: 離線
 
發表於 2005-12-7 22:41  資料  個人空間  短消息  加為好友 
廢了內容

[此帖最後由 別問我是誰 在 2005-12-11 於 01:53 修改]




小莫小於水滴 自成大海汪洋
細莫細於沙粒 自成大地四方
勤檢就是美德 儲蓄可以致富
莫等閒 白了少年頭 空悲切
 AL8 Forum © All rights reserved.
頂部
 ManWa05
 0023521
Rank: 1
點擊查看 ManWa05 的詳細資料

頭銜: Newbie

帖子: 35

精華: 0

積分: 720 點

現金: 2 元

存款: 66 元

閱讀權限: 10

註冊: 2005-6-11

狀態: 離線
 
發表於 2005-12-7 23:33  資料