Drupal 7: Integrating Disqus Comments

When choosing whether or not to have commenting on your site, one of the factors that I always discuss with clients is whether or not the site has a need for logged in users.  If the site has users who log in, Drupal core's commenting system is great and can be tweaked to fit pretty much every need.

If users don't need to have users log in, there are a few solutions for "outsourcing" your comment system

  • Using an external commenting system has benefits like:
  • better security
  • better/cheaper spam management
  • more full page caching opportunities.

I chose to go with Disqus for this site.  Disqus' social login includes all of the necessary platforms.  If not, people can sign up with an account in a minute.  The design is light, and these days very common.  Their spam detection, and moderation/flagging rules are simple and easy to maintain.

I have integrated Disqus with Wordpress a number of times, but this site was the first time I integrated it with Drupal.  The Disqus Drupal Module made things super easy.  I installed and activated the module, filled in a few simple configurations and permissions, and I was good to go.

  1. Install Disqus for Drupal 7:
  2. Sign up for a Disqus account and choose a "shortname"
  3. Install the Drupal Disqus module
    drush dl -y disqus
  4. Enable the module
    drush en -y disqus
  5. Configure at /admin/config/services/disqus
    Disqus Drupal Configuration Screenshot
  6. Add comments to your content type.  This can be done by placing a block using panels or contexts, or you can choose Location: Content Area if you use a node template.
  7. Set permissions on view disqus comments to allow for all.
  8. Disable core commenting module.
    drush dis -y comment
  9. Visit a node and test your new commenting system!

Have anything to add?  Please do so in the brand new Disqus comments below!