Skip to Content

Revision of new blogger migration template from Sat, 01/10/2005 - 3:21am

The revisions let you track differences between multiple versions of a post.

Alaa's picture

ok this is a final template to migrate from blogger to drupal, will write instructions later.

<?php $item=array(); $nid = 100; $cid = 100; <Blogger> $iid = '<$BlogItemNumber$>'; $nid++; $node=array(); <$BlogItemTitle$> ENDOFSTRING; <$BlogItemBody$> ENDOFSTRING; echo "INSERT INTO node (nid, type, title, uid, created, changed, comment, promote, teaser, body, revisions, format) <BlogItemComments> $comment=array(); $cid++; $comment=array(); <$BlogCommentBody$> ENDOFSTRING; <$BlogCommentAuthor$> ENDOFSTRING; </BlogItemComments> </Blogger> ?>

Comments

ikhnaton2's picture

Successfully Tested here

Thanks Alaa for this solution, it has been successfully tested on my local drupal. Waiting to be done on my real drupal site.

Rami Sedhom

Thanks a lot ..

Thanks a lot ..

great festival thank you

Alaa's picture

fixed now, you have to add

fixed now, you have to add (nid) before the values() part

Alaa


"context is over-rated. who are you anyway?"

ramez.hanna's picture

similar work

so i went the same way alaa did but i made my template neutral,


<?xml version="1.0">
<post>
<blogger>
	<ItemNumber><$BlogItemNumber$></ItemNumber>
	<ItemTitle><$BlogItemTitle$></ItemTitle>
	<ItemDateTime><$BlogItemDateTime$></ItemDateTime>
	<ItemBody><$BlogItemBody$></ItemBody>
</post>
<comments>
<BlogItemComments>
	<CommentNumber><$BlogCommentNumber$></CommentNumber>
	<CommentBody><$BlogCommentBody$></CommentBody>
	<CommentAuthor><$BlogCommentAuthor$></CommentAuthor>
	<CommentDateTime><$BlogCommentDateTime$></CommentDateTime>
</BlogItemComments>
</comments>
</Blogger>


the best things in life are free --- so as myself

Alaa's picture

cool, I'll be moving to

cool, I'll be moving to 4.7 soon and I'll need that stuff.

what we need though is a migration script that works from within drupal and calls drupal api functions instead of going directly to the database and also to figure a way to automate this the way wordpress does.

Alaa


husband of the Grand Waragi Master

I'm also seeing the

I'm also seeing the problem reported by "noizy" about blogger constantly reporting 0% when republishing the index. It seems to hang if I try to preview the change. My guess is that perhaps blogger doesn't like the php code. I made the following changes to the template, then went and manually modified the html file that blogger posted.

&lt;?php // strip "<?php" from top line of template // insert rest of template // strip "?>" from bottom line of template ?&gt;

___

I'm having the same

I'm having the same problem as ramaz with this:


AIM - dolphinlabs Yahoo - tonyjohansen1980

Blogger to Drupal Data

Blogger to Drupal Data Migration. Wordpress creates a sample post, page, ... Blogger to Drupal Data Migration. At this point you can clean your data.

hello

Very useful tutorial. I am

Very useful tutorial. I am in the process of transferring one of my blogs. Thanks.

Plazma Kiralama

Thanks Guys

Thanks for sharing such a knowledgeable article with us specially who are new. I'm quite new to Drupal but what you write in this post is really good and enhance my knowledge. keep going....

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | blog