Pages

Friday, August 31, 2012

8

Small update to my threaded comments hack v2

If you have my threaded comments hack v2 installed, and it stopped threading the comments, it is because Blogger changed the navbar iframe src attribute handling. Seemed to happen yesterday. To fix that, edit the template and find line 235 of the hack, which used to be:

var cfeedbase = 'http://'+window.location.hostname+'/feeds/'+$("#navbar-iframe").attr("src").match(/targetPostID=([^&]*)/)[1]+'/comments'

and change it to:

var cfeedbase = $('link[href$="comments/default"]').attr("href").split("/default")[0];

(all in one line)

The source code has been updated in the hack's article.
[Hide comments] - [Show comments]
Click on a single comment to hide/show its text

8 comments:

Bellojewels said October 12, 2012 at 3:10 PM

nice article ...thanks for sharing it...

Syed Shah said July 21, 2015 at 2:50 PM
This comment has been removed by the author.
Syed Shah said July 21, 2015 at 2:57 PM

@syed shah Hi, I wanted to reverse my comments order by showing new comments first below blog posts. Do you have any hack for this? Thanks.

MS-potilas said July 22, 2015 at 10:34 AM

@syed shah
Hi,

no, I don't have hack for that. That may be possible using Google+ comments, see http://blogging.nitecruzr.net/2013/11/google-comments-and-display-order-option.html.

Post a Comment

Related Posts Plugin for WordPress, Blogger...
See the hack
for this dynamic
views icon: