| 1 |
-- Overview
|
| 2 |
This script is designed to aid users migrating from Blogger to Drupal. You should always back-up your data and files before using this script. Use this script at your own risk.
|
| 3 |
|
| 4 |
The development version of this script will be in the import/blogger/ directory in my sandbox. You should grab the version in the folder coinciding with the version of Drupal you're using, i.e. the 4-5 directory if you're using Drupal 4.5.x. If there is no directory, then the script hasn't been updated and may or may not work.
|
| 5 |
|
| 6 |
-- Status
|
| 7 |
This is script is feature complete, but largely untested. I've used it successfully on one site going from Blogger to Drupal 4.5.2.
|
| 8 |
|
| 9 |
-- Instructions
|
| 10 |
--- In Blogger
|
| 11 |
1) Publish all Blogger articles; unpublished articles will not be imported
|
| 12 |
2) make sure the e-mail address of the Blogger owner is the same as the Drupal site admin (user 1), if you want all posts from the Blogger owner to be imported to the Drupal site admin account
|
| 13 |
3) Under Settings > Archiving, enable post pages (or path.module import won't work)
|
| 14 |
4) Set Blogger to use the contents of blogger.php as the template.
|
| 15 |
5) Under Settings > Formatting, change the number of posts on the front page to a number large enough to get all posts on the front page (999 posts) should ususally work
|
| 16 |
6) Also under Settings, Formatting, change the "Timestamp format" to the version that shows the full date plus time
|
| 17 |
6) Under Settings > Publishing, set Blogger to create a file called import.php within the main directory of your Drupal installation
|
| 18 |
7) If you have comments you'd like to import, under Settings > Comments, make sure comments are set to Show
|
| 19 |
8) Republish your blog
|
| 20 |
|
| 21 |
--- In Drupal
|
| 22 |
1) If you are using drupal 4.5, run the import-comment.patch patch
|
| 23 |
2) enable blog.module (if you want posts imported as blogs)
|
| 24 |
3) enable path.module (if the want permalinks handled correctly)
|
| 25 |
4) Enable anonymous comments with optional contact information and
|
| 26 |
5) Make sure anonymous users can post comments and post comments without approval
|
| 27 |
6) Make sure authenticated users can administer nodes
|
| 28 |
7) Set the teaser length to unlimited in Adminster > content > configuration
|
| 29 |
8) Move blogger.inc to your root Drupal folder (where blogger.php is)
|
| 30 |
8) Run import.php by visiting it in your Web browser
|
| 31 |
|
| 32 |
-- Clean-up
|
| 33 |
1) Revert the import-comment.patch patch
|
| 34 |
2) Remove the directories created by Blogger (one for each year)
|
| 35 |
3) Correct the comment and node permissions for anonymous and authenticated users
|
| 36 |
4) Remove blogger.php
|
| 37 |
5) Reset the teaser length, if desired
|
| 38 |
|
| 39 |
-- Limitations
|
| 40 |
- node status is always 'published'
|
| 41 |
- comments are always published
|
| 42 |
- teasers are created from body of node by node_validate()
|
| 43 |
|
| 44 |
-- Notes
|
| 45 |
- If you have IMG tags in your posts, you'll need to edit the default input filter to allow those tags. That goes for any other tag you might have on your page that the input filter doesn't have by default, too. |