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:

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
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: