Hi,
I'm using D7 and Gravatar 7.x-1.1
but I am unable to get this module show gravatar of anonymous users. help please!

CommentFileSizeAuthor
#1 gravatar-1164540.patch1.26 KBtoleillo

Comments

toleillo’s picture

StatusFileSize
new1.26 KB

Hi,
This patch add Gravatar images on anonymous comments overriding variable $picture.

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

You need to make sure your commenters are forced to enter their e-mail addresses, otherwise this should work without a patch as comment.module uses theme('user_picture') just like the rest of core.

toleillo’s picture

You are right! Works for me!!


To nilesh.3892 (Text in README):

User picture support (admin/config/people/settings admin/config/people/accounts ) must be enabled for Gravatar
to work. Once Gravatar is installed and enabled, you can configure the module
at admin/config/people/gravatar.

You will also want to make sure user pictures are enabled for your theme at
admin/appearance/settings and the approprate user roles have the 'use gravatar'
permission assigned to them at admin/people/permissions.

Thanks Dave!

eigentor’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Active

I can confirm anonymous user's Gravatars do not show up on comments, so setting to active.
The patch from #1 fixes it.
So much appreciated if this is committed to the module.

wim leers’s picture

It works just fine for me in D7.7 + Garland + Gravatar 1.1 + anonymous comments, if you follow the instructions as described in the README (as mentioned in #2/#3).

eigentor’s picture

I had user pictures enabled and Users had entered an e-mail-Adress.
Even if they do not enter an e-mail-Adress there should be one of the fancy gravatar default images (got the monsters myself).

Maybe I should mention my site has been upgraded from Drupal 6 to Drupal 7 (and I think even started at Drupal 5).
Sometimes things do not work on upgraded sites, e.g. admin_role which is in core does not work correctly. So this might be the reason, but still would be interesting to know what causes this.

plach’s picture

@eigentor:

The user picture for anonymous users (allowed to use gravatars!) who did not provide an email, appear to be fixed in the last development snapshot, where the default gravatar image is correctly used. In the 7.x-1.1 release no image appears instead. I think this can be considered fixed.

eigentor’s picture

Dammit, the permissions may have been the problem all the time. Anonymous users allowed to use gravatars...
Will try on a clean site and hide in my hole of shame :)

--- edit ----

Yes that was it. Allow usage of Gravatar for anonymous users and everything works out of the box.
Setting to fixed.

eigentor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jnroche’s picture

..(deleted)

web226’s picture

Issue summary: View changes

I could not get the Gravatar user image to show up either and followed the permissions recommendations above in #3 but it still did not work.

Finally got the image to show by setting 'Picture Display Style' to 'None' at /admin/config/people/accounts.

Problem was that I am using a CDN and setting an image style for the User Gravatar image corrupted the image when it was trying to serve it from a CDN instead of direct from the Gravatar website.

See the Gravatar working now on this page in the comments section:

iPhonesbaby.co.uk