I had this hanging around for a while so I thought I may aswell publish it.
I tried quite a few import scripts to get my posts and comments from my old bBlog install over to my new WordPress 2.0.1 installation, but none of them worked properly.
I found one in php which worked for WordPress 1.5.2 and tweaked until it worked on 2.0.x series, it also imports some extra info like commentors IP addresses. (I suggest this one for 1.5.x)
It took me a long time to get it to update the comment count on WordPress properly.
Imports categories properly, simplified it and I straightened up the workflow a bit.
If you have a newer version of bBlog it should be pretty trivial to get it to work.
The original came from here:
So here you go, an easy to use and reliable bBlog to WordPress import script!
You can download my bBlog to WordPress 2.0 converter here.
oO bBlog.. blast from the past… and paul’s current object of wrath
i didn’t realized people still used bBlog 🙂
suanie: Yah I still have some problems because of it.
Nicktay: I guess they don’t if they have any sense haha
Hello,
I tried your script and kept getting the error below (credentials changed and worked for bblog and WordPress):
Warning: Invalid argument supplied for foreach() in …\import-bblog.php on line 164
couldn’t get post ID
[
at import-bblog.php source line 164:
foreach($post->sections as $section) {
$categories[]=$section;
}
]
My old bblog 0.76 is at https://www.leedesmond.com/blog/ and am trying to migrate to WordPress 2.0.5 at above new site.
Thanks ShaolinTiger for the help.
Thanks so much for this script. You saved me the time it would have taken to write it from scratch. I worked flawlessly to migrate from bblog 0.76 to WordPress 2.1.2. Good on you.
Jim
Thanks for the excellent script, however, I have two concerns. I have a running version of WordPress 2.1.3 and bBlog 0.7.6. I have the PhotobBlog plugin installed, with the photobblog photos linked to my gallery. How should I edit the script to also import the associated photos (it uses the bBlog post number)? Also, when trying to use the script, I am not able to get to Step 1. The script stops loading, but the page has not changed; no error codes, etc. Any suggestions? Thanks!
Hi,
I’ve been desperately trying to find a migration script from bBlog to WP2 and Google sent me right here. However, it seems that your file is not available anymore; is there anywhere on the Internet where I can download it ? I’d rather give it a try than try to figure it by myself with my newbie PHP/SQL skills.
Thanks in advance !
Mithfindel: I’ve uploaded the file again, it got lost in the recent crash. Do note it won’t work if you try and convert to the latest 2.3 version of WP so do convert to an older version. Cheers!
Hi Shaolin,
Any news on the question from Andrew Casad? I’m where he is with the picture plugin and it appears to make the script break. Any help would be great…
Dan
Do note this is for WordPress 2.0.x only, not tested with 2.1.x or above.
No idea about the picture plugin, you’ll have to hack it yourselves.
Thanks for the reply – interesting the ‘Jim’ said he had it working with 2.1.2, which I couldn’t. I’ll downgrade and let you know.
Dan
Dan Ashby, what failed for you? Perhaps you have some non-standard modifications to your bblog database structure. It’s been ages since I migrated so I’m afraid I won’t be much help, but you should post the problem your having specifically.
The first problem is that $HTTP_GET_VARS is deprecated so I changed it to $GET which leaves me with:
WordPress database error: [Field ‘post_excerpt’ doesn’t have a default value]
INSERT INTO wp_posts (post_author, post_date, post_date_gmt, post_content, post_title,post_status, comment_status, ping_status, post_name) VALUES (‘1’, ‘-05-16 ‘, ‘-05-16 ‘, ‘Jeez, I just couldn\’t be bothered, and it probably would have taken 5 years anyway, to make my own full feautured blog program. So I\’m using this one. It seems pretty easy to drive so there we go. If I can\’t import the old blog entries, I\’ll just put a link up to the old stuff – I guess that\’s easiest and I\’m tired with all this now anyhoo…’, ‘A new way to blog’, ‘publish’, ‘open’, ‘open’, ‘a-new-way-to-blog’)
couldn’t get post ID
Dan it looks like post_excerpt is a not null field, so you have to find out what order to add it in and then add a value for it, might be as much as just adding ‘ ‘
OK,
I had to allow NULL entries in the following fields:
wp_posts:
post_excerpt
to_ping
pinged
post_content_filtered
wp_categories:
category_description
And also change the date formatting from %G to %Y:
$post_date=strftime(“%Y-%m-%d %T”, $post->posttime);
Hey BINGO! It works, thanks for a great script.
Dan
Thanks so much for this. Good thing WP 2.0 is legacy supported and available for download, with the “Debian philosophy”. I’ll convert to WP 2.0 then upgrade.
Any thoughts on converting over the theme?
I don’t have any advice to offer regarding converting themes. I started over and expect you will too.
I’m really surprised to learn that someone is still using bBlog. It’s been years since it was supported. Wow!