importing users (not authors)
| Project: | Wordpress Import |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Importing content, comments and authors works great. I had no problems importing from a wordpress 2.2.1 site to Drupal 6.8 using the dev version. However, while authors can be mapped to drupal users, other users in Wordpress who aren't authors but have for example written comments are not imported.
In my case this is an issue when you have 1000+ users and 6000+ comments on a high traffic community site; you don't want to force your members to create new accounts and you don't want to lose the relationship between users and their comments.
I haven't looked in the code yet, but it seems to me it should be possible to extend this module with an option to import all wordpress users and map them to their comments.
I'll be happy to take a closer look at this, any ideas or comments are welcome.

#1
#2
It might be possible to recreate Drupal accounts for comment authors, but Wordpress is generally limited in what information it put in the export file about users. For example, passwords aren't in included in the WXR format. Also, depending on your site configuration, some comment authors might note have specified their email. Since Drupal requires at least a username and an email for a user account, we could import all those comment author that have this information. Would that be adequate?
#3
In most cases when you want this feature, the users will have an email. It would be a big help if the module tried to keep those as much as possible. And maybe show a list if users which couldn't be migrated for some reason.
I think it isn't that bad if the passwords aren't migrated : they could be generated and users can be emailed to retrieve a new password but they won't have to create a whole new account. Or they can be generated afterwards with a module like http://drupal.org/project/genpass
#4
From what I understood, you mean importing wordpress.com users as authors of comments, right?
maybe you con work around it assigning each wordpress.com user to his/her openID. wordpress.com provides one for every user, and if you're using wordpress.org there is probably a way to do it too.
#5
No, not wordpress.com users.
Simply users in your wordpress install but without any comments or posts associated. Users who != authors.
#6
I'm not sure I understand here. Which type of users are you looking to import : users who have registered and never posted anything, or users who have registered and posted comments?
I'm afraid that if you're looking to import registered Wordpress users that never posted anything, then you're out of luck because they won't appear anywhere in the WXR file. You should examine a WXR export of your site to see for yourself.
#7
@lavamind
Yes I was also looking to import users who have registered but haven't posted anything. So I guess I'm out of luck ;)
But if registered users who have posted comments would be imported, that would be good enough. This way you would keep your 'active' users during a migration.
#8