MT-DisqusImporter: A Movable Type Plugin

Hacks, Movable Type8 Comments

NOT WORKING!
December 2014 – Disqus changed their API and this no longer works.  I might update someday.

Current version is 1.0.0.0 released on 2009-11-26

Contents

What This Plugin Does

Heard of DISQUS? DISQUS is a comments service available for free. It provides a nice centralized service in which users can establish identities for their comments and use it across any sites that use DISQUS. Commenters can also use their Facebook, Twitter, Yahoo, or other profiles. It offers translations, moderation services, spam filtering, administration tools, a cool AJAX UI and more!

I started using DISQUS on my blog because I wasn’t happy with the options and the user interface available in the native Movable Type. I tried out various plugins and customizations but nothing felt right. Finally, I moved to using DISQUS and I found it to be a nicer experience for me and my blog readers. I liked their spam filtering as well as moderation features. I used the standard DISQUS instructions to install the appropriate script tags into my blog posts and I was off. I did not choose to use the Movable Type plugin offered by DISQUS.

The downside “outsourcing” your comments is that you kind of lose them to a service that you don’t control. What if it goes away? What if you want to do some other Movable Type statistics on frequently commented on pages? What if? So I decided to take advantage of the DISQUS API and build a plugin that would synchronize the comments left on my blog via DISQUS back in Movable Type. Enter this plugin!

Using the background tasks functionality in Movable Type, this plugin will query your DISQUS account for your latest comments every hour. When it sees a new one, it will create a native Movable Type comment in your blog for that entry. It brings with it the name of the commenter, their email (if available), their IP address, the time of the comment, and the text. It even brings over the hierarchy of comments so you can see in Movable Type which comment is the parent of another comment.

Now, at anytime, I could stop using DISQUS by simply changing my templates back and I would have all the comments there — as if they were done in Movable Type originally!

Requirements

  • Movable Type version 4 and higher.
  • Perl version 5.8.8 or higher.

Installation Instructions

  1. Download and install Remote Comments Schema, a free plugin. It provides no direct functionality but allows MT comments to be extended with a common set of extensions for tracking comments on remote sites, like DISQUS. After install, login to MT and you should see it prompt you to update your schema.
  2. Download the latest version of the plugin.
  3. Unzip the contents of the file.
  4. Copy the file DisqusImporter.pl to your Movable Type “plugins” directory.(If you don’t have a plugins directory, create a plugins directory in the same directory where your mt.cgi file is located. Then upload DisqusImporter.pl into the newly created plugins directory.)
  5. Go into your blog settings. Click on the Plugins tab. You should see an entry for MT-DisqusImporter. Click on Show Settings and configure as desired.
  6. If you have any trouble, be sure to check the Movable Type Activity Log for errors.

Configuration

There are a variety of options that you can set when configuring the plugin:

Configuration

Frequently Asked Questions

  • Q: I set everything up but its not pulling over the comments. What am I missing?
    A: Be sure that you have Movable Type’s background tasks setup with the script run-periodic-tasks. This is shipped with Movable Type in the tools directory.

Examples

None yet!

Purchase

The cost for this plugin is $10 USD.

License

This software is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. This software is licensed, not sold.

NO WARRANTY. THE PRODUCT IS DISTRIBUTED “AS IS” AND WITHOUT ANY WARRANTY AS TO MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER WARRANTIES EITHER EXPRESSED OR IMPLIED. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THIS SOFTWARE.

Download

Download the current version after purchase from the link below. Past versions are not archived.

Version History

1.0.0.0 — 2009-11-26
  • Works for me.

Contact

For questions, suggestions, bug reports, and anything else related to this plugin, please e-mail brandon@fuller.name or leave a comment.