Thursday, 8 October 2009
So, you've got two great things, the IntenseDebate commenting software and the BlogEngine.NET blogging software, and you want to combine them to make something greater than the sum of its parts. Here's how it's done.
- Pop over to IntenseDebate and get the JavaScript code they provide.
- Open up the file 'post.aspx', which is in the root folder of your blog.
- Disable the built in commenting system by setting the 'CommentView' usercontrol to 'visible = false' like so;
<uc:CommentView ID="CommentView1" runat="server" Visible="false" />
- Paste the IntenseDebate code below the disabled usercontrol, wrapping it in an 'If' statement so the code is only rendered if comments are enabled for the post;
<% if (Post.IsCommentsEnabled)
{ %>
<script language="javascript" type="text/javascript">
var idcomments_acct = 'YOUR ACCOUNT';
var idcomments_post_id;
var idcomments_post_url;
</script>
<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
<% } %>
Voila! An ASP.NET powered blog with a web 2.0 commenting system.
Sunday, 19 July 2009
Recently a bug appeared on this site in IE8. Pages would load but the JavaScript code from IntenseDebate.com that runs the comments system for the site would just hang. I tweeted about the bug and got replies straight back from the IntenseDebate guys offering help. They spent time looking at it and after a few email exchanges we were all still scratching our heads. Looking at the problem again with fresh eyes a few days later I noticed that the JavaScript for the AddThis social networking buttons on my site might be interfering with the IntenseDebate code loading. I tweeted my thoughts and, again, got quick replies from the AddThis guys. They had a look and within hours I had an email from them with a fix. Well, what can you say, for free online services I reckon that's pretty amazing support. So a big thank you to AddThis and IntenseDebate!