Simple Way , How to enable gravatar in wordpress blogs?
November 18th, 2008 | by Hideident |1. Go to /wp-content/themes/themename and open comments.php .
2. Find < ?php comment_text() ?> or comment_text() in comments.php and add the following code before that.
<?php
if ( !empty( $comment->comment_author_email ) ) {
$md5 = md5( $comment->comment_author_email );
$default = urlencode( 'http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=60' );
echo "<img style='float: right; margin-left: 10px;' src='http://www.gravatar.com/avatar.php?gravatar_id=$md5&size=60&default=$default' alt='' />";}
?>
This methode, taken from : http://microblog.ravidreams.net/how-to-enable-gravatar-in-wordpress-blogs/
I appreciate it, because it is very simple, and it is work!
Balikpapan Blogger
3 Responses to “Simple Way , How to enable gravatar in wordpress blogs?”
By Q-thrynx on Dec 11, 2008 | Reply
lho? WP gak udah built in ada gravatarnya toh?
By Admin B! Blogger on Dec 26, 2008 | Reply
Sudah register di B! Blogger, tapi kok logonya B! Blogger blom dipasang?
Mau jadi member B! Blogger gak nih??
By Fuad on Feb 4, 2009 | Reply
cara manualnya belum tahu saya, ternyata disini ada