Sorry to butt in to this discussion, but are there any suggestions how to migrate or redirect existing phpBB urls? I have a forum with 7000 unique topics, using the standard viewtopic.php?f=52&t=8814. As far as I can see, when migrating to flarum, all existing url's would simply become 404.
PhpBB migrate script - Updated for beta 5
- Edited
I've been editing this script for quite a while now. It's still not finished but it has worked great for me.
P.S.: Don't mind Github's silly indentation.
gist.github.com/viruxe/5a1be93ec1e8e6c9288b
VIRUXE wow excellent work I been meaning to get back to this but life been getting in the way glad someone else has done more work on it ?
robrotheram well I'm not too happy about the code but as long as it does the job it should be fine.
Although I think this would benefit from a proper repository.
VIRUXE I think you are right so I went ahead and created one https://github.com/robrotheram/phpbb_to_flarum I added my script and then committed your script so we can see the changes you are welcome to do with this as you want
robrotheram Actually I was thinking about having your script in a repo and then I would commit my parts of code and document all the changes with each commit instead.
- Edited
Updated the initial post.
Thanks to all the contributions the script has had
TLDR script works for beta 5
now only does DB --> DB migration (no messy sql files to worry about)
script is here: https://github.com/robrotheram/phpbb_to_flarum
I totally forgot about this. I'll have a look and see if I can help with anything.
VIRUXE
no problem I only really got back to it today, On of my plans now is to work on some rewrite rules for nginx / Apache since now topic/discussion id's are preserved its now possible for old forum links to work ?
I wonder if we could rewrite the phpbb session handler code to work with flarum so the passwords from phpbb would work with flarum on imported users.
The seo is a little more complicated, I think one should avoid phpbb/nginx rewrites and stick to routing from the database.
isti37 There is the possibility to create a phpbb authentication plugin for flaurm that would allow them to log in with the old username and password without having to do any sort of decryption.
On the seo how would you do it since old links to domain/viewtopic.php?f=12&?t=121 would not work My plan is to have a viewtopic.php the would get the topic id and redirect to the correct post but I am open to suggestions
- Edited
I am going to just hook into phpbb and send the form from flarum to phpbb auth and login the user on flarum if the phpbb session is set. (the user doesn't have a set password field in flarum -> phpbb login until one changes its password and flarum takes over the login)
I am waiting for beta 0.6 and I'll migrate a big forum to flarum. I'll keep the old forum locked and redirect everyone to the new forum.
Which phpBB version is stable for this script?
Finally, after few hours... I am able to convert phpBB to Flarum Beta 5 succesfully.
Now my 2 millions++ posts forum has alive, and being checked before release it to production forum..
Proud being the biggest one..
Yes, the SSH Composer setup make little bit headacache, but I satisfied with the results.
I am going to write the installation tricks in separate discussion
I think, I can modified the database schemes from the script, to convert MyBB forum into Flarum easily with ?
FBI wow I am amazed it work that well on that size of forum thanks for using the script
robrotheram
Your migration scripts so great.
I have experience to migration at least 4-5 forum engine for many years, and use their popular migrating script also. My big forum cause a huge cpu load, and mostly shared-hosting company "push-me-out" and leave from their server ?
Thats why, migrating and moving from server to server is my job before LoL :p
And your script is the coolest, let the process continue even some error occurs.
By modifying database schemes etc, you have just put the foundation-line for others to get migration tools for any forum.. As long We know the database scheme.
Thanks Bro, for such great tool...
After my forum alive, I will trying to convert MyBB also..
- Edited
Thanks! Just migrated our old forum with 3000+ users and 100000+ messages to Flarum.
I've added some useful stuff in my fork, such as basic attachment transition, discussions time update and cyrillic tags support.
Very quick and dirty code (and that's why there is no pull request for it), don't touch it you don't know what you're doing.