blogspot migration templates
Submitted by Alaa on Sun, 22/05/2005 - 7:39am.
::
this simple blogger template dumps your blogspot content and comments data in a php array structure, I'll soon turn this into a migrate to drupal script
< ?php $item=array(); < Blogger> $iid = '< $BlogItemNumber$>'; $item[$iid]['title']='< $BlogItemTitle$>'; $item[$iid]['body']='< $BlogItemBody$>'; $item[$iid]['date']='< $BlogItemDateTime$>'; $item[$iid]['number']='< $BlogItemNumber$>'; $item[$iid]['permalink']='< $BlogItemPermalinkURL$>'; $item[$iid]['comment']=array(); < BlogItemComments> $cid='< $BlogCommentNumber$>'; $item[$iid]['comment'][$cid]['number']='< $BlogCommentNumber$>'; $item[$iid]['comment'][$cid]['body']='< $BlogCommentBody$>'; $item[$iid]['comment'][$cid]['author']='< $BlogCommentAuthor$>'; $item[$iid]['comment'][$cid]['date']='< $BlogCommentDateTime$>'; < /BlogItemComments> < /Blogger> ?> <pre> < ?php var_dump($item) ?> </pre>
- Alaa's blog
- Login or register to post comments
- 7066 reads


cool
this probably better the csv idea
Mostafa Hussein
blogger to drupal
Yeah sure no one has done it already?
Take a look at blogger > MT > drupal?
there is also an import module in cvs, let me find a link .. Here is the import_export/README.txt readme of the module in cvs for mass import.
Never used it but it might help you if you can get your blogger stuff into xml format
it might help you write a module to import from blogger
I used to be indecisive .. but now I'm not so sure
I don't like the two steps idea
I don't like the two steps idea.
as for import module, it does not import comments as far as I can tell, comments need to be added immediatly after the node_save() call since node_save() returns the nid.
cheers,
Alaa
http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"
Import solution with the comments
It's not a big issue to make 2 steps to migrate blogspot to drupal however it'll be a bothersome for who don't have MT account like me. I'm not going to create MT account to do this!!
But I think I've reached a better solution after making some googling inspired by Alaa script. Check out: http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/junyor/import/blogger/ (contributed by junyor)
I'll test it on my own local drupal and give u the feedback soon.
Rami Sedhom http://www.ikhnaton2.tk/ http://it-experience.blogspot.com/
el 3afarit
Is there ghosted in this thread coz I'm receiving many emails telling me that this thread had been updated while it's not!!!!! WOOOOOOOOOH ;D
Alaa disabled [mod_security|h
Alaa disabled mod_security to see how's the load on the server, so the SPAM is back that's why you are getting emails.
I'm getting them as well
WWW: The place for organized randoms!
EGLUG Admin..
Arabeyes Core Member.
Free Software Foundation Associate Member.