WordPress.org

Ready to get started?Download WordPress

Forums

sphpblog to wordpress convertor (4 posts)

  1. devilkin
    Member
    Posted 8 years ago #

    Hello,

    Today I migrated from sphpblog to WordPress, and I wrote a small script (it's a quick-n-dirty script, but it works) to convert the posts and comments from the sphpblog file based system to the WordPress database.

    You can find it here. Have fun with it :)

    Jan

  2. jeffbalke
    Member
    Posted 7 years ago #

    Hi! I tried to use your converter but it didn't work for me. It seems to get hung right after the initial opening. I set it up just as you suggested, but can't get it to work at all.

    Any help is GREATLY appreciated.

  3. pelpet
    Member
    Posted 7 years ago #

    Since the script didn't work for me, I modified it to actually create the posts and comments. It also transforms the characters to utf-8 (UNICODE) before inserting them in the database. The modified script can be found here. The scrips now also fixes URLs and html braces "[".

    The comment count also needs to be fixed after running the script. This script takes care of that.

  4. pelpet
    Member
    Posted 7 years ago #

    I have updated the script above and packaged it with rawlinsons comment count script into a small toolbox which can be found here.

    Features:
    * Posts and comments migration from sphpblog text files to wordpress database
    * Fixes for images, urls and html formatting.
    * Conversion to unicode
    * Creates "page moved" for old sphpblog permalinks to correct wordpress post
    * Comment counts update.

    Enjoy, and always backup your wordpress database.

Topic Closed

This topic has been closed to new replies.

About this Topic