Gravatar adds a comment author’s Gravatar by adding
<img src="gravatar ?>">
to the relevant file(s) in your theme.
For the K2 theme, make the following changes to `themes/k2/comments.php`:
1
2
3
4
5
6
7
8
9
10
11*** system/themes/k2/comments.php 2010-06-21 22:15:10.587118909 +0800
--- user/themes/k2/comments.php 2010-06-21 23:20:23.068368014 +0800
***************
?>
<li id="comment-<?php echo $comment->id; ?>" <?php echo $theme->k2_comment_class( $comment, $post ); ?>>
<a href="#comment-<?php echo $comment->id; ?>" class="counter" title="<?php _e('Permanent Link to this Comment'); ?>"><?php echo $comment->id; ?></a>
+ <img src="<? echo $comment->gravatar ?>">
<span class="commentauthor"><?php echo $comment_url; ?></span>
<small class="comment-meta"><a href="#comment-<?php echo $comment->id; ?>" title="<?php _e('Time of this Comment'); ?>"><?php $comment->date->out(); ?></a><?php if ( $comment->status == Comment::STATUS_UNAPPROVED ) : ?> <em><?php _e('In moderation'); ?></em><?php endif; ?></small>