Hari's Corner

Humour, comics, tech, law, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and then

Working on WordPress to b2evolution importer

Filed under: My software by Hari
Posted on Sun, Sep 30, 2007 at 19:42 IST (last updated: Wed, Jul 16, 2008 @ 20:19 IST)

I've now working on a WP to b2evolution importer feverishly as I haven't been able to find one anywhere on the internet. They say, if you cannot find somebody to do the job, do it yourself ;) Once that is done, I'll probably switch over to b2evolution and share the code with the community. I'm working with Francois Planque, the b2evolution developer to ensure that everybody benefits from this piece of code.

I've done the categories and posts tables but I have yet to finish the comments and the users table. At this point things look really good. This importer works with WP 2.3 (only) and converts to b2evolution 2.0.1 (alpha).

Should be done in a day or so. In the meantime if anybody is interested in testing it, please drop a comment here and I'll let you have the code when I finish it. Developed in an environment of PHP 5 and Apache 2+ but it should work with PHP 4 as well as I've not used an PHP 5 specific functionality as far as I can see.

8 comment(s)

  1. Great stuff. Interesting that I switched from B2Evolution to WP

    Comment by MrCorey (visitor) on Sun, Sep 30, 2007 @ 22:01 IST #
  2. Well, I'm disgruntled with WP and besides there is no importer from WP to b2evolution, so I took it up as a challenge.Necessity is the mother of invention :D Oh, by the way, I've done the comments importing bit too. Now only have to do the users.

    Comment by hari (blog owner) on Sun, Sep 30, 2007 @ 22:20 IST #
  3. Disgruntled? Hmmm...You know, I haven't upgraded to WordPress 2.3 yet. Maybe I'll do that in the next couple of hours. I hope it doesn't break anything. I have backups, just in case.

    Comment by RT Cunningham (visitor) on Sun, Sep 30, 2007 @ 22:55 IST #
  4. I went from b2E to WP because I wasn't really sure what I wanted at the time. I understood the theme structure, etc a lot more with WP.

    Comment by MrCorey (visitor) on Sun, Sep 30, 2007 @ 23:06 IST #
  5. I've become paranoid about how I back up, since the hard drive crash on my host's server (what happened to the daily backups???I now do a weekly back up of my database tables, as recommended in the Codex, as well as exporting the posts/cats/comments/etc with the built in exporter to its .xml file. I also use the back up facility built into Plesk (I really prefer cPanel, but Plesk's ok). And, if there's any significant change, I also use an FTP program to back up my wp-config directory.Of course, that didn't stop me from royally screwing up my database with an upgrade to 2.3 from the Alpha build that I was running (no worries, BTW, RT. That was due to the way I had been upgrading and reverting with the nightly builds, etc).

    Comment by MrCorey (visitor) on Sun, Sep 30, 2007 @ 23:17 IST #
  6. Hey ;)About the "theme structure", b2evolution's reorganized & enhanced skin structure should be complete in a week or two.

    Comment by Francois (visitor) on Mon, Oct 1, 2007 @ 05:47 IST #
  7. MrCorey, you're right about WP in a sense. It's also tailored more to the "average" blogger than a geek. :)RT, upgrade should be fairly easy.Francois, thanks for the heads up! :grin:

    Comment by hari (blog owner) on Mon, Oct 1, 2007 @ 06:36 IST #
  8. The importer is finished now and I'm now posting this from b2evolution :D

    Comment by hari (blog owner) on Mon, Oct 1, 2007 @ 21:39 IST #

Comments closed

The blog owner has closed further commenting on this entry.