2009年4月25日 星期六

How do I reply to comment on Blogger blogs?

Hey! Blogger have launched its official threaded commenting feature, why not to try it now


If you can read Chinese, there are more detailed instructions on how to add these codes into your Blogger template.

Update @ Sep 4th, 2011:
Thanks to Sophie, I found that all html tags in this post are ruined by Blogger Post Editor - I just edited this post a little, and it replaces every "<>" tag to "&lt;&gt;" unexpectedly - this is not the first time it happens. The replacement simply makes this trick out of action.
For those who're experiencing problems applying this hack during August to September, I'm sorry for my mistake, please apply the corrected code again to your blog.
Thanks for all your comments (also emails and supports)!
Update @ August 13, 2011:
I used to use 'https://www.blogger.com/comment.g?***' to redirect readers to comment page, since Blogger removed the SSL feature of the comment page, I suggest to replace the 'https://' address with 'http://'. This will, evidently, speed up the page loading time. However, 'https://' is still working (at least for now).

I have seen lots of people who maintain their blogs on Blogger platform wants to know how to reply to comment with a single-click just as WordPress blogs do, so I wrote a slice of code, wish this would help those who want a [Reply to comment] link right after each comment.

For Blogger Layouts:
Log in to Blogger Dashboard, go to Layout - Edit HTML, then check Expand Widget Template.
You can search for this tag <data:commentPostedByMsg/>, add the following codes after it:
<span class='comment-reply'><a expr:href='&quot;https://www.blogger.com/comment.g?blogID=YOUR-BLOG-ID&amp;postID=&quot; + data:post.id + &quot;&amp;isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23&quot; + data:comment.anchorName + &quot;%22%3E&quot; + data:comment.author + &quot;%3C%2F%61%3E#form&quot;' onclick='javascript:window.open(this.href, &quot;bloggerPopup&quot;, &quot;toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=400,height=450&quot;);return false;'>[Reply to comment]</a></span>
You should replace YOUR-BLOG-ID with your blog ID, it can be found in your Blogger Dashboard URL, for instance, http://www.blogger.com/posts.g?blogID=12345678

Click Save Template, then have a look, you'll find [Reply to comment] after each of your blog comments. Click this link, it will return:
<a href="#c1234567890">Comment Author</a>
Submit your comment, you'll get a link directly to the comment you supposed to reply.

For Blogger Template:
This will be a little complicated.
Place these before </head> in your template code:
<ItemPage><script type="text/javascript">var postId = "<Blogger><$BlogItemNumber$></Blogger>";</script></ItemPage>
Find the place you want to place [Reply to comment] link, for example, after the tag <$I18NCommentAuthorSaid$>, paste these codes:
<span id="reply-<$BlogCommentNumber$>" title="Reply to comment"></span>
<script type="text/javascript">
var commentAuthor = '<$BlogCommentAuthor$>';
var commentAuthor = commentAuthor.replace(/<[^>].*?>/g,"");
var commentAuthor = escape(commentAuthor.replace(/ /,""));
document.getElementById("
reply-<$BlogCommentNumber$>").innerHTML = "<a href=\"https://www.blogger.com/comment.g?blogID=YOUR-BLOG-ID&amp;postID=" + postId + "&amp;isPopup=true&amp;postBody=%40%3C%61%20%68%72%65%66%3D%22%23<$BlogCommentAnchorName$>%22%3E" + commentAuthor + "%3C%2F%61%3E#form\" onclick=\"javascript:window.open(this.href, \'bloggerPopup\', \'toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=400,height=450\'); return false;\">[Reply to comment]</a>";
</script>
Save Template.

I hope all of you could like this trick. If you have any further problems or doubts, please leave them and your blog url in comments, thank you all.
本站原创内容遵循署名-非商业性使用 2.5 中国大陆协议

137 条评论: [+]

小毅 说... 回复 / Reply

就是你那篇快速回复的翻译版吧。呵呵

doggie 说... 回复 / Reply

呵呵,英语不错

Marcher 说... 回复 / Reply

@小毅: 嗯,有人需要,我就翻译。
@doggie:XD……

小毅 说... 回复 / Reply

问一个问题啊:你的页面上的友情链接部分都新开窗口,而页面内的链接则是在原来的上打开,这个新开是通过什么实现的啊。

eleven 说... 回复 / Reply

@小毅: 超链接标签里面加个target=_blank就可以了。

Marcher 说... 回复 / Reply

@小毅: 11哥说得对,你就在Link模块里找到那段b:loop,把li标签里的a href中间加上target="_blank"就成了。

小毅 说... 回复 / Reply

@Marcher:
谢谢,同时也谢谢11.我也知道加blank,就是不知道往哪加。呵呵

匿名 说... 回复 / Reply

@Marcher:test view

AcerMore 说... 回复 / Reply

@??:

Thank you. This works great. I "StumbledUpon" it for you.

http://censorshipisdictatorship.blogspot.com

Siao麻雀 说... 回复 / Reply

@��:bu ming bai...

Siao麻雀 说... 回复 / Reply

@小毅:=.=

马晨 说... 回复 / Reply

@Siao麻雀: 哪里不清楚呢?

匿名 说... 回复 / Reply

@nice:

சசிகுமார் 说... 回复 / Reply

@小毅:

EGHEGGF

Kyrié 说... 回复 / Reply

Thank you, I have been wishing for this option for a while.
http://kayessblog.blogspot.com/

匿名 说... 回复 / Reply

@小毅:muy bueno esto

Lalipourie 说... 回复 / Reply

i did instructions for layout and it didn't work! http://lalipourie.blogspot.com/2010/03/macro-fest-fashion-show.html

choonhong 说... 回复 / Reply

@Lalipourie: testing the effect.

MetalElf0 说... 回复 / Reply

Worked like a charm! Thank you!

Vivek Jain 说... 回复 / Reply

vivj2000.blogspot.com

Kerri-Mommy 4 Him 说... 回复 / Reply

I did try this....and the [reply to comment] shows, but when I go to reply it gives me an Error 404....how do I fix this??

mommyoffive4him.blogspot.com

Wanda 说... 回复 / Reply

This is excellent. I put it up on my blog nosmokenopressure.blogspot.com/ and it worked instantly!

匿名 说... 回复 / Reply

@eleven:test 123

匿名 说... 回复 / Reply

@சசிகுமார்:asdddd

نينو 说... 回复 / Reply

@Kerri-Mommy 4 Him:thanks

نينو 说... 回复 / Reply

@نينو:

马晨 说... 回复 / Reply

@Kyrié, @MetalElf0, @Wanda and @نينو, thank you all for visiting my blog :D

Hui Min 说... 回复 / Reply

don't understand, I tried very hard, but ended up fail~ :(

masturah idrus 说... 回复 / Reply

thanx for that info!

马晨 说... 回复 / Reply

@Hui Min: Tell me what's happened. My email is at the bottom of the page.

Hayu Nur Mahron / BlazeHack 说... 回复 / Reply

@马晨:

oh yeah !

Beth 说... 回复 / Reply

Mmmmm . . . I think this worked on both of my blogs (http://smalltravelsandmusings.blogspot.com and http://bethscraftythings.blogspot.com). I do have a couple of questions though.

When someone leaves a reply to the comment, will they know to leave the a href tag that shows up in the comment box so that it shows the comment is a reply? Or will it be a reply no matter what?

And will the person you're replying too get a copy of the reply so they know that you've replied?

Thanks!

马晨 说... 回复 / Reply

@Beth: You may tell your reader not to delete the a href tag in the reply field, because the tag will generate a pointer to the comment he is replying.
What's more, the replying tag is only a "pointer", it can not notify anyone that a comment is being replied. So, let your readers to check the email notification option underneath the reply field.

匿名 说... 回复 / Reply

@Beth:that's not work, what's problem?

马晨 说... 回复 / Reply

@Anonymous: @Beth did input a wrong BLOG-ID number... the correct one should be 5253592763634895016.

Katie and Steph 说... 回复 / Reply

Hi i want to do this real bad. i am using blogger template. when i paste everything, and try to save, i get an error says we cannot save your template, Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The content of elements must consist of well-formed character data or markup.

also i searched for WHERE To paste the script, but the example you gave, CommentsAuthorSaid, doesn't exist in my template html. my website is www.keepmecurly.com

i really need to reply to comments please help me.

马晨 说... 回复 / Reply

@Katie and Steph: Hi, I noticed that you're using Blogger LAYOUT, not the old TEMPLATE. So you should choose the LAYOUT code I provided in the post.
You could just follow the steps: check the "Expand Widget Template" option, find the label, insert the code. I believe you could do it :)
If you have any trouble, feel free to email me, blog@thisischen.com.

Julie Kieras 说... 回复 / Reply

I couldn't get this to work for my blog either - I thought I was using the Layout since I couldn't find any of the code for the template. http://ayearwithmomanddad.blogspot.com
Can you help me figure out what I did wrong? Thanks!

Nerzhul 说... 回复 / Reply

it work. thanx.

马晨 说... 回复 / Reply

@Nerzhul: Good job :D

MrsBossa 说... 回复 / Reply

Hi, it worked...but the reply doesn't go directly underneath the original comment - they all just go to the end.
Mrs Bossa

CouCou 说... 回复 / Reply

@Kyrié: I just want to try the functionality :-)

马晨 说... 回复 / Reply

@MrsBossa: Yes, I want this feature very much too. But it is not available in this script now, sorry about that.

sammarei@yahoo.com 说... 回复 / Reply

Wow, thank you so much, great instructions!
www.craftingwithintention.blogspot.com

匿名 说... 回复 / Reply

Brilliant blog, I had not noticed blog.thisischen.com before during my searches!
Keep up the superb work!

Monique 说... 回复 / Reply

Hi! I have input your code into my layout and have 'reply to comment' showing however it then says I have Error 404. Could you please have a look to see what I'm doing wrong? Thanks! Monique

http://originalmischief.blogspot.com

Monique 说... 回复 / Reply

@Monique:

Thank you! I have it working now. I'd put in a wrong number for my ID. Thank you so much for these instructions. ♥

匿名 说... 回复 / Reply

Greetings,

I have a question for the webmaster/admin here at www.blogger.com.

May I use some of the information from this blog post right above if I give a backlink back to this site?

Thanks,
Harry

Mia Liana 说... 回复 / Reply

thanks... i just add in my blog and it works...

匿名 说... 回复 / Reply

hello dear friends

I enjoyed this great hark work here,I do not know if you apreciated Poker, I wrote this topic to see if somebody can give me a help, cause I got a no deposit poker bonus on http://bestpokernodepositbonus.blogspot.com/2010/11/50.html the problem is now I don´t know where to begin ! heads up or Double or No thing? what should I Play and wath stakes?Cause Ido not learned much Poker strategy! Sorry I don´t speak Chinese I can only read it!

Kristen 说... 回复 / Reply

I tried the "For Blogger Layouts" one and did the steps a couple times and it never worked... I just wondered if you could help me??

kristen-enjoyingeverymoment.blogspot.com

Thank you!!

ISMAIL MD SALLEH 说... 回复 / Reply

thanks... i already add in my blog...

Zunayn 说... 回复 / Reply

Hi...
Really great!
thanks for sharing.
http://petscaretips4free.blogspot.com/

AB 说... 回复 / Reply

Thank you! This was so helpful! :)

匿名 说... 回复 / Reply

这是我第一次我访问这里。我找到了这么多,尤其是在您的博客讨论的有趣的东西。从你的文章评论吨,我想我不是唯一一个拥有一切乐趣在这里!保持良好的工作。

Banaka 说... 回复 / Reply

@Zunayn:just wanna to check

Amber D. 说... 回复 / Reply

Thanks! It worked perfectly!

匿名 说... 回复 / Reply

好贴。谢谢

a'im 说... 回复 / Reply

@匿名:test

匿名 说... 回复 / Reply

Hi there,

Thanks for sharing the link - but unfortunately it seems to be down? Does anybody here at blog.thisischen.com have a mirror or another source?


Cheers,
John

马晨 说... 回复 / Reply

@匿名:
Hi John, which link is down? I'm confused.

Ana 说... 回复 / Reply

I cannot tell if I'm using template or layout. I tried your layout instructions and got the "reply comment" after my comments but then when I clicked on it, I was taken to an error page. What should I do?

Here is my blog: http://keepinglovedonesupdated.blogspot.com/

Ana 说... 回复 / Reply

@Ana:

Where I'm getting confused is this step in your instructions:

"Click this link, it will return:

Comment Author"

Where do I click this link?

Many thanks!

马晨 说... 回复 / Reply

@Ana: Hi, I just visited your blog and found that you're using Disqus as your comment system, so I didn't know what's wrong with your layout code.
As you said, I think you may replaced the "BLOG-ID" with a wrong number. You can try your BLOG-ID, 6579917182352947509.
When you're done, you can see the link on your post pages.

Ana 说... 回复 / Reply

@??:

Thank you for your help! After I wrote to you yesterday,I discovered Disqus and finally got it to work. Many thanks again and best wishes.

匿名 说... 回复 / Reply

Hey,

Thanks for sharing the link - but unfortunately it seems to be down? Does anybody here at blog.thisischen.com have a mirror or another source?


Cheers,
John

匿名 说... 回复 / Reply

Hey,

Thanks for sharing the link - but unfortunately it seems to be down? Does anybody here at blog.thisischen.com have a mirror or another source?


Cheers,
Daniel

dreamlucky 说... 回复 / Reply

I'm using the layouts template as well. I've tried to follow your instructions. Unfortunately, when I have already expanded my widget template, I couldn't find the code you mentioned... Please advise!

Thanks for your help! =)

马晨 说... 回复 / Reply

@dreamlucky: Search for "", or "Says:", adding reply comment code (remember to modify the BLOG-ID number) after it, then you'll see the change :)

马晨 说... 回复 / Reply

@dreamlucky: Sorry, the code in first quote is filtered by Blogger: "< data:comment.author / >" (please remove space)

匿名 说... 回复 / Reply

@匿名:test2

Michelle in a shell 说... 回复 / Reply

Hi,

For some reason this code isn't working for me. What can I do?

Thanks!

Michelle in a shell 说... 回复 / Reply

Sorry, my blog is http://michelleinashell.blogspot.com

马晨 说... 回复 / Reply

@Michelle in a shell: I saw this code is now working on you blog now. Congrats.

Chris Sng 说... 回复 / Reply

AwEsOmE!!! Thankssss.
cs92.blogspot.com

SSP 说... 回复 / Reply

Hi,

How do i know if my blog is using a template or a layout? My blog is hopskipandwhistle.blogspot.com.

Thanks!

匿名 说... 回复 / Reply

Hi,

This is a question for the webmaster/admin here at blog.thisischen.com.

May I use part of the information from this post right above if I give a link back to your site?

Thanks,
Jules

Engineer-chic 说... 回复 / Reply
此评论已被博客管理员删除。
Engineer-chic 说... 回复 / Reply

ok, that was silly of me, I was entering the entire URL address and not just the number! '

My bad.

Thanks for this, it really helped!

Rhea

马晨 说... 回复 / Reply

@SSP:
Looks like you're using "Layout". Go ahead using "layout code", please ;)

马晨 说... 回复 / Reply

@Chris Sng @Engineer-chic:
Glad it helped. Spread it to your blogger-mates, please ;)

马晨 说... 回复 / Reply

@匿名:
Go ahead please.

匿名 说... 回复 / Reply

Hey,

Thanks for sharing this link - but unfortunately it seems to be down? Does anybody here at blog.thisischen.com have a mirror or another source?


Thanks,
Oliver

AW 说... 回复 / Reply

@Marcher:test

匿名 说... 回复 / Reply

Hello there,

This is a inquiry for the webmaster/admin here at blog.thisischen.com.

Can I use part of the information from your blog post above if I provide a link back to your website?

Thanks,
Daniel

Agus Pramono INdonesia 说... 回复 / Reply

that's nice posting. good to try.
thanks for the info.

I practise in my http://123tesdicoba.blogspot.com

my kind regards

agus from indonesia

匿名 说... 回复 / Reply

Hey,

Thanks for sharing this link - but unfortunately it seems to be not working? Does anybody here at blog.thisischen.com have a mirror or another source?


Thanks,
Jack

匿名 说... 回复 / Reply

Hey,

I have a message for the webmaster/admin here at blog.thisischen.com.

May I use part of the information from this post right above if I provide a backlink back to your website?

Thanks,
John

Sabra 说... 回复 / Reply

Thanks, worked GREAT!

Jackie B. 说... 回复 / Reply

thanks that worked perfectly!!!!

匿名 说... 回复 / Reply

Hi,

I have a question for the webmaster/admin here at blog.thisischen.com.

May I use some of the information from your blog post right above if I provide a backlink back to your site?

Thanks,
James

匿名 说... 回复 / Reply

Hi - I am definitely glad to find this. great job!

匿名 说... 回复 / Reply

Hi - I am definitely happy to find this. great job!

Danielle 说... 回复 / Reply

Okay, I'm usually pretty good at this kind of thing, but I'm starting to feel like an idiot! I cannot find this code snippet! I have even pasted my entire HTML into a text editor and did a search for "". Nothing. No "says:", either. What in the world am I doing wrong??? My blog is musingsandpuzzlings.blogspot.com, in case that helps...which it probably won't, but does allow me to get in a little plug. ;) Please help!

马晨 说... 回复 / Reply

@Danielle:Hey, Danielle, is your blog broken? I just find that your only post on the homepage is ended unexpected.
If you have any question, please contact me with the email address at the bottom of this page.

nISHi 说... 回复 / Reply

great post, really helpful.

匿名 说... 回复 / Reply

真是一个好职位。我真的很喜欢阅读这些类型或文章。我不能等待,看看别人怎么说。

匿名 说... 回复 / Reply

t1 malnuud

fuck 说... 回复 / Reply

fuck this page

匿名 说... 回复 / Reply

be happy and love. kiss

Kathleen Brown McNally, LCSW 说... 回复 / Reply

Hi, I checked Expand Widget Template, found the tag, see my ID, but since I've never worked with html before I have a really basic question...do I put the additional codes in on the same line, space, or new line? Thanks, I'm excited about this and really appreciate your help. My blog is http://CreatingTheLifeYouLive.blogspot.com

马晨 说... 回复 / Reply

@Kathleen Brown McNally, LCSW: It doesn't matter how you put it, let's try it in a new line.
If you have any question, you can contact me via email on the bottom of this page.

Kathleen Brown McNally, LCSW 说... 回复 / Reply

worked liked a charm, thisischen. thanks so much, you are very generous with your time and knowledge. :)

马晨 说... 回复 / Reply

@Kathleen Brown McNally, LCSW: You're welcome ;)

Anide 说... 回复 / Reply

GENIUS! Thank you so much.

匿名 说... 回复 / Reply

Simply killing some in between class time on Digg and I found your article . Not normally what I favor to examine, nevertheless it was absolutely worth my time. Thanks.

匿名 说... 回复 / Reply

Hey - I am really happy to discover this. Good job!

Taehreh 说... 回复 / Reply

Thank you!! I don't understand why blogger doesn't automatically have such a function.

匿名 说... 回复 / Reply

Hey – nice weblog, just looking round some blogs, appears a reasonably nice platform You Are using. I’m at the moment using Drupal for a few of my sites however looking to change one in all them over to a platform very much the identical to yours as a trial run. Anything particularly you'd suggest about it?

匿名 说... 回复 / Reply

I like it very much!

匿名 说... 回复 / Reply

I like it very much!

匿名 说... 回复 / Reply

Hi - I am really glad to discover this. Good job!

匿名 说... 回复 / Reply

THX for sharing

匿名 说... 回复 / Reply

I do know this isn’t precisely on subject, however i've a website using the same program as effectively and i am getting troubles with my comments displaying. is there a setting i am lacking? it’s attainable chances are you'll help me out? thanx.

马晨 说... 回复 / Reply

@匿名: Fine, let me know your problem first. You can contact me via email blog@thisischen.com

CJ 说... 回复 / Reply

AMAZING

匿名 说... 回复 / Reply

IЎЇm delighted that I have noticed this weblog. Finally anything not a junk, which we go through incredibly frequently. The website is lovingly serviced and stored up to date. So it must be, thank you for sharing this with us.

Viagra Online 说... 回复 / Reply

Excellent post, I couldn't ignore it.

匿名 说... 回复 / Reply

What do you mean?

Fun blogger 说... 回复 / Reply

@CJ:
Just checking how this Reply comment works

匿名 说... 回复 / Reply

Complex Post. This record helped me in my college assignment. Thnaks Alot

匿名 说... 回复 / Reply

Este foi um bom artigo para ler, obrigado por compartilhar isso.

Sonya 说... 回复 / Reply

Hi, I tried this, and I did get the "Reply to Comment" link next to comments... when I click it, though, I get an error 404 message. Can you please let me know what I'm doing wrong?

Thanks,
Sonya
http://artfulbeauty.blogspot.com

hoe krijg je sixpack 说... 回复 / Reply

Nice posto !

Courtney 说... 回复 / Reply

Thanks!!!

马晨 说... 回复 / Reply

@Sonya:
One thing I guess you might forgot is the BLOG-ID number, you should replace it with your own - you can find it in your blog dashboard url, please refer to my post.

匿名 说... 回复 / Reply

I just added your website on my blogroll. I may come back later on to check out updates. Excellent information!

匿名 说... 回复 / Reply

I just added your website on my blogroll. Really enjoyed reading through. Excellent information!

匿名 说... 回复 / Reply

Aw, this was a really nice post. In idea I would like to put in writing like this additionally - taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and by no means seem to get something done.

匿名 说... 回复 / Reply

Really great article with very interesting information. You might want to follow up to this topic!?! 2011

匿名 说... 回复 / Reply

My partner and I really enjoyed reading this blog submit, I was just itching to know do you commerce featured posts? I'm always trying to find somebody to make trades with and merely thought I'd ask.

匿名 说... 回复 / Reply

Hi there! I know this is kinda off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having problems finding one? Thanks a lot!

马晨 说... 回复 / Reply

@匿名:You can turn on the captcha in the Blogger dashboard - comments.

匿名 说... 回复 / Reply

Very effectively written information. Will probably be priceless to anybody who usess it, including myself. Keep up the great work – for positive i will try more posts.

Luisa Rodríguez 说... 回复 / Reply

@小毅:testing

Iseiseje 说... 回复 / Reply

@AcerMore:
ekekekeke

匿名 说... 回复 / Reply

Thanks for all your work.

发表评论

请勿张贴商业广告。评论可能需要审核。
No advertisement. Comment review enabled.
若以下评论表单没有显示,请点此发表评论