"Merging" Bidged Groups "Merging" Bidged Groups
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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
// ********************************************************