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.
PhpBB migrate script - Updated for beta 5
- 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.
- Edited
Hey,
I recently tried this script.
I was able to migrate all post and topics, but the username in the posts view are [deleted]
But on the home page, i was able to see the correct username of users for the specific post. When checking the database 'post' table the user_id is 0 for all.
How can I solve that? @robrotheram @deseven
On the way, i have actually solved it ?
On line 161 its says $posterID = 0; which i chnaged to
$posterID = $post['poster_id'];
Solving the issue. now looking for a appropriate way to redirect the Xenforo URL to flarum ?
I can not login with any user of imported, it is as if all the passwords were wrong
@Nomak; check out the README.md file ?
The passwords are reset for all users.
@robrotheram I haven't checked how passwords are handled in Flarum but sha1(md5(time()))
is extremely easy to brute force. time()
only changes once per second. It's probably safer to set this the password to something like 'disabled' or an empty string (depending on how passwords in Flarum are handled).