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.

  • Jim

    Hey Brandon – I’ve been learning and researching about Disqus. Somewhere I read that if I ever left Disqus and exported all comments – any that I deleted or marked as SPAM would show up again once imported into something new. Will your plugin “sync” comments to my MT Database so that this doesn’t happen (in the event I ever leave). It appears that it does – but I would like to be certain.thanksJim

  • DISQUS does keep all your comments in their database but marks a status of whether its deleted, spam, or OK. You can filter on that in their user interface.This plugin uses the DISQUS API to retrieve the comments. In that request, the plugin can ask for a combination of spam, deleted, OK, or all. So the plugin specifically does not fetch your spam or deleted comments (which makes sense to me). So those do not get imported into MT by this plugin.DISQUS also has an XML export feature. I just looked at it and it doesn’t appear to export the deleted or spam status comments in that output.

  • Jim

    off to buy your plugin – thanks–Jim

  • Jim

    Hi Disqus,

    I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile.

    Thanks,

    Jim

    To sign up for Facebook, follow the link below:

    http://www.facebook.com/p.php?i=561508718&k=5YDYYVPZ4T6G6BD1W1XYSRTVS6BAY52DVVGP&r

    Already have an account? Add this email address to your account http://www.facebook.com/n/?merge_accounts.php&e=&c=7e20a8627dab903f45885137f0cc053c. was invited to join Facebook by Jim Walczak. If you do not wish to receive this type of email from Facebook in the future, please click on the link below to unsubscribe.

    http://www.facebook.com/o.php?k=06e806&u=100000627526550&mid=1b7fabeG5af335e18b96G0G8

    Facebook’s offices are located at 1601 S. California Ave., Palo Alto, CA 94304.

  • Jim

    =======================================

    To sign up for Facebook, follow the link below:

    http://www.facebook.com/r.php?re=ca4e15194bee07e253977d925a273381&mid=1fcc19eG5af335e18b96G1411d8G46

    =======================================

    Hi Disqus,

    The following person invited you to be their friend on Facebook:

    Jim Walczak (Invite sent: Jan 13, 2010)

    Facebook is a great place to keep in touch with friends, post photos, videos and create events. But first you need to join! Sign up today to create a profile and connect with the people you know.

    Thanks,

    The Facebook Team

    To sign up for Facebook, follow the link below:

    http://www.facebook.com/r.php?re=ca4e15194bee07e253977d925a273381&mid=1fcc19eG5af335e18b96G1411d8G46

    Already have an account? Add this email address to your account http://www.facebook.com/n/?merge_accounts.php&e=&c=7e20a8627dab903f45885137f0cc053c.

    =======================================

    This message was intended for If you do not wish to receive this type of email from Facebook in the future, please click on the link below to unsubscribe.

    http://www.facebook.com/o.php?c&k=06e806&u=100000627526550&mid=1fcc19eG5af335e18b96G1411d8G46

    Facebook’s offices are located at 1601 S. California Ave., Palo Alto, CA 94304.

  • Have you used the DISQUS plugin for MT 5.01 by chance? It seems not to work… :-/

  • No. I am still on 4. Send me email if you want to troubleshoot a bit. Otherwise, you can apply for a refund.

  • Thanks for the offer. Just to be clear, I’m referring to the DISQUS supplied plugin, not yours. I first submitted a ticket to DISQUS. I read others have done so months ago, so not sure when they might work on a new plugin. But I’ve gotta do a bunch of other maintenance on the badgerherald.com server, so I’ll worry about this later. I might just do the manual implementation of the DISQUS form, though I was hoping the plugin would automatically handle porting my system’s 50,000 comments to DISQUS… with a ton of luck, of course…

    Peace Brandon!