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!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | gravatar-1164540.patch | 1.26 KB | toleillo |
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!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | gravatar-1164540.patch | 1.26 KB | toleillo |
Comments
Comment #1
toleillo commentedHi,
This patch add Gravatar images on anonymous comments overriding variable $picture.
Comment #2
dave reidYou 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.
Comment #3
toleillo commentedYou are right! Works for me!!
To nilesh.3892 (Text in README):
User picture support (
admin/config/people/settingsadmin/config/people/accounts ) must be enabled for Gravatarto 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!
Comment #4
eigentor commentedI 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.
Comment #5
wim leersIt 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).
Comment #6
eigentor commentedI 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.
Comment #7
plach@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.
Comment #8
eigentor commentedDammit, 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.
Comment #9
eigentor commentedComment #11
jnroche commented..(deleted)
Comment #12
web226 commentedI 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