From: Richi
Subject: Can't delete comments or edit from blog
Date: Sat, 27 Nov 2004
I'm logged into blogger.com, but I don't see the trashcan icon by the comments, and I can only edit posts via blogger.com, and not from the blog itself.Can you either help me make it work from the blog, or at least tell me how to delete comments from blogger.com, please?
I've tried using IE6 as well as Firefox 1.0. OS is Win2003.
To which they replied:
To delete a comment, first make sure you're logged into Blogger, then visit the Post Page where the comment is displayed. Next, click the small trash can icon next to the comment.The problem with your trash cans seems to be due to the fact that you are using frames within your blog. You will need to modify this in order for the trash can icons to appear properly.
Currently, Blogger Support does not support questions regarding customized template code or CSS/HTML in general. Please see our Blogger Help article for a pointers to more resources: http://help.blogger.com/bin/answer.py?answer=115
Hmmm, I'm not using frames. Oh, wait, I might have been briefly while they looked at the problem. Nuts. Let's try this...
I already tried everything you suggested. I also tried with frames and without. I also tried republishing the blog after resetting the URL to use the underlying web host (www.richi.nildram.co.uk). I also tried using Blogspot. None of these made any difference. Despite being logged in to Blogger, no trash icon appears in the Post page, whether using Firefox 1.0 or IE6.
To which they came back with...
Unfortunately we don't provide support for template modifications such as these.Your best bet is to back up your custom template to a text file, then start from scratch with one of Blogger's default templates, where Blogger's template tags are listed in their original context. Then, insert the tags into your custom template with this context in mind.
Blogger Help's Template Tags section is also a good resource: http://help.blogger.com/bin/topic.py?topic=39
You might also want ot try changing your publishing settings to not publish through frames or try publishing to Blogspot.
You might also want to try
Have fun!
I might want to try to have fun? What, are they telling me I need to get out more? ;-)
So I fiddled a bit more, reset the template, and it still didn't work. Then their Tags help page got me thinking, and I went to look in the generated source for the post. There I found where it was trying the draw the icon!
OK, I saved my modified template, reset it to the original, republished the entire thing, and I still get no trashcan icon by the comment in the Post page.Makes sense, 'cos I didn't mess with that bit of the template. I can see that <$BlogCommentDeleteIcon$> is there where it should be in the template. In fact, I looked at the generated source and could see where it was trying to draw the icon. It looks like this:
(can't seem to paste HTML into a post -- grrr)
So I manually went to http://www.blogger.com/delete-comment.do?blogID=... and sure enough it worked! The comment got deleted. So at least I have a workaround now. Thanks for the link to the tag help page.Could it be that you can't nest span class="..." tags? Otherwise, I'm stumped as to why it doesn't work as advertised, but thanks for the help. If you want me to try anything else to help you get to the bottom of this, let me know.
So there you have it. If you can't delete comments, go to the post page, view source, and look for the "delete-comment.do" URL. Go there manually and
voila!