Script to Migrate Postnuke to Wordpress 2

Posted by Chris Samuel on Jan 6th, 2007
2007
Jan 6

Almost a year ago now (Jan 2006) I migrated my blog from PostNuke to WordPress and to do that I used a hacked version of Bryan’s PHP migration script (which I found here thanks to Rich Boakes), but I never got around to publishing my changes. :-(

Changes applied:

  • Migrate PostNuke topics to WordPress categories
  • Update comment counts in the WordPress database
  • Update category counts in the WordPress database

Just had an email from someone asking about it, so I’ve decided to publish it now, so here is my hacked version of a Postnuke to Wordpress Migration PHP Script.

It assumes a blank Wordpress 2 install, and I last used it with Wordpress 2.0.0 so caveat emptor!

Licensed under the GPLv2 (or later), as per the original.

16 Responses

  1. Glenn Says:

    Thank you! I really appreciate it.

  2. chris Says:

    Not a problem Glenn, hope it helps!

  3. devilsoulblack Says:

    thanks for shared, can you help me to migrate phpnuke to wordpress ?

  4. chris Says:

    Hi there, that could be hard given that I’m in Australia, but if you do have any questions please feel free to leave them here and I’ll do what I can to answer!

  5. devilsoulblack Says:

    a dont get how to migrate the category table from phpnuke to category table on wordpress mi modification its this ( http://pastebin.ca/406242 )

  6. chris Says:

    That really relies on phpnuke having the same database schema that Postnuke does, I’ve never used phpnuke so you’d really have to let me know what the schema is.

    Oh - and it’s a *really* good idea to remove your password from that script before you post it to pastebin! :-)

  7. devilsoulblack Says:

    that its no my real passwd :P

  8. chris Says:

    phew, that’s a relief!

    So how similar is the phpnuke schema to the Postnuke one ?

  9. devilsoulblack Says:

    prety similar

  10. devilsoulblack Says:

    tell me what info you need ?

  11. Andy Balaam Says:

    This might be helpful to people: I’ve just started a project called migratedata http://migratedata.sf.net that provides a framework for migrating between all different types of databases without writing any SQL - just editing an XML file.

    I’ve provided an XML file that migrates a database from PostNuke to WordPress 2.2, so it might be what you need, devilsoulblack.

  12. Migratedata - a Generic Database Conversion Tool at The Musings of Chris Samuel Says:

    [...] Andy Ballam left a comment on my post about migrating from PostNuke to Wordpress mentioning a tool he’s created called migratedata that I though deserved a wider mention.. This might be helpful to people: I’ve just started a project called migratedata (http://migratedata.sf.net/) that provides a framework for migrating between all different types of databases without writing any SQL - just editing an XML file. [...]

  13. dimo Says:

    Thanks a lot!!
    Helped me to move my slooooooow postnuke stories to nice wp :) !!
    thank you, mister!!

  14. Chris Samuel Says:

    Hi Dimo,

    I don’t know if you’re thanking Andy or myself, but either way you are most welcome! :-)

  15. Andy Balaam Says:

    ditto ;)

  16. Mark Says:

    Hey all, I have been trying to migrate my PN to WP all day without luck. I am running into all sorts of errors. Is there anyone that could help for pay? I am so over PN and love wordpress

Leave a Comment




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.