Allow to import vB users into Drupal

kkronyak - February 21, 2007 - 03:55
Project:Drupal vB
Version:5.x-2.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:sun
Status:closed
Description

I've fixed 2 bugs and attached them with this patch:

  • After completing an action, the module would forward to admin/drupalvb which is invalid. This has been changed to admin/settings/drupalvb
  • When exporting from Drupal to vB, duplicates would not be detected. This was because the parenthesis was in the wrong place, so it would look for user "%s" instead of the username. This has been fixed.

I also added an import-from-vBulletin feature so established forums can migrate their userbases into new Drupal sites. Enjoy!

AttachmentSize
drupalvbfix.patch3.43 KB

#1

rszrama - February 21, 2007 - 13:10

Awesome! I'll check these out and commit ASAP. Hopefully this evening.

#2

kkronyak - February 22, 2007 - 16:57

I will be testing these features on a real albeit small site very soon so I'll let you know if there are any problems. However in my development / test site, everything worked fine.

#3

kkronyak - February 23, 2007 - 17:18

I found last night that the passwords do NOT import propertly from vBulletin. I do not have a lot of experience with vB so i'm not sure exactly how it hashes the passwords, but I may look into it further tonight or over the weekend.

The other crucial parts of the account (e-mail and username) do import properly though, so the import feature is still valuable for at least pre-loading the accounts. What we did with the site i'm working on is make a notice telling users to run the Retrieve Password process in order to get into their Drupal accounts.

I don't know if importing will ever work, depending on how vB stores the passwords. It may just be the nature of the beast.

#4

sun - April 19, 2008 - 01:50
Version:5.x-1.0» HEAD
Category:bug report» feature request
Status:patch (reviewed & tested by the community)» patch (code needs review)

Re-rolled patch against HEAD. Watch your coding-style.

AttachmentSize
drupalvb.user-import.patch1.72 KB

#5

sun - April 19, 2008 - 03:00
Title:Bad forward after actions, bad duplicate prevention, new import feature.» Allow to import vB users into Drupal

Re-rolled patch against HEAD.

AttachmentSize
drupalvb.user-import.patch1.72 KB

#6

sun - April 22, 2008 - 19:07
Version:HEAD» 5.x-2.x-dev
Assigned to:kkronyak» sun
Status:patch (code needs review)» patch (code needs work)

I've re-written this patch for 5.x-2.x now. However, I doubt it will be of any use, because vBulletin stores user passwords with an additional salt (like D7). So if a user is imported through this function, she will never be able to login, because MD5($user->pass) != MD5($user->pass . $user->salt).

As mentioned in the patch, we need to replace this function with a lazy user instantiation via hook_auth(). After that, we might fill the authmap table with imported data, but definitely not like in this current approach.

AttachmentSize
drupalvb-DRUPAL-5--2.user-import.patch2.77 KB

#7

sun - April 30, 2008 - 00:10
Version:5.x-2.x-dev» 5.x-2.0-beta1
Status:patch (code needs work)» fixed

Lazy instantiation of existing vB users in Drupal is now implemented in 5.x-2.0-RC1.

#8

Anonymous (not verified) - May 14, 2008 - 00:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.