Add DISQUS to your Graffiti Blog

For all the Graffiti CMS users, one of our community members Scott Watermasysk has written a small guide on how to integrate DISQUS. 

There are just a couple steps for standard Graffiti themes:

  1. Sign up for a new account on Disqus and create a new website. Click the link for “generic code”. (also located here)
  2. In your Graffiti control panel, navigate to your “Personalize” page (Graffiti-Admin > Presentation > Themes > YOUR_THEME).
  3. In your post.view file, remove the existing comment rendering code and replace it with the JavaScript from step one from the generic code page above.
  4. In your index.view file, find the $macros function for building a comment link and change the fragment from “comment” to “disqus_thread”.
  5. In your layout.view file add the JavaScript from step three in the generic code page.

With this information, in step three from above instead of removing the comment list and form from my post.view, I wrapped it in an if statement like this:

#if($post.Id > 143)

[Your Existing Comment Code]

#else

[Your Diqus Code]

#end

For full instructions visit  simpable.com/code/disqus/

 

Thanks Scott!

 

Giannii
DISQUS
Community Manager

63 Comments »

Giannii on December 13th 2008 in disqus