Integrate Disqus into your site using JavaScript

by cliff 15. October 2008

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...

Related posts

Comments

July 4. 2009 03:42

Gravatar

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....

Hamish Graham nz

July 4. 2009 22:23

Gravatar

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.

Cliff us

August 6. 2009 16:42

Gravatar

Disqus is great system.I have it installed on my blogengine site as well

Italian Translation ar

August 12. 2009 21:52

Gravatar

I was looking for the same for many days.Finally i got it from you.I practised it and applied the same for my blog.thanks alot for this help.

short jokes in

September 18. 2009 05:31

Gravatar

this was so cool

jimmy us

March 22. 2010 07:08

Gravatar

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

Remote Infrastructure Management us

Comments are closed

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Blogroll

Download BlogEngine.NET

Download at CodePlex

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Subscribe