We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Plugin: EEGravatar

Development and Programming

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
15 years ago
Sean C. Smith's avatar Sean C. Smith

Code 72 are you using the EE2.0 compatable gravatar plugin?

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

Sean, this plugin is 2.0 compatible and also supports the {name} variables when used in member listings.

Code72, so you can’t output just the {email} variable (without the plugin code)?

       
code72's avatar
code72
104 posts
15 years ago
code72's avatar code72

yea, I grabbed it from github. The plugin seems to work fine, it’s just that the ‘email’ variable within the exp:comments loop refers to the entry author’s email address not the comment author’s email address. Is this just an EE2.0 problem or am I missing something?

       
code72's avatar
code72
104 posts
15 years ago
code72's avatar code72

Phillip, As I said above, I can output the {email} variable but it’s the entry author’s email address even within the comments loop, not the comment author’s email address. Are you not seeing that problem in EE2.0?

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

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}
       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

again, the email=”{email}” got messed in the forum post, make sure it’s correct in the code 😊

       
code72's avatar
code72
104 posts
15 years ago
code72's avatar code72

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.

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

Great! glad it’s working for you now! The EE 2.0 docs still need some work, for example the {email} variable isn’t actually listed as on option as a variable to use (I’ll submit that as a bug).

At any rate glad you got it working!

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

Just pushed an update to the plugin live on github. For EE 1.6.x and 2.0.

http://github.com/philipzaengle/gravatar.ee_addon

       
Jonathan Schofield's avatar
Jonathan Schofield
175 posts
15 years ago
Jonathan Schofield's avatar Jonathan Schofield

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.

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
15 years ago
Philip Zaengle's avatar Philip Zaengle

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.

       
Joelle's avatar
Joelle
272 posts
about 15 years ago
Joelle's avatar Joelle

I noticed that size=”” doesn’t seem to be working? When I used the one you posted to github, the plugin started working again, but the size no longer works – it just shows the default, regardless of what size=”” I set.

Is there a newer version somewhere? Thanks!

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
about 15 years ago
Philip Zaengle's avatar Philip Zaengle

Hi Joelle, can you post the code your using as well as the url to the image the plugin is outputting?

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
about 15 years ago
Philip Zaengle's avatar Philip Zaengle

also, is this for EE 2.0 or EE 1.6?

       
Joelle's avatar
Joelle
272 posts
about 15 years ago
Joelle's avatar Joelle

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!

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.