Closed (fixed)
Project:
phpBB2Drupal
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2006 at 02:58 UTC
Updated:
20 May 2009 at 22:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
beginner commentedSpecifying a prefix on a per-table basis would be an overkill.
Apparently, nuke based cms override the phpBB user table and replace it with their own, which is also the problem behind this issue:
http://drupal.org/node/78514
Currently, I am only supporting vanilla phpBB.
Supporting modified phpBB (to work with other CMS) may be possible, but:
1) does each *Nuke CMS modify phpBB in the same way?
2) are the changes in the user table important compared to a vanilla phpBB. If yes, major parts of the module may need to be rewritten to include if(){ } statements... :(
If you include a patch with all the modifications you have made to make the module work for you:
1) other Nuke users could apply use the patch.
2) I can see how difficult it would be to add a few extra checks.
FYI: here is a dump of the user table schema:
Comment #2
beginner commentedbtw, I searched but couldn't find any relevant information on the Dragonfly web site.
the wikipeadia article, however, said that Dragonfly included phpBB "with enhancements".
Comment #3
webchickWow, I totally forgot I created this issue until I sat down tonight to port this site again. ;)
Here's the structure dump for dragonflycms. I *think* this is vanilla, no hacks. It does indeed differ from the phpbb user schema:
I'll hack the crap out of this module and post a patch. ;)
Comment #4
webchickOk, here are the changes that I needed to do to get this module working properly for DragonflyCMS:
- hard-code the users table as "cms_users"; all other tables were fine with the cms_bb prefix.
- remove the check for the comment_files table (http://drupal.org/node/114425)
- use the cms_users.user_level field rather than cms_users.user_active field to base the user's status on. (blocked vs. non-blocked) (http://drupal.org/node/114438)
- Decode HTML entities in the text, as it was stored in the db encoded. (http://drupal.org/node/114451)
Those changes are incorporated into this patch.
Also, make sure to check "Convert Registration Date" under "Misc. settings" (thanks, beginner; I don't think that was there last time I tried this).
Known issues:
- Polls don't import properly. I haven't had a chance to look into this and might not, since my users don't really care about the polls.
Overall though, this module probably shaved 600 hours off what I would've otherwise had to do by hand with SQL/PHP. You've covered a very impressive amount of edge cases with this module! Hopefully this patch can help other people who are migrating from "almost-but-not-quite" PHPBB systems.
Comment #5
webchickHere's an update of this patch that applies to the Drupal 5 version once http://drupal.org/node/112032 is applied. There was a failed hunk due to a bug fix.
Comment #6
hardlocke commentedwhere can i get the modiefied phpbb2drupal.info file?
i can't apply the .patch file... always errors :-(
please, i need help ;-)
Comment #7
naheemsays commentedThat is an old patch that will no longer apply to phpbb2drupal.
Have you tried to import using the plain module? what errors have you encountered? The main changes I can see in that patch are that instead of using a modifiable prefix for the database tables, the patch changes the prefix to cms_ (ths standard prefix in the module is phpbb_) - and you can enter that into the settings.
If you do want to import from dragonflyCMS your best bet is trial and error. try the module as is and see what works and what breaks.
Comment #8
naheemsays commentedMarking as closed. This module is only to support import from vanilla phpbb, however DragonflyCMS / *Nuke CMS may use the same schema in which case the module will work. If however they use a different database schema, there will be problems.
(Looking at that patch suggest that there will be no problems, as only one line touches tables names - the status. the rest is separate.)