webdesign-android-devlopement-news-portal-designing-india-indore-bhopal-mp

Reply Button Not Working Blogger Threaded Comment

Posted :| Posted By: Piush Trivedi | Labels: , 32 Comments
Posted by: Piush
Pin It


Earlier this month Blogger introduced a long-a waited feature, native threaded comments – with only one level, but still pretty nice to delimit conversations. The instructions sounded easy enough, just a couple of settings to change and the new reply system should kick in. Unfortunately in practice both myself and many other have stumbled across a couple of problems…when clicking on the ‘Reply’ button nothing happened...! It looked like there was a missing script and I spent a considerable amount of time trying to track down the source of this problem. First I tried to replace the blog template with a completely new one, which I thought would have the proper updated code – that turned out not to be the case. I compared the source code of an article on my blog to others where the replies were working correctly and I discovered there was indeed a script missing for me Plz Read Above Tutorial Carefully & follow these steps:

Important:-Before Editing Template ..Plz Backup Your Full Template.....



Step 1

  • First log in to Blogger
  • Go To Dashbord > Design > Edit HTML
  • And Click On Expand Widgets Tick Box
  • Now find this code : <b:includable id='threaded_comment_js' var='post'>
  • & Replace This Code & Script With Above Code & Script....


<b:includable id='threaded_comment_js' var='post'>
<script async='async' expr:src='data:post.commentSrc' type='text/javascript'/>
<script type='text/javascript'>
(function() {
var items = <data:post.commentJso/>;
var msgs = <data:post.commentMsgs/>;
var config = <data:post.commentConfig/>;
// <![CDATA[
var cursor = null;
if (items && items.length > 0) {
cursor = parseInt(items[items.length - 1].timestamp) + 1;
}
var bodyFromEntry = function(entry) {
if (entry.gd$extendedProperty) {
for (var k in entry.gd$extendedProperty) {
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved') {
return '<span class="deleted-comment">' + entry.content.$t + '</span>';
}
}
}
return entry.content.$t;
}
var parse = function(data) {
cursor = null;
var comments = [];
if (data && data.feed && data.feed.entry) {
for (var i = 0, entry; entry = data.feed.entry[i]; i++) {
var comment = {};
// comment ID, parsed out of the original id format
var id = /blog-(\d+).post-(\d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array) {
var auth = entry.author[0];
if (auth) {
comment.author = {
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
};
}
}
if (entry.link) {
if (entry.link[2]) {
comment.link = comment.permalink = entry.link[2].href;
}
if (entry.link[3]) {
var pid = /.*comments\/default\/(\d+)\?.*/.exec(entry.link[3].href);
if (pid && pid[1]) {
comment.parentId = pid[1];
}
}
}
comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty) {
for (var k in entry.gd$extendedProperty) {
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass') {
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
}
}
}
comments.push(comment);
}
}
return comments;
};
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor) {
url += '&published-min=' + new Date(cursor).toISOString();
}
window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length < 50 ? null
: parseInt(parsed[parsed.length - 1].timestamp) + 1
callback(parsed);
window.bloggercomments = null;
}
url += '&callback=bloggercomments';
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
};
var hasMore = function() {
return !!cursor;
};
var getMeta = function(key, comment) {
if ('iswriter' == key) {
var matches = !!comment.author
&& comment.author.name == config.authorName
&& comment.author.profileUrl == config.authorUrl;
return matches ? 'true' : '';
} else if ('deletelink' == key) {
return config.baseUri + '/delete-comment.g?blogID='
+ config.blogId + '&postID=' + comment.id;
} else if ('deleteclass' == key) {
return comment.deleteclass;
}
return '';
};
var replybox = null;
var replyUrlParts = null;
var replyParent = undefined;
var onReply = function(commentId, domId) {
if (replybox == null) {
// lazily cache replybox, and adjust to suit this style:
replybox = document.getElementById('comment-editor');
if (replybox != null) {
replybox.height = '250px';
replybox.style.display = 'block';
replyUrlParts = replybox.src.split('#');
}
}
if (replybox && (commentId !== replyParent)) {
document.getElementById(domId).insertBefore(replybox, null);
replybox.src = replyUrlParts[0]
+ (commentId ? '&parentID=' + commentId : '')
+ '#' + replyUrlParts[1];
replyParent = commentId;
}
};
var hash = (window.location.hash || '#').substring(1);
var startThread, targetComment;
if (/^comment-form_/.test(hash)) {
startThread = hash.substring('comment-form_'.length);
} else if (/^c[0-9]+$/.test(hash)) {
targetComment = hash.substring(1);
}
// Configure commenting API:
var configJso = {
'maxDepth': config.maxThreadDepth
};
var provider = {
'id': config.postId,
'data': items,
'loadNext': paginator,
'hasMore': hasMore,
'getMeta': getMeta,
'onReply': onReply,
'rendered': true,
'initComment': targetComment,
'initReplyThread': startThread,
'config': configJso,
'messages': msgs
};
var render = function() {
if (window.goog && window.goog.comments) {
var holder = document.getElementById('comment-holder');
window.goog.comments.render(holder, provider);
}
};
// render now, or queue to render when library loads:
if (window.goog && window.goog.comments) {
render();
} else {
window.goog = window.goog || {};
window.goog.comments = window.goog.comments || {};
window.goog.comments.loadQueue = window.goog.comments.loadQueue || [];
window.goog.comments.loadQueue.push(render);
}
})();
// ]]>
</script>
</b:includable>


Now Save Your Templete :-)

Aptech India (Blogger Widgets, Tips , Seo Tricks)
Reply Button Not Working Blogger Threaded Comment By
Published On: 2012-05-18T17:03:00+05:30
Description: Reply Button Not Working Blogger Threaded Comment
Rating: 3 ★★★★★ 11 reviews - Stars Based On © 2013

Post A Comment

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer
View More


Note: (Insert Item In Comments)
ATTENTION !!:-
• To Insert An Image, Use The [im]Your Image Link [/im] Tag
• To Insert An Youtube Video Use The [youtube]Youtube Video Link [/youtube] Tag
• To Insert An Smiley, Use The Smiley's Use Smiley Code

Top Commen tor Ask A Question

32 comments:

  1. Full stylish blog...nice to meet you :)
    Beben Koben si bloglang anu ganteng kalem tea \m/

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. thanks for the tip Piush Trivedi! It worked!

    ReplyDelete
  4. This worked perfectly for me, thank you very much for sharing.

    ReplyDelete
    Replies
    1. Tyler Palesano Thanks For Comment... Hope Apteh India Article Helps You For Making Your Blog Better.... :-c

      Delete
    2. Worked perfectly for me but you did not include the full code to be replaced. hence, someone who doesn't understand how html works might not be able to fix the problem.

      Delete
  5. Hey its working perfectly..happy to find solution on your blog..

    ReplyDelete
  6. thanks a ton, it finally worked for me.

    ReplyDelete
  7. not working in my blog mate can you fixed.here's my blog:
    www.bloggerheroe.com

    ReplyDelete
    Replies
    1. send your template we will fix it for you..

      Delete
    2. ok thanks,,and after u fixed please tel me what's the problem..

      Delete
    3. where i can send my template? can you me your email.. :)

      Delete
    4. This comment has been removed by the author.

      Delete
    5. ya ofcourse,,m just waiting for your rep only
      send it here gmohit02@gmail.com
      Regards
      <a href="www.indiajobsworld.com>All India Jobs WOrld</a>

      Delete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Thank you for your help, it works fine for my blog~

    ReplyDelete
  10. Thanks buddy! u saved my template! :D if you have time check my blog and plz give me feedback technodrivein.blogspot.in

    ReplyDelete
  11. Thank you thank you thank you!! I tried for a month to fix this problem and your solution helped me fix it on my blog. Thank you so much for this article!!! :)

    ReplyDelete
  12. thanks for the tip Piush Trivedi! It worked!

    ReplyDelete
  13. SEO that on the opposite side helps on-line businesses to press the required exposure Seo Lot Noida.
    What region organization these courses?
    SEO Courses Online

    ReplyDelete
  14. Terimakasih infonya , semoga sukses.
    Silahkan kunjungi juga web kami:

    http://obatflekparuparu.utamakansehat.com/

    ReplyDelete
  15. Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint. dark web links

    ReplyDelete
  16. Hashish, also known as hash, is a medicine made by compressing and processing the trichomes of the cannabis plant. Hash in Hindi

    ReplyDelete
  17. Your blog is too much amazing. I have found with ease what I was looking. Moreover, the content quality is awesome. Thanks for the nudge! dark0de market url

    ReplyDelete
  18. Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’r wait to read more posts. kündigen

    ReplyDelete