Importing Haloscan Comments to Movable Type
Gabriel Misura has modified the Movable Type code so that you can import Haloscan comments just like you import your blog entries in MT. The package is available here or here.
It based on the idea that all Haloscan comments are available at a URL like:
http://www.haloscan.com/comments.php?user=USER_ID&comment=BLOG_ENTRY_ID
My many thanks to him for doing this since I had almost abandoned trying to get my numerous old Haloscan comments into MT.
Here are the instructions for using this plug-in. Please note that I used this plugin with Movable Type version 2.64 while Gabe modified version 2.63. I am not sure if it works with later (> 2.64) versions.
- You should already have imported all the posts for which you want to import the comments.
- Make a backup of your MT weblogs by exporting all entries.
- Download the plug-in zip file from here.
- You might also need to download the HTML::TableExtract module. Extract the
TableExtract.pm
file and copy it to the directoryCGIPath/extlib/HTML
(whereCGIPath
is the path where all your Movable Type cgi files are stored). - Since this plug-in modifies several MT files (like
CMS.pm
), it is probably a good idea to backup all those files as well. - FTP to your webhost account and download the following files for backup purposes. Please note that
CGIPath
is the directory where all your Movable Type cgi files are stored andStaticWebPath
is the one where all the Movable Type static content (images etc.) is stored. You can check these paths fromCGIPath/mt.cfg
file.CGIPath/lib/MT/App/CMS.pm
CGIPath/tmpl/cms/import_comments.tmpl
CGIPath/tmpl/cms/mininav.tmpl
StaticWebPath/images/lang-en-us/nav-import-comments.gif
- Unzip the plug-in on your computer.
- You’ll see the same file names as the previous step. FTP these unzipped files over to your account in the same directories from where you downloaded the files in the previous step.
- Now, you need to export your old Blogger entries corresponding to the comments by following the directions here but with the following template (Only follow the export entries from Blogger part there):
<Blogger>
AUTHOR: <$BlogItemAuthor$>
DATE: <$BlogItemDateTime$>
ID: <$BlogItemNumber$>
-----
BODY:
<$BlogItemBody$>
--------
</Blogger>
- FTP the HTML file containing the Blogger entries to the Movable Type import directory.
- When you run Movable Type from your browser, you will see an “Import Comments” button next to the “Import/Export” button.
- Click on the “Import Comments” button and enter your Haloscan user name.
- When the import process is complete, you will see a detailed report about it similar to the one you saw when importing entries.
- You comments should be imported now.
- If you want to restore the original Movable Type files that the plug-in overwrote, FTP the backup files you have saved back to the server.
- You are done.
Written by Zack Ajmal.