What is the best way to import users from an existing install of gallery2 into drupal without any user intervention?

Comments

michelle’s picture

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.

Michelle

drupalguest’s picture

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.

michelle’s picture

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.

Michelle

kiz_0987’s picture

At 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.

drupalguest’s picture

Thanks 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?

kiz_0987’s picture

Status: Active » Closed (duplicate)

A patch is available in http://drupal.org/node/97034.