coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Tim77 on July 19, 2004, 02:16:06 AM

Title: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on July 19, 2004, 02:16:06 AM
My Coppermine gallery is intigrated with my IPB user database and that all works fine... However I have a user that I want to be an admin of the gallery and not of the forum. I want to put this user in his own user group on the forum and define two different user groups as admins to Coppermine. I found the following line in the Invision bridge file......

"define('IB_ADMIN_GROUP', 4);"

I want to define "IB_ADMIN_GROUP" as BOTH "4" AND "8"

How could this be done?

Thanks!
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Joachim Müller on July 19, 2004, 07:10:19 AM
I remember there were similar requests for older versions of coppermine (and older versions of the bridge file), and as far as I remember they were not able to resolve this issue properly. Does IB support multiple griup memberships? If yes, make the other admin member of another group as well.

GauGau
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on July 19, 2004, 11:40:45 AM
It would seem that this would be a simple thing to resolve. :( If anyone is willing to tackle this it would be greatly appreciated.
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Joachim Müller on July 19, 2004, 11:52:47 AM
Please answer the question: does IB support multiple group membership?

GauGau
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on July 19, 2004, 11:07:00 PM
Invision allows for multiple permission masks but only on group. I think it would make more sense to base the CPG permissions off of the IPB permission masks rather than the member group.
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on August 16, 2004, 01:48:36 AM
Has anyone come up with a way of doing this yet? I really need to have two different members groups as admins of the forum.
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Joachim Müller on August 16, 2004, 08:16:34 AM
you still didn't answer my question. Answer should be: "Yes" or "No".

GauGau
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on August 16, 2004, 11:00:11 AM
"No"
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Joachim Müller on August 17, 2004, 08:10:40 AM
Then the answer to your initial question is "no" as well - you can't have a user who is not admin in your bbs, but is admin in coppermine, unless you dive into the coppermine code and come up with a hack (not recommended).

GauGau
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on August 17, 2004, 08:41:41 PM
What if all the code in the bridge file pertaining to the admin group was duplicated for another group?
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Nibbler on August 18, 2004, 12:49:06 AM
Why can't you simply alter

($USER_DATA['mgroup'] == IB_ADMIN_GROUP)
to
(($USER_DATA['mgroup'] == IB_ADMIN_GROUP) || ($USER_DATA['mgroup'] == 9))

in 2 places, where 9 is the group id of the other group you want to be admin.
Title: Re: Having 2 admin groups in Coppermine 1.3.0 & IBP 1.3F
Post by: Tim77 on August 23, 2004, 03:09:11 AM
Thanks, I will try that!