It would be nice if phpbb2drupal was compatible with Drupal 5.0.

Maybe somebody already has a patch?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cross_and_Flame’s picture

I just did it in 4.7, then upgraded to 5.0.

Worked perfectly, and I'd prefer the errors and timeouts to be fixed in this version rather than spend time on 5.0.

But still, yes, a 5.0 version would be helpful. :-)

beginner’s picture

neclimdul told me months ago he was working on an upgrade patch. I guess he didn't.
I don't have time this week, but if need be, I'll prepare a patch myself that I hope some of you can test.
That'll be in a week or two, though.

webchick’s picture

When you eventually do get around to porting this, take note of the drupal_execute function. This function lets you pre-populate form arrays and then pass them in, thus submitting forms programmatically (and calling their submit/validation routines). It may be able to cut down on a lot of code. Check out the default.profile file in core, specifically the default_profile_final() function, which sets various node settings this way.

gadzuk’s picture

FileSize
3.86 KB

Add the following to phpbb2drupal.info

; $Id$
name = phpbb2drupal
description = Converts a phpbb forum into Drupal

And apply the patch attachment. I've not worked on the redirect, just the import / conversion.

beginner’s picture

Status: Active » Needs review

Thanks to gadzuk for posting a patch.
I'll absolutely take some time next week to organize a proper 4.7 release, and review the patches posted earlier by webchick.

Meanwhile, could other interested people help us by reviewing the patch.
Thanks.

beginner’s picture

Status: Needs review » Needs work

Hmm, a quick look at the patch shows it wasn't diff'ed against the latest HEAD.
I have committed webchick's bugfix since you checked out the module, and the patch reverts that fix.

gadzuk’s picture

Status: Needs work » Needs review
FileSize
2.44 KB

Updated patch including webchick's bugfix

webchick’s picture

For some reason I get:

Hunk #1 FAILED at 46.
Hunk #2 FAILED at 189.
Hunk #3 FAILED at 711.
Hunk #4 FAILED at 783.
Hunk #5 FAILED at 826.
5 out of 5 hunks FAILED -- saving rejects to file phpbb2drupal.module.rej

Here's a re-roll, with gadzuk's changes, plus a couple other minor fixes. Note that this does not include the comment_files bug which is required in order for the module to work (but is a bug on the 4.7 branch as well).

webchick’s picture

FileSize
2.44 KB

...and a patch would be nice, huh? ;)

barretr’s picture

Status: Closed (fixed) » Needs review
NaheemSays’s picture

Patch works fine for me.

I will later actually test the patched module.

One thing though. phbb_redirect is missing an info file.

airblaster’s picture

Finally launched the site I was needing the module for.

Basically phpbb2drupal worked great, just a few problems I noticed:

  1. I guess my server didn't import all posts in a single turn (white page). By repeating the step it seems all posts have been imported, though.
  2. I've had some trouble with node_access, could possibly be caused by that (could also be caused by taxonomy_access, though): after some time a lot of posts weren't visible to anybody but administrators. The node_access table didn't contain any entries for the affected nodes. Rebuilding node_access solved the problem temporarily, but it occured again after some time. Right now everything seems to be fine (no problems since about 20 hours). That's a strange problem.
  3. There seems to be a small problem with importing the signatures, http:// was changed into http//
  4. The URL to the actual migration page (shown after configuring phpbb2drupal) actually leads nowhere. I entered it manually.
  5. I guess all phpbb2drupal menus should be a submenu of settings, which currently isn't the case

Thanks for your great work, it helped me a lot :)

Yura Filimonov’s picture

Can somebody explain how I can use the phpbb-drupal5 patch?

Does it work alright?

Thanks.

NaheemSays’s picture

I can also confirm this works from phpbb 2.0.21, albeit a little slowly.

@taron13: you can follow the instructions on here: http://www.contractwebdevelopment.com/patching-drupal-modules-in-windows

When you install cygwin, just make sure you select patch-utils from the development group.

Then put all the phpbb2drupal files in a folder, along with the patch file and find it using cygwin. then run
patch -p0 < phpbb2drupal-5.x.patch

barretr’s picture

Mojah’s picture

FileSize
77.65 KB

Quick review...

Applied the patch with no problems. Import worked perfectly.

I imported my phpbb db into the the Drupal db which seemed to work much faster.

Maybe a little counter as suggested here would be useful. A small how to with a few tips would also be useful. I can help with this.

Thanks for the patch and this much appreciated module.

@taron13: I've attached the patched file (change .txt extension to .module). Download this http://ftp.osuosl.org/pub/drupal/files/projects/phpbb2drupal-HEAD.tar.gz and overwrite the module file

Yura Filimonov’s picture

Thanks for the patched module.

I have copied the phpbb2drupal folder to the modules folder and don't see it in the modules page after refreshing the page at Drupal 5.1.

What do I do to see the module?

Yura Filimonov’s picture

(couldn't edit the previous comment)

Created an .info file from the data, issued by the patch, now appears in the list.

nitronen’s picture

I couldn't see it in drupal 5.1 module page too, is there some more thing to do to see that module settings?

Thanks!

fusion94’s picture

I've installed the module and I believe I have it setup properly although I'm constantly getting this:

Execute Migration

You cannot migrate the data now. Please complete the setup first

Anyone have any ideas?

nitronen’s picture

Could somebody attach that finished module for people who aren't familiar how to patch file.

I still trying to convert phpbb to drupal 5.1, but without success :(

Thanks!

duncancarver’s picture

Hi Guys,

I am in urgent need to get this working on my site and am willing to pay someone for their time.

I have tried using the patches but have no real idea how to patch the module properly although have tried a few things, nothing successful. I am not running a windows server so the instructions mentioned above about applying the patch meant little to me.

I'm running the latest version of Drupal and PHPBB 2.0.22.

I imagine this is a five minute job for someone who knows what they are doing. Willing to pay $100 for that time with payment made immediately upon successful completion via PayPal.

Please drop me an email or private message if interested. I need this completed like yesterday.

Thanks,

Duncan Carver

Mojah’s picture

Hiya Duncan,

Happy to do this for you cos it really is a quick process. Not 5 min, more like an hour, but nonetheless quick. It did take me a while to do the import and it was also somewhat urgent when I did require to do it.

Here's what I require to help...
1) SSH access...to dump the tables required by phpbb2Drupal and import into your Drupal Db (pref with wget permissions if the phpbb db is huge and must be moved from one server to another)
2) phpmyadmin access
3) Super Admin login to Drupal account
4) ftp access

I'll try to write out what I remember here so you can give it a go on your own....

1) Dump the entire phpbb db mysqldump -u username -p dbname > dumpfile.sql
2) Import into a newly created db (the one you will be using) mysql -u username -p dbname < dumpfile.sql
3) Install Drupal onto this very same db
4) Install the phpbb2drupal module attched above. You will have to create the .info file if I remember correctly
5) Go through the settings and configure accordingly. The module will auto-detect the correct tables as they are in the same db
6) Run the import script
7) Login through phpmyadmin and delete all the phpbb tables
8) Uninstall phpbb2drupal and delete it's tables from the db

You may want to increase php timeout on your php.ini file or httpd.conf. I also believe this can be done in Drupal's settings file and works for some people. I did the import on CentOS 4.4 with Apache.

If all of this sounds kung fu to u drop me a pm with some details and I'll gladly help...if it works out in less than an hr ;) cos I'm also super busy. If it wrks out, it wud be cool if you'd donate that $100 to the Drup Fund.

Mojah’s picture

A few other points came to mind...

Install the bbcode filter http://drupal.org/project/bbcode
Configure this in your input format settings and make it the lightest
Then set Drupals HTML filter to sort out the line breaks and paragraphs
Set the spam nofollow option for links if required
Turn off path auto and rather run in after the import

The import process will quite likely produce white screens. In my case, refreshing the page until the import process was complete managed to get all the data into Drupal.

I had a relatively small phpbb db with around 3700 topics (35megs in size)

Overall this module was a great help as the site now has around 3700 new nodes (pages according to Google) indexed and semi-optimised ( www.heavenletters.org/forum )

duncancarver’s picture

Hey Mojah and Others,

Thanks for the offer but webchick bet you to it and sent me laymans instructions. I managed to get it working fine a few days again. Thanks again however.

For anyone who needs simple instructions like me here's a step-by-step of what I did...

1) Download the latest release of PHPBB to Drupal:

http://ftp.osuosl.org/pub/drupal/files/projects/phpbb2drupal-HEAD.tar.gz

...unzip and upload to your sites/all/modules/ folder on your server just like any other module installation.

2. Download http://drupal.org/files/issues/phpbb2drupal.txt, and rename it as "phpbb2drupal.module" and copy it over the existing phpbb2drupal.module file in the "sites/all/modules/phpbb2drupal" folder.

3. Create a file called "phpbb2drupal.info" in the same folder. It needs to contain the following:

name = phpbb2drupal
description = Converts a phpbb forum into Drupal

That should be it. However, I did encounter a few problems along the way outlined below...

PROBLEMS >

When uploading this module, it seemed to, for whatever reason, disable the "comments" module. This meant the phpbb2drupal conversion module wouldn't work, as disabling the comments would disable the forums etc. To solve this I copied the entire "comments" module folder from "/modules/comments/" to "sites/all/modules/comments/" and then it appeared again and fix the issue.

When running the conversion process some MYSQL table errors were presented when carrying out the step by step transfer process. I can't recall specifically what these were (sorry should have written them down) but they were along the lines of a specific table could not be found in the database. I simply hit the back button after waiting a few seconds. The option I have processed had dissapeared and had actually processed correctly (albiet minus one thread but that was ok). It also did this on a couple of other steps (but not all), and in each case the data was transferred correctly. So if this happens, simply ignore it and hit you back button and see if it worked. If not, sorry but I'm not a techie so have no way to explain how to fix this.

Hope this helps anyone else having trouble and a big thanks to webchick and mojah for making this patch available.

Best...

Duncan Carver

ryivhnn’s picture

It wouldn't have been comment_files by any chance?

I think the table for comment_upoad attachments is actually called comment_upload_files which is what I changed the script to to avoid problems.

I should have a go at this 5.1 thingami and see if that works better, I've been practising on a 4.7 install and upgrading to 5 and keep breaking something.

beginner’s picture

Status: Needs review » Fixed

#9 submitted by webchick on February 3, 2007 - 10:41
Attachment: phpbb2drupal-5.x.patch (2.44 KB)

committed. Thank you very much webchick.

Anonymous’s picture

Status: Fixed » Closed (fixed)
Zoologico’s picture

Tracking.

Status: Needs review » Closed (fixed)