[ php-blog-Patches-1640736 ] Add Email variable to gravatarplugins default image url

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Patches item #1640736, was opened at 2007-01-21 12:00
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542824&aid=1640736&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
>Priority: 1
Private: No
Submitted By: Gina Haeussge (foosel)
Assigned to: Garvin Hicking (garvinhicking)
Summary: Add Email variable to gravatarplugins default image url

Initial Comment:
In order to allow the md5 hash of the comment submitters emailaddress to be used in the default image url passed to gravatar, I created an %email% var with gets substituted in the gravatar default url prior to appending to the image url. I also had to url-encode the resulting url in order to allow any request parameters be passed to the default url. The resulting patch is appended.

----------------------------------------------------------------------

>Comment By: Garvin Hicking (garvinhicking)
Date: 2007-01-22 09:10

Message:
Logged In: YES 
user_id=473563
Originator: NO

Ah! Of course. That makes sense. :-)

I just committed your patch to the gravatar plugin!

Thanks a lot for your input,
Garvin

----------------------------------------------------------------------

Comment By: Gina Haeussge (foosel)
Date: 2007-01-22 08:37

Message:
Logged In: YES 
user_id=989245
Originator: YES

Sure :) The reason I needed the md5 hash in there was to allow MonsterID
(http://www.splitbrain.org/projects/monsterid) to work properly. It
generates a random monsterimage (eg as fallback image for non-existent
gravatars) based on a given seed (e.g. the md5 hash of the submitters
email). Makes it possible to distinguish J.RandomPoster A from
J.RandomPoster B at one glance even if they don't have a gravatar account
(and also looks kind of funny)

The possibility to add the md5 hash of the emailaddy to the fallback-URL
enables you to use whatever fallback-image-generator you can think of, so I
thought it might be of general interest, taking into account stuff like
http://www.docuverse.com/blog/donpark/2007/01/18/visual-security-9-block-ip-identification
as well

----------------------------------------------------------------------

Comment By: Garvin Hicking (garvinhicking)
Date: 2007-01-22 08:19

Message:
Logged In: YES 
user_id=473563
Originator: NO

Can you explain why the md5 hash of a submitters email is useful in the
'default' URL variable? The submitters email should only be used for the
"real" avatar, not the default avatar?

I mean, shouldn't the reason for a default-avatar be that it shows a
static avatar?

Maybe I'm just not understanding things, so I'd love if you could lighten
me up :)

Best regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542824&aid=1640736&group_id=75065

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.