Back to Top

Wednesday, November 12, 2008

Fiddling with the comment system

My friend Dan D. mentioned that the new inline commenting system wasn't playing nice with NoScript. After a little looking into it I found that indeed, Blogger is using JS to render the form (why?).

To reduce the pain a little I've added a link to the old method of leaving comments which should appear in case you don't have JS enabled. If you also want to do this, edit your template as HTML (of course back it up before!), check the box to expand widget code and search for the following line:


<b:include data='post' name='comment-form'/>

After it include the following piece (of course, change the text to read whatever you want):


<noscript>
  <b:if cond='data:post.allowComments'>
    <p style='font-size: smaller; font-weight: normal;'>Using the embedded
    comment form requires JavaScript to be turned on for the blogger.com domain.
    However, you can still comment <a expr:href='data:post.addCommentUrl' 
    expr:onclick='data:post.addCommentOnclick'>using the traditional 
    method</a>.</p>
  </b:if>          
</noscript>

PS. I also added a recent comments and top commenters widget to the sidebad, courtesy of Blogger Buster.

0 comments:

Post a Comment

You can use some HTML tags, such as <b>, <i>, <a>. Comments are moderated, so there will be a delay until the comment appears. However if you comment, I follow.