A quick list of things to consider if you want to import a forum. I hope to expand on these points (including code) in future.
I’ve just successfully imported a threaded forum from Joomla into Drupal. It seems to me that to import a forum into drupal, you want to follow the following strategy:
- Get as much of the forum information into the comments table as you can
- Where the parent node is 0, this usually indicates the first post in a thread. Get this data and create forum nodes from it
- Once you’ve created the forum nodes, delete any rows in comments table that have a pid of 0. (You may need to redo the pid, cid thread stuff …)
- run the code at the bottom of this page: http://drupal.org/node/264774 (in particular this code works out the the “thread” field for you!)
- Clean up the node count (node_comment_statistics I believe) and you’re pretty much done
Yeah, that is just a quick overview at the moment. It doesn’t handle the fancy stuff like attachments, avatars, smilies… but that’s all icing. At least you are getting the important content across.
I hope it gives someone enough information


