Advanced search  

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

Pages: [1]   Go Down

Author Topic: "Merging" Bidged Groups  (Read 6310 times)

0 Members and 1 Guest are viewing this topic.

CP_Info

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
"Merging" Bidged Groups
« 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!

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: "Merging" Bidged Groups
« Reply #1 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.
Logged

CP_Info

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: "Merging" Bidged Groups
« Reply #2 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!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: "Merging" Bidged Groups
« Reply #3 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
// ********************************************************
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.