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

June 18. 2009 07:29

Gravatar

I liked your post. Keep posting interesting matters here.

Voguish us

June 30. 2009 00:27

Gravatar

I stumbled on your blog on google and after reading a few of your other posts, I’ve decided to add your rss to my Google News Reader.

free classified website us

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

July 19. 2009 15:09

Gravatar

I have tried disqus and found it decent, I will think about it now!

sam 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

September 21. 2009 07:26

Gravatar

javascript is the web 20 engine

james us

September 21. 2009 07:55

Gravatar

I've just added this to my fav ;)

james us

Add comment


(will show your Gravatar icon)  

  Country flag




Live preview

March 11. 2010 14:44

Gravatar

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

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