I realise this might seem rather counter-intuitive, not to mention fascistic, but I'd really like to be able to force my site's gravatars to be identicons, even when users have an email address registered with the service. The site is based on anonymity and I don't want people to recognise a gravatar from elsewhere, yet I do want to visually stamp each anonymous user visually to make reading comments easier.
Would this be easy to implement?
Comments
Comment #1
dave reidThis isn't too easy. You have to provide the e-mail address MD5 hash in the Gravatar API URL, and there's no way to 'override' and not display the Gravatar if they have it. I see only two potential options. I guess you could provide some kind of transformation of the hash, but you still can't guarantee that somehow it will match another e-mail address of an undesired user. If you use a randomization of the hash, you won't end up with the same avatar for the same person/e-mail.
Comment #2
dave reidI guess probably the most valid solution would be to port the WP-Identicon module to Drupal. If you're interested, you can contact me for an estimate to do this.
Comment #3
Narno commentedFor my part, I see 2 possibilities:
1. in the case of anonymous comments, add a checkbox (in the comment before, just below the e-mail) to allow the user to choose whether to use the gravatar (if is one of course). Then the image default Drupal displayed (if it exists).
2. in the case of authenticated users, they can choose whether or not to use their gravatar by changing the appropriate option in their account settings.
In 2 cases, this is not "identicon" to be used, but users have the choice of anonymity ...
I guess Dave's proposal would be more appropriate! :-P
Comment #4
dave reidYeah, being able to do this for anonymous comments with this module would add another unwanted layer of complexity. If users don't want their Gravatars to display on a site they can use gmail-style e-mail addresses like myname+nogravatar@gmail.com or probably shouldn't be using the Gravatar service to begin with. :)
Comment #5
Narno commentedYes, I'm totaly agree with you! :-)
Comment #6
dave reidOk I'm going to mark this as 'by design' then.
Comment #7
stevekerouac commentedFine, thanks for responding and I appreciate the points made. I knew it was a weird request.