Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Import Drupal comments into Disqus

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 disqus
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 UNLICENSE
Octocat-spinner-32 db.yml.example
Octocat-spinner-32 disable_old_comments.rb
Octocat-spinner-32 import_comments.rb
README.md

Migrate from Drupal comments to Disqus

This is a simple script to migrate a basic use case Drupal 6 site to Disqus. It talks to the database directly, rather than mess around with Drupal APIs, which means complicated use cases are probably not well represented.

Requirements

You'll need the Sequel gem. The Disqus gem is also required, but has a bug (fixed and submitted), so a copy is distributed here. You may also need the appropriate mysql or postgres adapters; If you get an error, Sequel will tell you what to do. See http://sequel.rubyforge.org/documentation.html for more information.

For most working Ruby installations, this is all you need to do:

$ sudo gem install sequel --no-rdoc --no-ri

To use:

  1. Copy db.yml.example to db.yml and edit appropriately.
  2. Run the import_comments.rb script
  3. Optionally run the disable_old_comments.rb script to set the display of comments on all nodes to disabled.

Issues

Drupal comments don't map directly to Disqus. The following issues apply:

  1. You will lose authorship. Disqus will track names, email addresses, and web sites, but will considers all comments anonymous.
  2. Disqus does not support comment subjects. These will be lost.
  3. Disqus supports only very basic HTML input filters. If your users are using markdown or any other input filter beyond the most basic, that formatting will be lost.

Author

Ben Lavender - http://bhuga.net

"License"

This software is free software released into the public domain. See the UNLICENSE file distributed with this software for more information.

The Disqus module is redistributed here, which is released under the MIT license. See the disqus/ folder for more information.

Something went wrong with that request. Please try again.