I tried to use the gravatar image in comments. Gravatar use MD5 encoded e-mail address.
More information in gravatar homepage.What is a gravatar?
A gravatar, or globally recognized avatar, is quite simply an 80×80 pixel avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites. Avatars help identify your posts on web forums, so why not on weblogs?
CREATE reptag_MD5.php in phpwcms_template/inc_script/frontend_render/ folder.
Code: Select all
<?php
function showMD5value($value = '')
{
return md5($value);
}
// -------------------------------------------------------------
$content["all"] = preg_replace('/\{MD5:(.*?)\}/ie', 'showMD5value("$1");', $content["all"]);
// -------------------------------------------------------------
?>
COPY default.html to comments.html in phpwcms_template/inc_cntpart/guestbook/ folder.
EDIT comments.html in phpwcms_template/inc_cntpart/guestbook/ folder:
FIND the <!--GUESTBOOK_ENTRY_START//--> section and ADD this img tag:
Code: Select all
<img src="http://www.gravatar.com/avatar.php?gravatar_id={MD5:{EMAIL}}&size=40" alt="{NAME}">
Check the results

The result (it's my gravatar):
Code: Select all
<img src="http://www.gravatar.com/avatar.php?gravatar_id=59cca5a3307b5701408961bcec2ba2c5&size=40" alt="Palócz Pál">
Paul