Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Is 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.
Since 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.
I 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.
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.