BlogML importer for WordPress 2.5

I had a blog server which I felt compelled to migrate to WordPress 2.5. The existing blog server can only emit the data in the BlogML format. So I set out to find an BlogML importer for WordPress 2.5. I stumbled upon Aaron’s post on importing to wordpress. So here is what needs to be done:

  • Downloaded WordPress BlogML import module from Aarons site (blogml_wp_2.3.zip)
  • Upload a copy of the BlogML.php file to your wp-admin/import folder
  • Edit the file and change the PATH_TO_CURRENT_DIRECTORY to point to the folder where import.php exists.
  • Download the PHP XPath library 3.5 from Sourceforge
  • Upload a copy of the XPath.class.php file to your wp-admin/import folder

We are all set now. Just go to your wordpress admin page and navigate to Manage -> Import. If all is well, then you should see an entry for BlogML. Just click on the link and follow directions to import the BlogML file into your WordPress blog.

PS:  Once you click on the BlogML link on the import page if you are unable to view the “Upload file and import” button then don’t worry, just open up the BlogML.php file and modify the following lines:

// Instantiate and register the importer
include_once(‘import.php’);
if(function_exists(‘register_importer’)) {
    $blogml_import = new BlogML_Import();
    register_importer(‘blogml’, ‘BlogML’, (‘Import posts, comments, users, and categories from a BlogML file’), array ($blogml_import, ‘dispatch’));
}

to

// Instantiate and register the importer
//include_once(‘import.php’);
//if(function_exists(‘register_importer’)) {
    $blogml_import = new BlogML_Import();
    register_importer(‘blogml’, ‘BlogML’, (‘Import posts, comments, users, and categories from a BlogML file’), array ($blogml_import, ‘dispatch’));
//}

 

Many thanks to Aaron for the plugin.

About these ads

7 Responses

  1. [...] Importer für WordPress. Der Download und die Installationsanweisung findet man auf der Webseite:http://balajiramesh.wordpress.com/2008/06/21/blogml-importer-for-wordpress-25/Anschließend kann mit dem Import der BlogML Datei begonnen werden. Hierfür findet sich nun ein [...]

  2. [...] into the “blogml.php” file and comment out the section shown in the syntax box below(thanks to this post for pointing this [...]

  3. [...] nun genau dieser in Form eines Plugins in WordPress integriert werden. Dafür nutzt man den “BlogML importer for WordPress” (funktioniert auch noch mit WP 2.7) sowie die XPath library 3.5. Beide werden unter [...]

  4. I think just commenting out code is a bad way to get this to work.
    Changing import.php to admin.php fixes the problem correctly as that page (I believe) was renamed since Aaron’s import.

  5. [...] rajouté quelques fichiers pour permettre l’importation depuis ce format (plus d’infos ici). Tout n’était pas parfait, surtout les catégories (le nom était en fait l’id), j’ai donc [...]

  6. [...] into the “blogml.php” file and comment out the section shown in the syntax box below(thanks to this post for pointing this [...]

  7. [...] Save (save as a copy rather) your BlogML file and then in WP, add the BlogML importer plugin. [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: