forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: CP_Info on June 17, 2011, 09:58:10 am

Title: "Merging" Bidged Groups
Post by: CP_Info on June 17, 2011, 09:58:10 am
Hi,

I have bridged Coppermine (cpg1.5.12) with phpBB3 (3.0.8). The bridge works great.

But now to my problem:

I want some Albums to be available to only certain Groups. The "Album can be viewed by" feature does only allow one group and Putting all phpBB3 users in one group is not an option.

Any Ideas?

One possible solution could be to "overide" the group_id of some phpBB3 groups for Coppermine to force them to appear as one group for Coppermine, but my PHP Knowledge is limited and I dont know where to do this in the code.

Thanks!

Title: Re: "Merging" Bidged Groups
Post by: Αndré on June 23, 2011, 10:53:30 am
I want some Albums to be available to only certain Groups. The "Album can be viewed by" feature does only allow one group and Putting all phpBB3 users in one group is not an option.
Unfortunately it's not possible in cpg1.5.x to select more than one group for the album permissions. If you want to make that album accessible to more groups, you have to create a new group and put all users in that group (e.g. as secondary group). That's the only solution without code modifications.
Title: Re: "Merging" Bidged Groups
Post by: CP_Info on June 25, 2011, 11:49:57 am
Hi Andre,

thanks for the info. Could you or someone else point me to the code section (bidege?) where the phpbb3 groups for the users are assigned? I will try to write an manual override then.

Thanks!
Title: Re: "Merging" Bidged Groups
Post by: Αndré on June 27, 2011, 02:49:00 pm
You'll find all user related data in the $USER_DATA array. You should be fine to modify that array in include/init.inc.php, just before:
Code: [Select]
// ********************************************************
// * Theme processing - start
// ********************************************************