"Merging" Bidged Groups "Merging" Bidged Groups
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

"Merging" Bidged Groups

Started by CP_Info, June 17, 2011, 09:58:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CP_Info

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!


Αndré

Quote from: CP_Info on June 17, 2011, 09:58:10 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.

CP_Info

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!

Αndré

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:
// ********************************************************
// * Theme processing - start
// ********************************************************