CPG 1.3.0 and IPB: one user in more than one groups CPG 1.3.0 and IPB: one user in more than one 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

CPG 1.3.0 and IPB: one user in more than one groups

Started by high-5, July 16, 2004, 09:20:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

high-5

Hi,
I integrated CPG 1.3.0 into my IPB and it works great.
I know that a user can be part of several groups in cpg to restrict/manage album-access, but in ipb every user just belongs to one group.
My question is how does cpg store the group-membership of one member in table 'cpg_users' if he is part of more than one group?
As my integrated galery uses the ipb-tables i would like to alter them to make users belong to several groups for cpg.
Here is a row of cpg_users. user_id  user_group  user_active  user_name  user_password  user_lastvisit  user_regdate  user_group_list  user_email  user_website  user_location  user_interests  user_occupation  user_actkeyLet's say a user is member of group 1 and 3, which columns would be modified?
Thanks.

Joachim Müller

this is hardly possible, because (when using bbs integration) every time the admin goes to the group manager, coppermine triggers a synchronisation with the bbs's user_group table and pulls the groups from it. For bbs that have multiple group membership (like phpBB or SMF) this is no problem, but apparently for IPB with single group membership, this is a problem.
I'm not sure how to create a workaround.

GauGau

high-5

#2
hmm, thanks for the info.   :)
as my board is just for a few members this may work:
create another column in table 'ipb_members' like 'cpg_groups' and tell cpg to use this column instead of old 'mgroup'. after that i could manually set the cpg-groups for each member. but i would need to know how an entry in this column should look like (like groupnumbers seperated by ',' or something).

Edit:
just realized that the invision-bridge does not only get the user-group from the 'users'-table but also from the 'sessions'-table.  :(
makes it all a bit more complicated....  ???