by
Venkata Koppaka
| Nov 10, 2011
In my previous post I explained how to use Disqus in a development environment.
In this post I will talk about how to use Disqus comments in Sitefinity Blogs.
Getting started with Disqus is pretty simple, go to Disqus.com and signup, all you need is to provide Site information (site where you will use Disqus comments) and your moderator information.
Now navigate to Disqus developers section where you will find an universal code that you can embed. Copy that code and paste it into a user control in your Sitefinity Web Application.

Below is how how your user control will look like -

You would need to change "disqus_shortname" to your disqus short name. This is how your control setup will look like -

Now navigate to Sitefinity's backend and go to Design-> Widget Templates and look for "Full Blog Post Item" template and edit the template.
At the top of the Widget Template add the below lines to register your Disqus Comments control.

Now scroll to the end of the template where you will find a section where Sitefinity's default Comments controls can be found. Below image will show you where they are -

replace these controls with the disqus comments control that has been registered above, below is how it would look like -

Reload your comments page and you should now see Disqus comments as your comments system in Sitefinity Blog Post.
To download a sample of code used in this post Click here and if you want to see a running sample, well if you are reading this post, this is a running sample :)
Hope this helps
Cheers
Venkata