WordPress to b2evolution import script
Filed under: My software by HariPosted at 10:14 IST (last updated: 30 Oct 2008 @ 23:00 IST)
NOTE: I no longer maintain the original version of this script as both WordPress and b2evolution have changed their database structure since b2evolution 2.0.1-alpha and WordPress 2.3. If anybody wants to maintain this script for current versions of the respective software, please feel free to take the code and incorporate it from b2evolution. Also please post your questions at the b2evolution forums as you are more likely to get active responses from there.
Here's my import script which I used to convert this blog from WordPress 2.3 to b2evolution 2.0.1-alpha. The attached file has instructions on how to convert your blog. I strong recommend that you peruse the README file before using it. This works only with WordPress 2.3 and not versions below it. If you have an older WordPress blog, please upgrade first to 2.3 before importing.
I have enjoyed using b2evolution so far as it's much more configurable than WordPress (in the admin interface) and it's more like a CMS than a blog. However, you can check for yourself. This importer does not touch your existing WordPress installation, so there is no harm in testing it out.
You can ask questions and provide your feedback here! I would appreciate it.
Download link: wp_2_b2evolution.zip (6.6 kB)
44 comment(s)
Leave a comment »Comment by RT Cunningham (visitor) on 4 Oct 2007 @ 10:21 IST #
Comment by hari (blog owner) on 4 Oct 2007 @ 12:12 IST #
Comment by Walter Cruz (visitor) on 4 Oct 2007 @ 19:44 IST #
Comment by hari (blog owner) on 4 Oct 2007 @ 19:51 IST #
Thanks again for the script!
Comment by M Ardat (visitor) on 17 Oct 2007 @ 09:28 IST #
Comment by hari (blog owner) on 18 Oct 2007 @ 08:22 IST #
Comment by M Ardat (visitor) on 18 Oct 2007 @ 11:45 IST #
Comment by hari (blog owner) on 19 Oct 2007 @ 07:36 IST #
Comment by tapirul (visitor) on 22 Oct 2007 @ 03:05 IST #
Comment by hari (blog owner) on 22 Oct 2007 @ 16:47 IST #
Comment by tapirul (visitor) on 22 Oct 2007 @ 17:05 IST #
Comment by tapirul (visitor) on 22 Oct 2007 @ 22:25 IST #
Comment by hari (blog owner) on 23 Oct 2007 @ 10:04 IST #
Comment by tapirul (visitor) on 23 Oct 2007 @ 11:34 IST #
Comment by hari (blog owner) on 23 Oct 2007 @ 16:15 IST #
It worked well with the info on b2evolution forum on how to change to utf-8 (I only had to edit a php file, the database was already converted tu utf-
Comment by tapirul (visitor) on 30 Oct 2007 @ 00:16 IST #
Comment by hari (blog owner) on 30 Oct 2007 @ 08:40 IST #
There are about 1,100 comments; I wouldn't think it gets timed out, it takes less than other scripts I might run (restoring a database let's say) - it takes about, say, 10 seconds.
Comment by tapirul (visitor) on 30 Oct 2007 @ 22:05 IST #
Comment by tapirul (visitor) on 30 Oct 2007 @ 22:48 IST #
Comment by hari (blog owner) on 31 Oct 2007 @ 08:23 IST #
Thanks again
Comment by tapirul (visitor) on 31 Oct 2007 @ 09:57 IST #
Comment by hari (blog owner) on 31 Oct 2007 @ 10:12 IST #
(on phpMyAdmin i have this message, though, Your PHP MySQL library version 5.0.32 differs from your MySQL server version 4.1.11. This may cause unpredictable behavior, but I don't have other problems)The data base is already UTF-8The posts were all imported, with the correct characters (after doing the changes suggested here http://forums.b2evolution.net/viewtopic.php?t=10992
Comment by tapirul (visitor) on 31 Oct 2007 @ 12:09 IST #
Comment by hari (blog owner) on 31 Oct 2007 @ 14:24 IST #
I am running the blogs on my university's server (I am a student, and we have some webspace alloted), so I cannot test it somewhere else.
I'll try again as soon as possible and let you know.
Comment by tapirul (visitor) on 31 Oct 2007 @ 23:24 IST #
Comment by ameo (visitor) on 10 May 2008 @ 09:22 IST #
Comment by hari (blog owner) on 10 May 2008 @ 10:02 IST #
Jim
Comment by BlueJim (visitor) on 30 Jul 2008 @ 22:53 IST #
Comment by hari (blog owner) on 31 Jul 2008 @ 22:41 IST #
Comment by BlueJim (visitor) on 3 Aug 2008 @ 03:32 IST #
Comment by Sue (visitor) on 2 Sep 2008 @ 09:44 IST #
Comment by hari (blog owner) on 5 Sep 2008 @ 14:36 IST #
Comment by Daethian (visitor) on 6 Sep 2008 @ 22:20 IST #
Comment by hari (blog owner) on 7 Sep 2008 @ 15:50 IST #
I've been attempting to use your script all evening and I've had absolutely no luck at all.I filled in the correct info for the username and database info and still it error's out.http://foundationsound.co.uk/blog/
this is the blog where I am working.the database error is:WordPress database name is incorrect. Please check the name and try again.I created a database user and the password to be sure of each. so I am not sure why this error is given.I would really like to use your script as I have the intention to move all of my blogs from wp as it causes my blogs and seperated domains to be down alot due to sql timeouts.thank you in advance for your response
Comment by RE Ausetkmt (visitor) on 15 Oct 2008 @ 05:55 IST #
I wanted you to also see this error which I've gotten many times.I filled in my password, and instead the word yes appears to have been put in place of my password.help please,
TIA____________________________Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'badgalsr_b2e01'@'localhost' (using password: YES) in /home5/badgalsr/public_html/foundationsound/blog/inc/tools/wpimport.ctrl.php on line 116Error connecting to MySQL. Please check whether the server is running and the host, username and password fields are correct!
Comment by RE Ausetkmt (visitor) on 15 Oct 2008 @ 06:00 IST #
Comment by hari (blog owner) on 15 Oct 2008 @ 08:20 IST #
The screen at the importer looks like this: Trying to import categories and tags:
Reading cat: Home
Reading cat: Dean stuff
Categories inserted successfully!
Tags inserted successfully!
Trying to import posts
Reading:
Reading: Crafts
Reading: About Begin-Again Blog
Reading: Xmas!!
Reading: Halloween
Reading: US
Reading: Website
Reading: Tips
Reading: Eurovision
Reading: Faves
Reading: About
Reading: LIFE
Reading: NEWS!!
Reading: Spooks or spoofs?
Reading: Peeves!
Reading: It's beginning to look (and feel!) a lot like Christmas!
Reading: A Big Worldwide Welcome!
Reading: Hair-do's, holidays and hustle bustle!
Reading: Ta Da! Houston We Have Liftoff!! Website is up!!
Reading: Perfume
Reading: Fave Christmas Songs and why
Reading: Least fave Christmas Songs and why
Reading: Your Xmas Traditions
Reading: Xmas traditions around the world
Reading: Your Festive Recipes
Reading: What you love most about Christmas
Reading: Halloween 2008
Reading: After Halloween...
Reading: Shooting fish in a "Medium" sized barrel
Reading: Complaints!!!
Reading:
Reading: Christmas?? What Christmas???
Reading: New Year - New start?
Reading: Eurovision - Eurowhat??!!
Reading: Totem Ta Dah!!!
Reading: Traffic rank widget!
Reading: NEWSFLASH! - OUR NEW ADVICE & GUIDANCE SERVICE LAUNCHED TONIGHT!!
Reading: Good news and bad this week!
Reading: Coming Soon...
Reading: Sad week
Reading: New happenings and brand-new competitions on the Forum!
Reading: We're moving out...
Reading: Norway - douze points!!!
Reading: New home - whole new world!
Reading: Brand-new shiny Party Plan Manager!!
Reading: Sad news - considering closing the Forum
Reading: Mixed Week
Reading: Begin-Again Competition on Forum up and running!
Reading: Big news! Begin-Again goes to Tynemouth Market!!
Reading: This little Blogwriter went to Market!Inserting:
** WARNING: generated automatic slug: 85-
Inserting: Crafts
** WARNING: generated automatic slug: 104-Crafts
Inserting: About Begin-Again Blog
** WARNING: generated automatic slug: 137-About-Begin-Again-Blog
Inserting: Xmas!!
Inserting: Halloween
Inserting: US
Inserting: Website
Inserting: Tips
Inserting: Eurovision
Inserting: Faves
Inserting: About
Inserting: LIFE
Inserting: NEWS!!
Inserting: Spooks or spoofs?
Inserting: Peeves!
Inserting: It's beginning to look (and feel!) a lot like Christmas!
** WARNING: generated automatic slug: 97-It-s-beginning-to-look--and-feel---a-lot-like-Christmas-
Inserting: A Big Worldwide Welcome!
** WARNING: generated automatic slug: 258-A-Big-Worldwide-Welcome-
Inserting: Hair-do's, holidays and hustle bustle!
** WARNING: generated automatic slug: 283-Hair-do-s--holidays-and-hustle-bustle-
Inserting: Ta Da! Houston We Have Liftoff!! Website is up!!
Inserting: Perfume
Inserting: Fave Christmas Songs and why
Inserting: Least fave Christmas Songs and why
Inserting: Your Xmas Traditions
Inserting: Xmas traditions around the world
Inserting: Your Festive Recipes
Inserting: What you love most about Christmas
Inserting: Halloween 2008string(1684) "INSERT INTO evo_items__item (post_ptyp_ID, post_ID, post_main_cat_ID, post_creator_user_ID,
post_lastedit_user_ID, post_datestart, post_datecreated, post_datemodified, post_status,
post_locale, post_content, post_excerpt, post_title, post_urltitle, post_comment_status,
post_renderers)
VALUES ("1", "65", "1", "1", "1", "2008-10-25 13:14:29", "2008-10-25 13:14:29", "2008-10-26 14:18:52", "published", "en-US", "<p style=\"text-align: justify;\"><span style=\"color: #c80d24;\">So, let me hear what you guys are up to this Halloween...not a very exciting night for us, althought my hubby is as we speak buying turnips for us to TRY carving out. (I am not too hopeful that my tiny girly wrists are up to the job, but onwards and upwards! I may just end up \"directing\" him on how to carve mine out...interspersed with comments like, NO! Left a bit! Make the mouth more scary!! That kind of thing!)</span></p>\r\n<p style=\"text-align: justify;\"><span style=\"color: #c80d24;\">I happen to know that my good friend Anna has a whole Halloween shindig planned as Terry is going all out complete with Halloween themed meal. Sounds Yum!!</span></p>\r\n<p style=\"text-align: justify;\"><span style=\"color: #c80d24;\">I hope we will get to see the pics up on here.</span></p>\r\n\r\n<h3 style=\"text-align: center;\"><span style=\"color: #98091b;\">So come on in, join in the spooky fun and tell us all about Your Halloween!</span></h3>\r\n<h3 style=\"text-align: center;\"><span style=\"color: #942828;\">Anyone watching Most Haunted Live???</span></h3>", "", "Halloween 2008", "halloween-2008", "open", "b2evSmil.b2evALnk.b2WPAutP"
Comment by Dean Teasdale (visitor) on 2 Sep 2009 @ 22:14 IST #
Comment by Hari (blog owner) on 3 Sep 2009 @ 08:06 IST #
Comment by Talha (visitor) on 20 Nov 2009 @ 13:50 IST #
Comment by Hari (blog owner) on 20 Nov 2009 @ 18:23 IST #
threads - > blog entries
thread replies - > comments to entries
users - > blog subscribers/registered users
admin/mod - > blog admin/content creatorsetc. etc.Then you have to find out which data to export to WP and which to remove. It's not really a pain, but you need to know exactly how you're going to map.The actual script will take around a day or so to program if you know PHP/MySQL well enough. [/QUOTE]
Comment by Jim (visitor) on 3 Nov 2010 @ 04:46 IST #
Comment by Hari (blog owner) on 3 Nov 2010 @ 09:33 IST #
Comment by Jim (visitor) on 3 Nov 2010 @ 18:52 IST #