You are not logged in.
- Topics: Active | Unanswered
#1 2008-09-16 09:42:40
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
The Converter
I've taken the task upon me to create the converter. The basic idea is pretty simple, but the implementation will need quite a bit of testing.
One thing is certain though: with the way it is now, it'll be PHP5 only, for the simple fact I want proper OOP to do it.
The main idea behind the converter is this:
You upload FluxBB to a server
You upload the converter to the same folder as FluxBB
In the converter, you can choose which forum to migrate from. The converter will scan a directory with subdirectories for each converter. In these subdirectories will also be a directory extensions, which the forum-specific converter will scan. This directory can contain install and migration tools for certain extensions like PMs, which would be created and maintained by that extension's author.
You fill in the data you'd fill in on a standard install (DB info, admin login, ...), and also provide the DB info for the forum you're migrating from.
FluxBB is fully installed by calling install.php, and a cache file is generated in the converter directory with the DB info of the forum you're migrating from.
The basic converter interface defines a function for each FluxBB table that needs to get data from another forum, so obviously things like the search and extensions are omitted there. The forum-specific converter must then implement this interface, but can also define its own extra functions for handling, say, subforums (if an extension for that isn't available etc). All that is up to that forum-specific converter, and it implements it how it wishes.
The selected converter gets loaded, and gets passed a stage number to its constructor. With this the converter can, for example, process users and a 1000 posts, then redirect to converter.php?stage=2, and do the next 1000 posts, and so on. Again, this'll be handled by that converter, and this is why we need that cache file I mentioned earlier.
When done, you get a link to your converted forum and it should be fine.
What do you think of it? Have you noticed any great flaws in the plan (I'm sure you have)?
I'd really like some feedback on this, since I have no past experience converting forum software
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#2 2008-09-16 09:56:23
- Christian
- Member
- From: Vienna, Austria
- Registered: 2008-05-10
- Posts: 463
- Website
Re: The Converter
PHP5 only means a lot of people will knock on your door, asking why the converter doesn't convert their bitchy phpbb forum running with PHP4.
That's nearly the same as if you make FluxBB PHP5 only.
Not that I use PHP4, but I bet their will be a lot of problems.
https://www.stationista.com - Business podcast hosting
Offline
#3 2008-09-16 10:02:13
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
Well, implementing all that in PHP4 would mean I'd get gray hair fairly quickly.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#4 2008-09-16 10:09:33
- Christian
- Member
- From: Vienna, Austria
- Registered: 2008-05-10
- Posts: 463
- Website
Re: The Converter
So you already got gray hair when you started contributing to FluxBB!?
https://www.stationista.com - Business podcast hosting
Offline
#5 2008-09-16 10:09:47
- Jérémie
- Member
- From: France
- Registered: 2008-04-30
- Posts: 629
- Website
Re: The Converter
Yes, and no. I think the Converter should, if possible, have the same requirements as FluxBB itself. Because people will choose the software based on its requirements, and then may hit a wall with the Converter.
However, if that's a big deal, I think the system requirements should say something like “PHP 4.x for the forum, PHP 5.x for the Converter”.
But if FluxBB dropped the PHP 4 support altogether, that would be fine too, since it's quite easy to explain to people that the PHP group itself dropped it over a year ago.
Offline
#6 2008-09-16 10:13:51
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
So you already got gray hair when you started contributing to FluxBB!?
Not that I know of, no
Yes, and no. I think the Converter should, if possible, have the same requirements as FluxBB itself. Because people will choose the software based on its requirements, and then may hit a wall with the Converter.
That's true, but the converter isn't really part of the forum software. Think of it as a game designed to run on all platforms, but a tool for that game created in .NET 3.
But if FluxBB dropped the PHP 4 support altogether, that would be fine too, since it's quite easy to explain to people that the PHP group itself dropped it over a year ago.
I'm not sure we want to do that yet, but it would make a few things easier I guess. But for now, there's no need yet.
To be honest, I don't think people that have a forum with enough content 'worth converting' will be running PHP4
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#7 2008-09-16 10:20:50
- Christian
- Member
- From: Vienna, Austria
- Registered: 2008-05-10
- Posts: 463
- Website
Re: The Converter
To be honest, I don't think people that have a forum with enough content 'worth converting' will be running PHP4
What if they want to convert their big forum from a board running on PHP4 to FluxBB running on PHP5?
https://www.stationista.com - Business podcast hosting
Offline
#8 2008-09-16 10:24:40
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
That isn't a problem, since the converter runs on the same server as FluxBB, which would be PHP5.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#9 2008-09-16 10:54:06
- Strofanto
- Member
- From: Italy
- Registered: 2008-05-14
- Posts: 288
Re: The Converter
What forum system will be included in the converter?
Offline
#10 2008-09-16 10:57:34
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
No idea yet. We did play with the idea of including converters for switching database (so FluxBB on pgSQL -> FluxBB on MySQL for example).
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#11 2008-09-16 10:58:10
- Strofanto
- Member
- From: Italy
- Registered: 2008-05-14
- Posts: 288
Re: The Converter
No idea yet. We did play with the idea of including converters for switching database (so FluxBB on pgSQL -> FluxBB on MySQL for example).
That's a good idea IMO.
Offline
#12 2008-09-16 12:12:19
- liquidat0r
- Member
- From: London, England
- Registered: 2008-05-22
- Posts: 418
- Website
Re: The Converter
What forum system will be included in the converter?
The major ones / most popular ones I presume.
Offline
#13 2008-09-16 12:14:36
- Strofanto
- Member
- From: Italy
- Registered: 2008-05-14
- Posts: 288
Re: The Converter
Offline
#14 2008-09-16 12:30:23
- Reines
- Administrator
- From: Scotland
- Registered: 2008-05-11
- Posts: 3,197
- Website
Re: The Converter
with the way it is now, it'll be PHP5 only, for the simple fact I want proper OOP to do it.
I don't like that idea, it should have the same requirements as FluxBB does.
What forum system will be included in the converter?
The idea is to create it in such a way that there is a base then each forum software will have it's own class (file) which describes how to convert from it, meaning people (or we) can add support for extra things if needed. I assume initially we would aim to support the most popular ones and then consider adding support for others if requested.
Offline
#15 2008-09-16 13:55:51
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
Find me interfaces in PHP4, and sure. I can try doing it another way, but I doubt it'll be that easy to do.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#16 2008-09-16 14:27:35
- Felix
- Member
- Registered: 2008-05-13
- Posts: 352
Re: The Converter
It will be much cleaner in PHP5.
And PHP4 is dead... People should start to realize it and push their hosting companies...
And plus for this one
Offline
#17 2008-09-16 15:40:05
- Smartys
- Former Developer
- Registered: 2008-04-27
- Posts: 3,139
- Website
Re: The Converter
Find me interfaces in PHP4, and sure. I can try doing it another way, but I doubt it'll be that easy to do.
If you write the code for PHP5, I can write a PHP4 compatible version.
Interfaces don't exist in PHP4, but you can fake it. You just need to have an interface class for PHP5 and a fake interface class (a class with the proper methods defined but that simply calls die) for PHP4. Obviously not the same as a real interface, but it should be close enough to allow the code to run on PHP4.
Offline
#18 2008-09-16 16:04:22
- eternal243
- Member
- From: Östersund, Sweden
- Registered: 2008-05-28
- Posts: 205
Re: The Converter
elbekko wrote:Find me interfaces in PHP4, and sure. I can try doing it another way, but I doubt it'll be that easy to do.
If you write the code for PHP5, I can write a PHP4 compatible version.
Interfaces don't exist in PHP4, but you can fake it. You just need to have an interface class for PHP5 and a fake interface class (a class with the proper methods defined but that simply calls die) for PHP4. Obviously not the same as a real interface, but it should be close enough to allow the code to run on PHP4.
thats smart! (no pun intended)
Offline
#19 2008-09-16 16:04:55
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
That's what I was thinking, but it's a mess.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#20 2008-09-16 16:13:48
- chris
- Member
- Registered: 2008-05-09
- Posts: 21
Re: The Converter
This is a great idea and all, but perhaps Flux's limited development resources would be better used to complete 1.3 before it is diverted to build tools of no use to those of us already using Flux.
Offline
#21 2008-09-16 16:26:58
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
The thing is, that right now us developers have to somewhat wait for the markup to be finished, as you can see from the current active tickets.
And I don't want to waste that time
Now, this is only a sideproject I'm doing since mainly I'm still focused on the core. But it still needs to be done.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#22 2008-09-16 19:27:10
- SuperMAG
- Member
- Registered: 2008-05-10
- Posts: 715
- Website
Re: The Converter
also check the mybb converter, migrater (whatever) its has prety much all the features that are needed.
MyFootballCafe.com is Now Online!
Offline
#23 2008-09-16 20:36:07
- kpdesign
- Member
- From: off the beaten path
- Registered: 2008-05-09
- Posts: 71
- Website
Re: The Converter
Strofanto wrote:What forum system will be included in the converter?
The major ones / most popular ones I presume.
elbekko -
I appreciate you taking on this effort - I know it's a lot of work, but will be worth it in the end so that more folks can switch to FluxBB.
I'd like to add one forum program to the list of requested converters that's missing from the big-boards.com list - Vanilla.
Thanks!
Offline
#24 2008-09-16 20:58:00
- elbekko
- Former Developer
- From: Leuven, Belgium
- Registered: 2008-04-30
- Posts: 1,132
- Website
Re: The Converter
I've already mentioned what will likely be included (the converter between pgsql/mysql/sqlite). The rest will be created later on I guess, by the development team or by the community.
Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks
Offline
#25 2008-09-20 04:13:11
- ProWeb
- Member
- Registered: 2008-05-17
- Posts: 50
Re: The Converter
To be honest, I don't think people that have a forum with enough content 'worth converting' will be running PHP4
For the record, I've got one of the biggest forums running PunBB and I'm still on PHP4. Not that I need a converter, I'm just saying that if my site was on another platform and I couldn't convert it because of PHP5 requirement, that would be a deal breaker.
Also, I didn't know there was discussion about FluxBB requiring PHP5 in the future?!?
Offline