Integrate Disqus into your site using JavaScript

Recently I added Disqus, a hosted comment system, to a site and wanted to point out a couple of things that were not too clear from the documentation on the Disqus site.  It may have been updated, but as of this post, I was not able to find too much info on the JavaScript implementaion of Disqus. 

Basically the JavaScript implementation will work with any web site technology, for example php, ASP.NET, etc.  In order to get it to work, you first need to sign up for an account.  Once you do this, they will provide you with the "code" that you need to add to your site.  Once you add this code, all of the necessary HTML and comment data will appear on your page. 

When you create an account, you provide your site URL. It is important to understand that if you are developing or testing your site on a server other than the one registered with your domain name, the Disqus comment section will not appear.  So if you are setting things up on your local machine and testing, you will not see the full comment section.  Once you push your code to production, you will then see the full Disqus comment section

That is it...it is very easy to set up and use...

Comments (2) -

  • Hi, did you look into getting DISQUS working for BlogEngine.NET by any chance?
    I've had a quick google around and haven't been able to find much info on the matter....
  • I have not looked into using DISQUS with BlogEngine.NET, but in the settings section, there looks to be support for coComment, http://www.cocomment.com/

    In addition, you could turn off comments in the settings and then add the necessary embed code to use DISQUS...that may work, although never having tried it, I am not sure how clean that will be.

    Good luck and if you do determine the best way, please let me know.

Pingbacks and trackbacks (1)+

Add comment