標題: [D6.0] 給超級版主設置版主權限
 籃籃
 0030564
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1269

精華: 0

積分: 8920 點

現金: 0 元

存款: 245 元

閱讀權限: 70

註冊: 2005-9-11

狀態: 離線
 
發表於 2008-6-12 10:18  資料  個人空間  短消息  加為好友 
給超級版主設置版主權限

admincp.php
找到:
}
if($cpscript) {
                require_once DISCUZ_ROOT.'./admin/'.$cpscript.'.inc.php';
        } else {
                cpheader();
                cpmsg('noaccess');
        }

在上面添加(注意是添加在}號的上一行)
elseif($action == 'forumsedit'|| $action == 'moderators' ) {
                        $cpscript = 'forums';
                }

        }
else{
        if($action == 'home') {
                        $cpscript = 'home';
                } elseif((($allowedituser || $allowbanuser) && $action == 'editmember') || ($allowbanip && $action == 'ipban')) {
                        $cpscript = 'members';
                } elseif($action == 'forumrules') {
                        $cpscript = 'forums';
                } elseif($allowpostannounce && $action == 'announcements') {
                        $cpscript = 'announcements';
                } elseif(($allowmoduser && $action == 'modmembers') || ($allowmodpost && ($action == 'modthreads' || $action == 'modreplies'))) {
                        $cpscript = 'moderate';
                } elseif(($allowcensorword && $action == 'censor') || $action == 'logout') {
                        $cpscript = 'misc';
                } elseif($allowmassprune && $action == 'prune') {
                        $cpscript = 'prune';
                } elseif($action == 'plugins') {
                        $cpscript = 'plugins';
                } elseif($allowviewlog && ($action == 'ratelog' || $action == 'modslog' || $action == 'banlog')) {
                        $cpscript = 'logs';
                }

找到
elseif($adminid == 2||$adminid == 3 )

改為
elseif($adminid == 2)

打開menu.inc.php
找到
if($allowmassprune) {
                                        $menuarray[] = array('name' => $lang['menu_maint_prune'], 'url' => 'admincp.php?action=prune');
                                }

下加
showmenu($lang['menu_forums'],        array(array('name' => $lang['menu_forums_add'], 'url' => 'admincp.php?action=forumadd'),
                                                        array('name' => $lang['menu_forums_edit'], 'url' => 'admincp.php?action=forumsedit'),
                                                        array('name' => $lang['menu_forums_merge'], 'url' => 'admincp.php?action=forumsmerge'),
                                                        array('name' => $lang['menu_forums_threadtypes'], 'url' => 'admincp.php?action=threadtypes')));




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

頭銜: Lord

帖子: 562

精華: 0

積分: 5260 點

現金: 0 元

存款: 9 元

閱讀權限: 25

註冊: 2007-3-23

狀態: 離線
 
發表於 2008-6-12 10:49  資料  個人空間  短消息  加為好友 
支持
sofa




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

頭銜: Lord

帖子: 482

精華: 0

積分: 2950 點

現金: 95 元

存款: 0 元

閱讀權限: 25

註冊: 2008-3-8

來自: 美國的無限

狀態: 離線
 
發表於 2008-7-18 02:32  資料  個人空間  主頁 短消息  加為好友  添加 kingjames 為MSN好友 通過MSN和 kingjames 交談 QQ
support,thanks a lot




 AL8 Forum © All rights reserved.
頂部
 Nic!
 0105320
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 119

精華: 0

積分: 360 點

現金: 93 元

存款: 700 元

閱讀權限: 20

註冊: 2008-7-22

狀態: 離線
 
發表於 2008-9-2 22:05  資料  個人空間  短消息  加為好友 
QUOTE:
}
if($cpscript) {
                require_once DISCUZ_ROOT.'./admin/'.$cpscript.'.inc.php';
        } else {
                cpheader();
                cpmsg('noaccess');
        }


即係邊個}號




 AL8 Forum © All rights reserved.
頂部
 Nic!
 0105320
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 119

精華: 0

積分: 360 點

現金: 93 元

存款: 700 元

閱讀權限: 20

註冊: 2008-7-22

狀態: 離線
 
發表於 2008-9-2 22:10  資料  個人空間  短消息  加為好友 
同無加之前有咩分別

我修改file改錯左



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



 AL8 Forum © All rights reserved.
頂部
 Nic!
 0105320
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 119

精華: 0

積分: 360 點

現金: 93 元

存款: 700 元

閱讀權限: 20

註冊: 2008-7-22

狀態: 離線
 
發表於 2008-9-3 20:35  資料  個人空間  短消息  加為好友 
得左啦, 我想問點樣比版主新增編輯版塊既權限




 AL8 Forum © All rights reserved.
頂部
 eco
 0105305
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 108

精華: 0

積分: 1820 點

現金: 100 元

存款: 0 元

閱讀權限: 20

註冊: 2008-7-21

狀態: 離線
 
發表於 2008-9-4 14:40  資料  個人空間  短消息  加為好友 
支持





 AL8 Forum © All rights reserved.
頂部


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