Latest build version and updates
HOWTO ImpEx (Import / Export)
Here are some things to think about when doing an import and steps to follow.
First there are some things to realise :
Before the import
Firstly, if you have a board up and running leave it running until you are comfortable with the import process.
Once again .......
LEAVE THE ORIGIONAL BOARD RUNNING TILL YOU HAVE READ THIS AND DONE SOME TEST IMPORTS
Isn't really the best way of getting a board imported.
Right, on we go.
Secondly, make a back up of your source board and do the initial trail run import from that, not the live board.
ImpEx only ever reads from a source board it will never alter source data. Though running an import against source data that is being updated can have some strange outcomes for the import as well as the source board, also it will cause a lot of load on the source board.
Make sure you have the latest download.
Setting up
Set up a board for practicing an import into.
The vBulletin license allows you to have a development board installed for the purposes of development and testing. Practicing an import is a good example of this.
Copy your source data to the same machine that your development vBulletin install, be that a database (i.e. phpBB) or the files (i.e. ubb.classic).
Attachments
Ensure that you have your storage type set up how would like it if it is a fresh install, i.e. if you don't want your attachments in the database set vBulletin to use the file system before the import.
ImpEx will import using what ever the current settings for you board is.
Getting ImpEx
ImpEx can be downloaded from the members area, http://www.vbulletin.com/members/import.php
For futher details on installing, configuring and running ImpEx, please refer to the ImpEx section of the online manual: http://www.vbulletin.com/docs/html/impex
When uploading ImpEx, you only need to up load the dirs and file in the impex/systems folder that you actually need. i.e. if you are importing from phpBB just upload the impex/systems/phpBB folder with the core files.
Uploading them all won't do any harm, though ImpEx will use more memory when starting for the first time as it checks them all and loads all the modules.
Config
ImpEx has a configuration file, this allows the user to configure the database details.
The [ Target Database ] settings will the vast majority of the time be the same as the config.ini.php settings for vBulletin itself. By default impex will read the details from includes/config.php so you don't need to set the target database details, impex will display a message at the top of every page to say when it is using the config.php file settings.
If you are importing from a database opposed to a file based system edit sourceexists = false to sourceexists = true.
Then, edit the rest of the [ Source Database ] setting to match the database of the source board.
Two things to double check here, firstly the table prefix.
In this example I am using a phpBB board. I would have to check the phpBB database to see that the tables are all phpbb_ then the tables name. Therefour phpbb_ is the table prefix.
Running an import
If ImpEx is installed and configured you will be able select it via the admin control panel under "Import -> Import".
From there you can select the system you want to import from the drop down list.
The initial modules
The first module of nearly all the importers updates the vB3 database to include importid's, so ImpEx can keep the association between the users and the data during the import.
The second module is for associating users, this is a manual way of linking imported users to existing users. This will only need to be done if you have existing users you would like to associate to. NEVER associate with an vBulletin admin user during an import, wait till the import is finished and all is well, then use the admincp to merge the users.
Also the association only needs to be performed if the users you are trying to associate have a different email address, during the user import module ImpEx can be told to merge users who have the same email address, this is a lot faster and easier than manually associating them.
If the importer you are using doesn't not have the auto associate function in the user import module, check the notes on the status thread, if it is not mentioned in the development notes at the bottom of the post, make a request for it to be retro fitted to the importer you want to use, if it hasn't been already.
The rest of the modules are self explanatory and have dependencies on each other which is evident when you try to run a module. For instance to import the posts you need the threads etc.
Re-running modules
When you re-run a module, for what ever reason it will clean up any previous data imported of that type.
For instance if you run the import post module for our phpBB import, it will import all the post from the phpBB board and place them in the vBulletin database. All the posts will have a importpostid which is the original post id of the post in the phpBB board. Any original post from the vBulletin board before the import will have no importpostid, as they are original.
So when the module is run for a second time (another practice run, you change some setting, updated a parser, got more posts, etc) it will delete all posts from the vBulletin board that have an importpostid.
This is use full for getting timings or re-running modules that had issues that you have changed or updated.
WarningWarningWarning
If you have associated or merged users, the original vBulletin users will now have a importuserid, re-running the import user module will delete these users, if you don't have any associated users this isn't an issue.
This is why we make backups of databases
WarningWarningWarning
The end game
Once you have completed all the modules that you wish to run, there are still several steps that you need to take.
Firstly, in the "Import & Maintenance -> Update Counters" section of the admin control panel update the threads counters then the forums, also you will need to rebuild the search index and possible the user details to clean up after an import depending on the system you are importing from.
Secondly, check the forums are ordered correctly and are being displayed, you may need to re-order them in the admin control panel forum manager.
Thirdly, most importers will import the usergroups or create a default import usergroup, this is so you can check the users being imported and manage them accordingly, to move users to the default "Register" group in vBulletin, delete the import group they are in.
Finally, check the permissions of your moderators and the forums. As all boards different to varying degrees, only so much information can be imported as values in vBulletin will not exist in other boards so they will be left to default.
A good example of this is the COPPA setting for the users, this many be need to be updated for all users.
An import will as a rule of thumb err on the side of caution, if an age can't be ascertained for instance, it will make a user COPPA then let the admin correct it later.
Rebuild the search index if you want to be able to search on the imported posts.
Now what?
Now you have done an import, the main ImpEx page will give you an idea of how long it takes, plus you re-configuring and post install setup.
Try the import a few times to make sure you are happy with the process and know what to do when the time comes.
This is the time to ask question here about things that you don't understand or believe are going wrong, not when you do the final live import !!
Have some of your trusted users or admin/moderators look around the test import boards to help with finding any issues and pointing out permissions that need to be updated etc.
Ok, I've done it and its live
Now would be the time to use vBulletin's 'Email all Users' functionality to inform your users that you board is now open again and running on vBulletin and that they will need to update their profiles in their User Control Panel to ensure that all their details are correct.
Also a good time to update their signatures using BB code and removing HTML if the legacy source board allowed it or to reset their passwords with your boards reset password link.
Happy importing
Once again .......
LEAVE THE ORIGIONAL BOARD RUNNING TILL YOU HAVE READ THIS AND DONE SOME TEST IMPORTS
No really, I'm serious.
Finally
Remove the ImpEx folder and scripts till they are next needed, if the import is done and live you don't need them. If you do need to do another import from another board it is lightly that there will be another version available then anyway.
HOWTO ImpEx (Import / Export)
Here are some things to think about when doing an import and steps to follow.
First there are some things to realise :
- Testing an import before shutting down the source forum is the best way to go.
- There will probably be some residual HTML from the content that will need cleaning up afterwards, which is part of the import task and process, not a function of the support team.
- The links within the forum to other threads/posts/users will be imported, and link to the old board. A 301/404 solution will need to be put in place if that is a concern.
Before the import
Firstly, if you have a board up and running leave it running until you are comfortable with the import process.
Once again .......
LEAVE THE ORIGIONAL BOARD RUNNING TILL YOU HAVE READ THIS AND DONE SOME TEST IMPORTS
"I've turned my board off and done an import and it didn't work 100% corretly first time, my users are upset, fix it now"
Right, on we go.
Secondly, make a back up of your source board and do the initial trail run import from that, not the live board.
ImpEx only ever reads from a source board it will never alter source data. Though running an import against source data that is being updated can have some strange outcomes for the import as well as the source board, also it will cause a lot of load on the source board.
Make sure you have the latest download.
Setting up
Set up a board for practicing an import into.
The vBulletin license allows you to have a development board installed for the purposes of development and testing. Practicing an import is a good example of this.
Copy your source data to the same machine that your development vBulletin install, be that a database (i.e. phpBB) or the files (i.e. ubb.classic).
Attachments
Ensure that you have your storage type set up how would like it if it is a fresh install, i.e. if you don't want your attachments in the database set vBulletin to use the file system before the import.
ImpEx will import using what ever the current settings for you board is.
Getting ImpEx
ImpEx can be downloaded from the members area, http://www.vbulletin.com/members/import.php
For futher details on installing, configuring and running ImpEx, please refer to the ImpEx section of the online manual: http://www.vbulletin.com/docs/html/impex
When uploading ImpEx, you only need to up load the dirs and file in the impex/systems folder that you actually need. i.e. if you are importing from phpBB just upload the impex/systems/phpBB folder with the core files.
Uploading them all won't do any harm, though ImpEx will use more memory when starting for the first time as it checks them all and loads all the modules.
Config
ImpEx has a configuration file, this allows the user to configure the database details.
The [ Target Database ] settings will the vast majority of the time be the same as the config.ini.php settings for vBulletin itself. By default impex will read the details from includes/config.php so you don't need to set the target database details, impex will display a message at the top of every page to say when it is using the config.php file settings.
If you are importing from a database opposed to a file based system edit sourceexists = false to sourceexists = true.
Then, edit the rest of the [ Source Database ] setting to match the database of the source board.
Two things to double check here, firstly the table prefix.
In this example I am using a phpBB board. I would have to check the phpBB database to see that the tables are all phpbb_ then the tables name. Therefour phpbb_ is the table prefix.
Running an import
If ImpEx is installed and configured you will be able select it via the admin control panel under "Import -> Import".
From there you can select the system you want to import from the drop down list.
The initial modules
The first module of nearly all the importers updates the vB3 database to include importid's, so ImpEx can keep the association between the users and the data during the import.
The second module is for associating users, this is a manual way of linking imported users to existing users. This will only need to be done if you have existing users you would like to associate to. NEVER associate with an vBulletin admin user during an import, wait till the import is finished and all is well, then use the admincp to merge the users.
Also the association only needs to be performed if the users you are trying to associate have a different email address, during the user import module ImpEx can be told to merge users who have the same email address, this is a lot faster and easier than manually associating them.
If the importer you are using doesn't not have the auto associate function in the user import module, check the notes on the status thread, if it is not mentioned in the development notes at the bottom of the post, make a request for it to be retro fitted to the importer you want to use, if it hasn't been already.
The rest of the modules are self explanatory and have dependencies on each other which is evident when you try to run a module. For instance to import the posts you need the threads etc.
Re-running modules
When you re-run a module, for what ever reason it will clean up any previous data imported of that type.
For instance if you run the import post module for our phpBB import, it will import all the post from the phpBB board and place them in the vBulletin database. All the posts will have a importpostid which is the original post id of the post in the phpBB board. Any original post from the vBulletin board before the import will have no importpostid, as they are original.
So when the module is run for a second time (another practice run, you change some setting, updated a parser, got more posts, etc) it will delete all posts from the vBulletin board that have an importpostid.
This is use full for getting timings or re-running modules that had issues that you have changed or updated.
WarningWarningWarning
If you have associated or merged users, the original vBulletin users will now have a importuserid, re-running the import user module will delete these users, if you don't have any associated users this isn't an issue.
This is why we make backups of databases

WarningWarningWarning
The end game
Once you have completed all the modules that you wish to run, there are still several steps that you need to take.
Firstly, in the "Import & Maintenance -> Update Counters" section of the admin control panel update the threads counters then the forums, also you will need to rebuild the search index and possible the user details to clean up after an import depending on the system you are importing from.
Secondly, check the forums are ordered correctly and are being displayed, you may need to re-order them in the admin control panel forum manager.
Thirdly, most importers will import the usergroups or create a default import usergroup, this is so you can check the users being imported and manage them accordingly, to move users to the default "Register" group in vBulletin, delete the import group they are in.
Finally, check the permissions of your moderators and the forums. As all boards different to varying degrees, only so much information can be imported as values in vBulletin will not exist in other boards so they will be left to default.
A good example of this is the COPPA setting for the users, this many be need to be updated for all users.
An import will as a rule of thumb err on the side of caution, if an age can't be ascertained for instance, it will make a user COPPA then let the admin correct it later.
Rebuild the search index if you want to be able to search on the imported posts.
Now what?
Now you have done an import, the main ImpEx page will give you an idea of how long it takes, plus you re-configuring and post install setup.
Try the import a few times to make sure you are happy with the process and know what to do when the time comes.
This is the time to ask question here about things that you don't understand or believe are going wrong, not when you do the final live import !!
Have some of your trusted users or admin/moderators look around the test import boards to help with finding any issues and pointing out permissions that need to be updated etc.
Ok, I've done it and its live
Now would be the time to use vBulletin's 'Email all Users' functionality to inform your users that you board is now open again and running on vBulletin and that they will need to update their profiles in their User Control Panel to ensure that all their details are correct.
Also a good time to update their signatures using BB code and removing HTML if the legacy source board allowed it or to reset their passwords with your boards reset password link.
Happy importing

Once again .......
LEAVE THE ORIGIONAL BOARD RUNNING TILL YOU HAVE READ THIS AND DONE SOME TEST IMPORTS
No really, I'm serious.
Finally
Remove the ImpEx folder and scripts till they are next needed, if the import is done and live you don't need them. If you do need to do another import from another board it is lightly that there will be another version available then anyway.
Comment