This modules allows the import of your phpbb data into drupal equivalents. Please note that this is NOT a bridge module - the phpbb install will not be needed and any data inserted directly into phpbb after import will not automatically be imported.

Unlike your typical SQL scripts, this module is written in PHP and uses Drupal's APIs extensively to import the data. It's been tested with a fairly large phpBB sites (500,000+ posts/users/topics/attachments) It can import 500,000+ records in about 40 minutes, but it doesn't automatically re-initiate the script when it times out.

While the use of this module should be quite straight forward, you may need to know some php etc in order to overcome any issues.

Drupal 7 Version

This module has been completely rewritten for Drupal 7 and now uses the migrate framework.

The current functionality of this module includes migration of the following key parts of a PHPBB forum:

  • User accounts, with avatars as user pictures and working passwords (without use of any external modules)
  • Forums imported as taxonomy (to work with core forums module) with hierarchy intact
  • All phpbb topics imported as forum posts
  • All phpbb forum posts imported as forum post comments
  • All phpbb forum attachments imported media module if installed or to a file field on either the topic entity or it's comments
  • Private Messages imported to the privatemsg module

This also includes a migration from the PHPBB3 Blog Mod to Drupal blogs, which is unique to my use case but I thought might be handy for others.

The direct port of this module too Drupal 7 was undertaken in the 7.x-2.x branch of the code. While this version was pretty advanced, details in this issue: #1033316: port phpbb2drupal to Drupal 7, work here stalled and it was superseded by the 7.x-2.x branch detailed above.

Roadmap

  • Import of any custom BBCode
  • Import of any custom smilies
  • Import of poll data

phpBB 3 Support for Drupal 6

PHPBB 3 support is available through the current 6.x-2.0 release. User import allows the keeping of existing phpbb3 passwords. For Drupal 6 only, this is via the phpass module, but the module has a bug where setting the hash method back to md5 (the Drupal default) can cause errors: #290124: errors when defaulting to md5 authentication method.. I have a fixed version of this module available from my site.

  1. The module has been simplified, many options removed. phpbb2 support was dropped completely. - the 1.x series will focus on phpbb2, and anything later (2.x etc etc) will be exclusive to phpBB 3 Import.
  2. Poll import has been removed. Polls are now imported as forum topics. If poll data import is required, it should be put into a new module (which may be bundled here), and import should not be to the poll module, but to advanced_poll - there is too much difference in concepts between a poll.module poll and a phpbb3 poll.
  3. Drupal 6 Only: A new dependency on the phpass module to try and keep user passwords working after import. This currently does not currently work and all users will need to request new passwords.

These changes need to be tested, and where possible, documented.

Bundled Modules:

phpBB2Drupal - It will import the following entities:

  • Users - Additional information such as location/aim/msnm that are not included in Drupal's default form are imported using the profile module.
  • Categories & Forums - Categories become containers and Forums become, well, forums.
  • Topics - Topics are Drupal's equivalent of a forum node. The script will also import your moved topics and mirror them in your drupal forum as well.
  • Posts/Comments - Post are phpBB's central storing entity. Topics are technically posts as well. Posts are imported as comments.
  • Attachments
  • Polls - phpBB polls are imported as Drupal poll nodes. For phpBB 3, polls are imported as forum topics. The poll data is not converted or imported. If this functionality is needed, it should be placed into an additional (possibly bundled) module.
  • Many small details - BBcode and other minor information are preserved.

phpBB2Privatemsg

  • Will convert phpBB privatemsgs to Drupal Privatemsg - the contributed privatemsg module is required for this to work.
  • Prior to the Drupal 6.x release, this was part of the main phpBB2Drupal Module and not as a separate module.

phpBB_Redirect

  • Redirects from the old phpBB forums, topics and posts to the new Drupal forums, nodes and comments.
  • Current versions only redirect to comments on the first page of a node.

Known issues

  • phpass.module. The official version of this module has problems with the hash method has been set to MD5 and the users password is also in md5 format. Please see below for a "fixed" version of phpass.
  • If a Drupal user name matches a phpBB user name, the phpBB user data will not be imported.
  • If you choose not to import users who have never posted, and if such users have posted or received private messages, those private messages will not be imported either. I.e. private messages FROM or TO a user who was not imported are not imported either. This is a feature: it will not be fixed.

Non-Core requirements

  1. bbcode
  2. phpbb2privatemsg requires the privatemsg module
  3. Drupal 6 Only: phpbb3 import requires the phpass module. I have a slightly bug fixed, and including the extra files version available on my site.
  4. Not a requirement, but the Signatures for Forums module is supported.

Downloads

Recommended releases

Version Downloads Date Links
6.x-2.1 tar.gz (25.4 KB) | zip (29.45 KB) 2009-Nov-08 Notes

Other releases

Version Downloads Date Links
6.x-1.5 tar.gz (26.77 KB) | zip (30.51 KB) 2009-Nov-08 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (21.63 KB) | zip (28.5 KB) 2012-Feb-01 Notes
6.x-2.x-dev tar.gz (24.98 KB) | zip (29.05 KB) 2011-Jun-27 Notes

Project Information


Maintainers for phpBB2Drupal

  • darksnow - 4 commits
    last: 16 weeks ago, first: 19 weeks ago
  • nbz - 183 commits
    last: 29 weeks ago, first: 4 years ago
  • beginner - 52 commits
    last: 4 years ago, first: 6 years ago

Issues for phpBB2Drupal

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports