Closed (fixed)
Project:
phpBB2Drupal
Version:
4.7.x-1.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
19 Apr 2006 at 20:04 UTC
Updated:
16 Jun 2007 at 04:48 UTC
Jump to comment: Most recent file
I'm wanted to use this module with 4.7. That ended up requiring a lot of work... I made a patch that is certified WFM. Feel free to contact me for more information.
Changes and additions:
$output .='';
not implemented
Notes:
Unfortunately, the spacing changes where everywhere and this makes it hard to review the actual changes.
This patch may not work for everyone(YMMV). It was used to convert a small phpBB forum over without any problem though.
(1)
$forum_id = db_result(db_query('SELECT forum_id FROM %stopics WHERE topic_id = %d',$pre, $topic->topic_moved_id));
$topic->topic_moved_id was $topic_moved_id. This occured in 2 places. phpeclipse will show these if you want to backport to 4.6.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | phpbb2drupal_47_update.patch | 80.06 KB | neclimdul |
Comments
Comment #1
neclimdulthe patch
Comment #2
beginner commentedThat's great!
When I get some time, I'll review the patch and probably commit most of it.
Thanks :).
Comment #3
beginner commentedI read through most of the patch, and your changes mostly make sense. Since it is a big patch, I have committed it as is, knowing that there are many small issues to iron out.
Beside those you mention, below there are a few notes I made while reading.
I don't have time to test the patch today, but will soon. Until then, the patch is made available to those who would like to use it.
Thanks.
- comment.module: handling different for 4.7. -> see contrib module.
Here:
the script should exit but doesn't.
I'm not sure the following will work as intended. To test.
Why comment this out?
Comment #4
neclimdulAbout the abort, yeah it should return from the function right there. forgot that.
Your also right about the break and the import spammers. That should be a continue. I was trying to flatten the loop a little to make it more readable.
And as for the commenting the authenticated users. I was testing that and forgot to uncomment it.
Good eye.
As one more note, I realized one of the things I didn't take a look at was the pm import. It seem to run through ok without any changes on a bigger forum I grabbed and I have my PM's. Also, the patched script seems to have worked fine on the import of that forum as well(19000 posts).
Comment #5
beginner commentedthanks.
I have fixed issues in #3.
I still have problems with privatemessages, but I'm not sure yet if it's an issue with our module.
Also I still have to test polls.
But the rest seems to work nicely.
Comment #6
hadishon commentedI just converted my phpbb to 4.7 without any problems. The conversion went well. The problem I have now though is that after installing the viewtopic.php and story.php files I get this error when trying to view a post on the phpbb site:
It doesn't redirect. Any suggestions?
Comment #7
beginner commentedHi Adishon,
Thank you for reporting.
You say the migration went well. Can you tell us if you migrated the private messages, the polls and any file attachements? Those are areas that need more testing and I wondered how it went for you.
For the redirect, I am not the author of the code, and I have not tested them yet, so I don't know. I'll do so within the next few days (hopefully tomorrow) and come back to you.
Comment #8
beginner commentedhadishon, see this issue: http://drupal.org/node/60655.
Comment #9
hadishon commentedThe conversion included users, containers, topics, posts, and private messages. No attachments or polls.
The only small thing that happened that I didn't like was all the registration dates for the users got updated to the time I did the conversion. I can live with that but it would have been nice if it kept the old date.
Comment #10
mjolley@buy-hot.com commentedcomment.module still contains calls to form_textarea(). Should these be changed?
Comment #11
beginner commentedoops.
The comment.module is not necessary for 4.7. I'll delete the file from the final phpbb2drupal 4.7 release.
Same with upload_comment.module: use the official release of the module instead.
I'll try to clean everything up and come with a proper release by next week (well, that's the plan, anyway).
thanks.
Comment #12
mjolley@buy-hot.com commentedOk, I simply replaced phpbb2drupal/comment.module with the regular 4.7 comment.module and everything seems to work fine. Maybe the file is no longer needed.
Comment #13
mjolley@buy-hot.com commentedOh, nevermind :) So I can just delete these and it'll work? No missing reference problems?
Comment #14
beginner commentedhttp://drupal.org/cvs?commit=32243 :
removed comment.module comment_upload.module comment_upload.mysql:
With 4.7, there is no need to have a patched version of comment.module.
Comment #15
beginner commentedThis was actually a bug.
It's fixed in cvs. http://drupal.org/node/64681
If you can code a little, it's still not too late to import the registration dates.
Comment #16
mjolley@buy-hot.com commentedA general question: Once I have the stuff imported and working, is there a way to get rid of phpbb2drupal entirely? I seem to lose all comments when I disable the module. I apologize in advance for asking this question here, but I'm already in the conversation :)
Comment #17
beginner commentedIt's better to open another issue.
In any case, you should be able to disable phpbb2drupal after the import. The comments are imported into the drupal system and phpbb2drupal doesn't do anything to them after. If you really have a problem with comments, open another issue and describe in details what is happening.
Comment #18
beginner commentedComment #19
(not verified) commented