感谢作者protesto。此 hack效果如图:
首先找到你的如下代码:然后添加如下两行粗线的代码进你的代码。
<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<div class='commentphoto' style='float:right;'/>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
<div style='clear:both;'/>
</b:loop>
</dl>
粗线的代码你可以自定义float:right 和 float:left 来决定你希望头像靠右边还是左边。
接着保存,然后在head部分, ]]></b:skin>之下,</header>之上 添加如下代码:
<script src='http://yggomelprup.googlepages.com/blogger_comment_photos.js' type='text/javascript'/>然后就成功了~~~保存,看效果吧 ~~
<script type='text/javascript'>
//<![CDATA[
addLoadEvent(function(){showCommentPhotos('commentphoto','comment-author', 1);});
//]]>
</script>
7 评论:
1-
GG
说...
-
-
2006年12月15日 GMT+8 16:21:00
2
-
匿名
说...
-
-
2006年12月15日 GMT+8 16:22:00
3
-
Alex
说...
-
-
2007年5月2日 GMT+8 15:26:00
4
-
GG
说...
-
-
2007年5月2日 GMT+8 22:57:00
5
-
Geizistgeil
说...
-
-
2007年8月26日 GMT+8 00:35:00
6
-
匿名
说...
-
-
2008年8月6日 GMT+8 15:49:00
7
-
GG
说...
-
-
2008年8月6日 GMT+8 16:13:00
大家也可以看此贴的评论效果~~
头像……
只能在发表评论的地方看吗??
是的
看了,原来是这样。明白了。
这个头像是显示blogger个人资料那里的头像吗?
是的,但是不知道这个hack还有效没有哈……
发表评论: ☆欢迎灌水☆言论自由☆交流快乐☆