<?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"/>
'avatar' => $avatar ? $avatar : JURI::Base().'components/com_chronocomments/images/avatar1.png',
'avatar' => 'http://www.gravatar.com/avatar.php?gravatar_id='.md5( strtolower($commentx->email) ).'&default=http://yoursite.com/components/com_chronocomments/images/avatar1.png&size=80',
'avatar' => $avatar ? $avatar : JURI::Base().'components/com_chronocomments/images/avatar2.png',
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
After hours trying I find a answer =D
If anyone want gravatar in your comment system you have to do this:
In /components/com_chronocomments/chronocomments.php find: and replace it with: ,
three times in this file. Save and up!
In /plugins/content/ChronoComments.php
Find: and replace it with:
twice in this file. Save and up!
Ok, your gravatar is working =P I put 80px x 80px in mine but you can put the size you want =)
Sorry my english, I'm brazilian =P And great component =D
o/
Thiago Vagostelo
[[>> edited for clarity : greyhead <<]]
obrigado!
Regards
Max
ChronoForms7 Video Tutorials
I got it