Blogger to Drupal, some meat

Ok, so here’s some meat. I’m not there yet because this script doesn’t import comments, nor have I shared my blog tagger with you (need to find/document that) but this might help those impatient among you.

Click to view import_post_to_drupal.php

Good luck.

Oh, by the way (and this had me stumped for a bit) you need to paste this into Drupal as PHP content. You can’t do that until you go into Administer -> Site Building -> Modules and enable the “PHP Filter” module. Once you’ve done that you should be able to select “PHP Code” as an input type when you create a page or story.

3 Comments

Avatar
AnonymousMarch 24th, 2008 at 6:33 pm

I’ve yet to try this, but a big thanks for sharing the open source joy!

Avatar
GeshanJuly 14th, 2008 at 8:19 pm

Where do I put my blog’s URL?

Avatar
GuruJuly 14th, 2008 at 8:38 pm

You put it in the form that comes up when you browse to the node. It’s the input element called “go” that you can see in the source.

Leave a comment

Your comment