Pages

Friday, October 28, 2011

Comments in Reverse Chronological Order

Some times it is better to have the comments below post in reverse chronological order, so that newest comments is at the top. Why so? There are reasons behind it. First of all, there are many who use mobile device to browse the blog. In those cases the user experience a huge problem to load all the comments and after that the user gets the answer at the last. Often many users want to say just a 'thank you'. For them it is laborious to go to the extreme bottom to find out the post comment option. So, it is always better to put recent comments first. Now the problem is there is no option from blogger to arrange the comments in such way. And the solution is to use javascript. Ok, i made it simple for you. I have already uploaded the scripts at http://yourjavascript.com/ and here is how you use it in your template.
First go to Edit HTML, then Expand widget. Find using Ctrl + F, this </body> tag. Paste the following code just before the </body> tag.
<script src='http://yourjavascript.com/171203121312/reverse_Comments.js' type='text/javascript'/>
<script src='http://yourjavascript.com/252311001721/calljs.js' type='text/javascript'/>
Save the template. You are done.
P.S: Always back up your template before editing it.