Advanced search  

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]

Pages: [1]   Go Down

Author Topic: "Merging" Bidged Groups  (Read 5836 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: 15765
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: 15765
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.014 seconds with 20 queries.