Importing only users
| Project: | vBulletin to Drupal |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hello,
I need import +10k users and I don't need the forum content.
At the begining of the project I test the module with a clean drupal install and all work fine, but just yesterday with the project almost ready I import all and got the cron error explained here http://drupal.org/node/477176
Then, I notice that in the database the UID jump from 1 to 1000002, 1000003..., the same happend with NID.
Well, after all day playing with this I saw this in the line 8 of vbtodrupal.module:
define('VBTODRUPAL_ADD_TO_IDS', 1000000);
I change 1000000 to 0 and in the function "vbtodrupal_gui" I comment all this piece of code:
_vbtodrupal_convforums();
// Threads
print '<li>'. t('Importing threads...') .'</li>';
flush();
_vbtodrupal_convthreads();
// Posts
print '<li>'. t('Importing posts...') .'</li>';
flush();
_vbtodrupal_convposts();
// Polls
print '<li>'. t('Importing polls...') .'</li>';
flush();
_vbtodrupal_convpolls();
// Files
print '<li>'. t('Importing files...') .'</li>';
flush();
_vbtodrupal_convfiles();
// PMs (only imported if privatemsg module is installed)
if (module_exists('privatemsg')) {
print '<li>'. t('Importing private messages...') .'</li>';
flush();
_vbtodrupal_convpms();
}
else {
print '<li><strong>'. t('Privatemsg module not installed: skipping Private messages import.') .'</strong></li>';
}
// Rebuild stats
print '<li>'. t('Rebuilding stats...') .'</li>';
flush();
_vbtodrupal_updatestats();
// Fix vBulletin BBCode implementation
print '<li>'. t('Fixing BBCode...') .'</li>';
flush();
_vbtodrupal_fixbbcode();Now all my users have the right UID, 1,2,3,4..., no import any forum and the cron run without errors.
Instead, I would like confirm if this ugly solution would cause future problems?
thanks in advance

#1
That is exactly why that constant is there: just in case you don't want it to preserve the UIDs.
Heh, most import modules are ugly solutions anyway, you adding an extra layer of hackage onto them won't matter. ;) But seriously, I can't forsee any problems with this, you should even be able to use the vbpasswords module so users don't have to reset their passwords.
#2
Thanks Liam,
I alredy migrate the site and is running fine.
Just notice in the log that the login process run twice.
Excelent work!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.