coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: seb123 on November 28, 2005, 08:44:05 PM

Title: No users of coppermine in usermambo after bridging
Post by: seb123 on November 28, 2005, 08:44:05 PM
Upgrading en bridging went fine with mambo. Only the registrated users in mambo can automaticly use coppermine. But the users of coppermine (before bridging) can't login with the login of mambo. How do I put the users of coppermine in mambo, so that they also can login?
Title: Re: No users of coppermine in usermambo after bridging
Post by: Nibbler on November 28, 2005, 08:45:11 PM
You'll need to convert them to mambo users by transfering them into the mambo users table. I can't provide detailed instructions though.
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 28, 2005, 08:50:19 PM
Do you know somebody who can? Do i have to use phpMyAdmin or a script?
Title: Re: No users of coppermine in usermambo after bridging
Post by: Joachim Müller on November 29, 2005, 12:00:44 AM
there's no script nor automatic method available - you have to do this manually.
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating_users_start
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 29, 2005, 08:59:14 AM
I manual made the users of coppermine in de Mos_users. (first made new users in mambo admin and then changed the id to the id of coppermine). The first few users was not a problem, but when i finished this the integration didn't work at all. If a (new) user logged in with mambo he is now not logged in in coppermine. Does somebody know what i did wrong and how a can change this. I already tried to disable and enable ingetration, but that didn't work.
Title: Re: No users of coppermine in usermambo after bridging
Post by: Joachim Müller on November 29, 2005, 09:20:58 AM
hard to say without knowing what you did exactly.
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 29, 2005, 09:55:08 AM
I made a new user (example; rob)in mambo (in admin panel). Then i went to phpMyAdmin, changed the id of rob in mos_users for example: id:87 into id:4. Because id 4 is the id of rob in coppermine.
Title: Re: No users of coppermine in usermambo after bridging
Post by: Joachim Müller on November 29, 2005, 10:00:05 AM
ok, I'm afraid that this might collide with mambo's user management - you shouldn't change the ids. Instead, you'd have to go through coppermine's database and change all references to the user with the id "4" to the id "87".
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 29, 2005, 05:56:40 PM
Thanks for the support. I brought my db settings for coppermine back to normal and als the mos_user. But if i want to bridge again it seems that it isn't working. I made the change of mambo.inc. If i click on log in in coppermine i'm going to the mainpage and logging in as admin of mambo. When i'm going to coppermine i'm not logged in coppermine. And if i'm clicking on the albums of other users it's saying that there are no albums of users, but they are!
Does somebody knows what the problem might be? Before changing the mos_user it all was working perfectly.
Help!!!!! :\'(
Title: Re: No users of coppermine in usermambo after bridging
Post by: Joachim Müller on November 30, 2005, 11:03:14 AM
Quote from: seb123 on November 29, 2005, 05:56:40 PM
I made the change of mambo.inc.
What change?
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 30, 2005, 11:49:30 AM
// Connect to db
      $this->connect();
      
      // Delete old sessions
      $past = time()-$mosConfig_lifetime;
      $sql = 'delete from '.$this->sessionstable.' where (time < '.$past.');';
      cpg_db_query($sql, $this->link_id);
      
      }
Title: Re: No users of coppermine in usermambo after bridging
Post by: Joachim Müller on November 30, 2005, 08:01:49 PM
who told you to change the file?
Title: Re: No users of coppermine in usermambo after bridging
Post by: seb123 on November 30, 2005, 08:13:48 PM
http://forum.coppermine-gallery.net/index.php?topic=20049.msg97532#msg97532
Title: Re: No users of coppermine in usermambo after bridging
Post by: gram on December 05, 2005, 06:37:30 PM
seb123:

If you are going to create new users in Mambo, you need to leave thier userid's intact.  Mambo creates several entries in its user groups tables that correlate to the userid it assigns.  It cannot be modified without extensive knowledge of how to make correlating changes in the other tables.

If you choose to use the bridge supplied with CPG 1.4, you do not need to change thier ids in Mambo to match those in Coppermine.

After entering each new user, just make sure that their group affiliation allows them to do what you want them to do in CPG.  CPG will use the groups assigned by Mambo, and your settings for those groups in CPG to setup their rights and access under CPG.

The userid's don't have to match, as CPG will ignore its own user table when you have the bridge activated.  Mambo users who are either Super Administrators, or Administrators  will be admins under CPG.  Be careful of one issue.  If you want a user to be an administrator under CPG, don't just set them up as Super Admins under Mambo.  MAmbo has no way to derank or delete them once they are super admins.

GRAM

GRAM