Closed (duplicate)
Project:
Gallery
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2005 at 03:02 UTC
Updated:
2 Feb 2007 at 11:44 UTC
What is the best way to import users from an existing install of gallery2 into drupal without any user intervention?
Comments
Comment #1
michelleIs there a reason you need to do this? They will be automatically added to G2's user table when they visit the embedded G2 while logged into Drupal so you don't need to put them there yourself.
If you have some other need to have them in there first (permissions, maybe?) then I suggest looking at the gallery.module code to see how it adds them and do the same.
Michelle
Comment #2
drupalguest commentedSince Drupal is considered a new implementation (gallery2 was the main site), I would like for it to import the opposite way to minimize the work of migrating each user. If it's not possible, I guess I can do it manually. Sorry, but I'm not familiar with php to start coding anything on my own.
Comment #3
michelleI apologize. I totally misread your post and thought you were wanting to get Drupal users into G2. I don't know of a way to do what you want through the UI, but maybe someone else will come up with something.
Michelle
Comment #4
kiz_0987 commentedAt some point I think that this kind of sync might be possible (using the embed functions described in http://codex.gallery2.org/index.php/Gallery2:Embedding_Development_Roadm... ) but right now it is not. Manual sync is the only option right now unfortunately.
Comment #5
drupalguest commentedThanks for the responses.
The manual approach I would like to use will be via phpmyadmin:
-cut from gallery's hashpassword field
-paste into drupal's pass field
Does anyone know if this is possible? Are the two fields in different format?
Comment #6
kiz_0987 commentedA patch is available in http://drupal.org/node/97034.