coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: IckZ on February 02, 2005, 08:25:45 PM

Title: second admin in the gallery but not in the board...
Post by: IckZ on February 02, 2005, 08:25:45 PM
Hi
I hope that you can help me... I'm using the board from wbb and the bridge etc. I want to let another user be an admin in the gallery cause he makes also pictures and he should controll the gallery too but i don't want that he is also an admin in the board... how could i manage this?
Title: Re: second admin in the gallery but not in the board...
Post by: Nibbler on February 03, 2005, 01:20:20 PM
Please search the board.
Title: Re: second admin in the gallery but not in the board...
Post by: IckZ on February 03, 2005, 05:56:08 PM
i've searched the board but i didn't found any artikle for this problem only threads where somebody want an second admin without using a bridge or the info that i could change it in the bridge file oder in the database but no code or something....
Title: Re: second admin in the gallery but not in the board...
Post by: Nibbler on February 04, 2005, 03:12:09 PM
Try changing this line in the bridge file:

define('USER_IS_ADMIN', ($USER_DATA['mgroup'] == WBB_ADMIN_GROUP));

to

define('USER_IS_ADMIN', (($USER_DATA['mgroup'] == WBB_ADMIN_GROUP)) || (USER_ID == 123));

where 123 is the id of the other user o be made admin.

Same for $USER_DATA['has_admin_access']= ($USER_DATA['mgroup'] == WBB_ADMIN_GROUP);

change to

$USER_DATA['has_admin_access']= (($USER_DATA['mgroup'] == WBB_ADMIN_GROUP) || (USER_ID == 123));
Title: Re: second admin in the gallery but not in the board...
Post by: IckZ on April 08, 2005, 07:22:47 PM
so how should I change the code if i want to have 2 second admins ?? could anybody help me?
Title: Re: second admin in the gallery but not in the board...
Post by: kegobeer on April 08, 2005, 08:10:26 PM
($USER_DATA['mgroup'] == WBB_ADMIN_GROUP || USER_ID == 123 || USER_ID == 456)