5
It does not seems too difficult to
implement.
Now you have in XOOPS something like this in the PHP file
$poster['avatar'] = $com_poster->getVar('user_avatar');
or
$poster['avatar'] = 'blank.gif';
and in the template:
<img class="comUserImg" src="<{$xoops_upload_url}>/<{$comment.poster.avatar}>" alt="" />
Replace them with:
$poster['avatar'] = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $com_poster->getVar('email') ) ) ) . "?d=" . urlencode( XOOPS_UPLOAD_URL . $com_poster->getVar('user_avatar') ) . "&s=80";
or
$poster['avatar'] = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $com_poster->getVar('email') ) ) ) . "?d=" . urlencode( XOOPS_UPLOAD_URL . "blank.gif&s=80";
and
<img class="comUserImg" src="<{$comment.poster.avatar}>" alt="" />
To test!
If you want another size replace the 80
If you want the size set in your template, move the &s=80 from PHP to your template.