Friday, August 31, 2012


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


Beben Koben said... [reply]

minus 1, for top comment :D

Bellojewels said... [reply]

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

syed shah said... [reply]
This comment has been removed by the author.
syed shah said... [reply]

@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... [reply]

@syed shah

no, I don't have hack for that. That may be possible using Google+ comments, see

Post a Comment

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