Hi,
I'm Trying to put Gravatar in my ChronoComments. I use this code in comment-item.html.php
This print to me the email from comment but the gravatar don't work. If I change "{comment_email}" for my email the gravatar work perfect, so, you have any idea whats goin on? I can pick the email from comment if php and not if {comment_email}?
Ty
Thiago Vagostelo
I'm Trying to put Gravatar in my ChronoComments. I use this code in comment-item.html.php
<?php
$email = "{comment_email}";
$email = strtolower($email);
$size = 80;
$default = "http://tboa.com.br/teste/components/com_chronocomments/images/avatar1.png";
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email)."&default=".urlencode($default)."&size=".$size; ?>
<div id="ver"><?php print $email;?></div>
<img src="<?php echo $grav_url; ?>" alt="avatar" class="avatar"/>
This print to me the email from comment but the gravatar don't work. If I change "{comment_email}" for my email the gravatar work perfect, so, you have any idea whats goin on? I can pick the email from comment if php and not if {comment_email}?
Ty
Thiago Vagostelo