If you make Blogger templates or template based hacks, this info might interest you. In the comments section, usually in <b:includable id='comments' var='post'>, if one needs to check if the comment author is blog admin, often seen solutions include:
<b:if cond='data:comment.author == "PUT_USERNAME_HERE"'>
and
<b:if cond='data:comment.authorUrl == "http://www.blogger.com/profile/01234CHANGETHIS56789"'>
But the easiest way, and least error prone, is:
<b:if cond='data:comment.authorClass == "blog-author"'>
After realising this, I updated my
How to Hightlight author comments in Blogger hack to use this easier method.
0 comments:
See the hack to make the 'Post a Comment' link bigger.
Post a Comment