>

Highlight Author Comment

Highlight Author Comment function is the author commented that (the owner of blog) is different with the comments of others. For example can be seen in this blog. To comment blog owner bordernya and there will be no other effect. and the following will be how I love to make this Highlight Author Comment. I all ready? Being OK dance togather: D

1. Login to bloggers continue to menu "layout -> Edit HTML"
2. Check the box "Expand Widget Templates"
3. Copy the following script code before ]]></b:skin> or copy the CSS code.

.comment-body-author {
background: #E6E6E6; /* Colour Background */
border-top: 1px dotted #223344;border-bottom: 1px dotted #223344;border-left: 1px dotted #223344;border-right: 1px dotted #223344;
margin:0;
padding:0 0 0 20px;
}

4. Then, looking like the following code. Maybe there's a code in the HTML you will be different, although I try semirip may be different with the following code:

<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<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>
said...
</dt>

<b:if cond='data:comment.author == data:post.author'>
<dd class='comment-body-author'>
<p><data:comment.body/></p>
</dd>
<b:else/>

<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>

</b:if>

<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>
</b:loop>
</dl>

5. Code red is the color code that you must add in the HTML you. The position must be correct, remember that.
6. It has continued disave templates you.

Comment author is based on the profile of the owner's blog page. So in order to give effect to appear before the comments you must be logged in the first bloggers. OK.
Oh yes, this is not to comment from haloscan too. But the box only for comments from the blogger's pure.

Comments :

0 comments to “Highlight Author Comment”

Post a Comment