ExpressionEngine 7.5 has been Released! Learn More!
It’s working fine for me. Are you wrapping the {exp:comments} tag inside of the {exp:channel} tag?
The following (outside of all other tags) should work, can you test it out?:
{exp:comment:entries sort="asc" limit="20"}
{comment}
{exp:gravatar email=
By {name} on {comment_date format="%Y %m %d"}
{/exp:comment:entries}
Huh, so I got it working, but only outside of the {exp:channel} tags. I thought {exp:comments} was supposed to go inside of the {exp:channel} loop, but after more careful inspection of the docs, it does actually say:
Please note that the comment entries tag should not typically be nested inside of a standard {exp:channel:entries} tag.
My bad. Thanks for your help Phillip.
Just pushed an update to the plugin live on github. For EE 1.6.x and 2.0.
Great to see this plugin under your active stewardship, Philip.
I’d love it if the alt attribute were sensitive to the presence or absence of a gravatar so one doesn’t get a situation where the user-defined default (placeholder) image is shown but the alt attribute still says:
alt="Picture of {author}"
When the default image is shown the alt attribute ought to be empty instead:
alt=""
Other than that, keep up the good work.
Good suggestion. But I’m not sure if there’s a way to do that. The plugin simply turns the e-mail address into an md5 hash and attaches it to a URL. Gravatar handles the rest. So there’s really no way to test to see if gravatar has a avatar for a user or not… I’ll look into it and see if I’m wrong though.
EE 1.6.9 20100430 and I’m using the correct plugin, as well. I had my own code snippet that I’ve used a lot, but when it wasn’t working, I decided to go right to the horses’ mouth, as it were and grabbed it from your site. 😊 But, I might have tinkered with something. Entirely possible!
{exp:gravatar email=
Right now, I’m forcing the size using CSS, but if I don’t have a h/w applied to .avatar, it defaults to the bigger 70px size.
What am I doing wrong here? lol I’ve used this plugin forever, so I’m flummoxed. Thank you!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.