Closed Bug 395802 Opened 14 years ago Closed 2 years ago

Support Gravatar for User Avatars (Icons/Pictures)

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

3.1.1
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: mkanat, Unassigned)

Details

Attachments

(1 file)

There's a nice website that allows you to have the same "avatar" (small picture) that represents you on different websites. It works by email address, so we could support it in Bugzilla.

All we really need is Gravatar::URL: http://search.cpan.org/dist/Gravatar-URL/

Here's the Gravatar site for anybody who's interested:

http://site.gravatar.com/
Compared to other RFEs which we said would be better implemented as a plugin, I think this one perfectly matches the criteria to be implemented as a plugin too.
Sure, it'd be an easy-enough plugin.
Hey Guys, I just did a quick and dirty implementation of this at work using our ldap data, some modification to the syncLDAP.pl contrib script, and then some pretty minor changes to show photo IDs. Then I decided to see if there was an open bug for this. I was thinking of adding an interface that would allow you to choose the source of your photo (LDAP if it exists, gravatar, upload). The thing is, my implementation adds a photo column to the profiles table in the db. I can't find any documentation on how to write plugins, but can a plugin do database schema changes?
  Hi Uri. For Bugzilla 3.6, the documentation on Extensions is here:

  http://www.bugzilla.org/docs/3.6/en/html/api/Bugzilla/Extension.html

  Earlier versions of Bugzilla do not have comprehensive documentation for their (different) extensions system.
awww it's so easy just to hack gravatar support right in (aside from the addition of lib/Template/Plugin/Digest/MD5.pm). but yeah... that's wrong. I'll work on making an extension out of this.
Uri you might want to check out this blog post http://guy-pyrzak.blogspot.com/2010/03/bugzilla-extensions-gravatar-and-inline.html . I recently started to write a Gravatar extension when I realized there was a lot more to it than just adding an img tag.
(In reply to comment #6)
> I recently started to write a Gravatar extension when I realized there was a
> lot more to it than just adding an img tag.

  However, an extension that just added an image tag would be a good and simple start.
Hey Guy, I read your post, thanks. Do you mean it's not so simple because of the layout problems that are introduced? To me that doesn't seem like an issue because the default for the extension could just make the image some 16px or so, so as not to affect the layout much at all. At that size it isn't terribly useful, but on the other hand most bloggy sites that use gravatar tend to default to quite small images anyway.

I did include a class on the img tag so that if you wanted to get fancy with the layout you could increase the size of the image to suit your needs. As a matter of fact, it seems rather easy to get that side-bar layout that you've got on your site with nothing more than a few css rules:

div.bz_comment_head {display: table-cell;}
div.bz_comment_head>span {display: block}
pre.bz_comment_text {display: table-cell;}

and of course:
img.gravatar {...}

(it's not perfect, and the widths of the cells aren't uniform, but you get the gist).

When I get a minute (one of these days) I'll try an extension that just does the simplest, dumbest thing. Of course, You're welcome to beat me to the punch if you like =). Especially if you've got fancier plans in mind...
by not so simple i mean if you put the image everywhere it could look dumb and there are many ways to skin this cat. But you're right, do it simply get feedback, move forward from there. 

I'm happy to have someone else take the lead on this, especially if you're excited about it. Goodluck with the extension.
This is probably fixed now, currently needs to be enabled in the user prefs. 

Though mine is not shown and I don't know why …
It works.
Indeed, also seems to be wfm on bugzilla.mozilla.org :)
So you're saying you see my Gravatar? 

Frank, I can't see yours (it shows the generic icon like me) while I can see Pander's (as everone else's except Frédéric's). Odd.
Ah sorry, I removed the picture again, currently looking for a better one, heh. No, I only saw my own one, the one of Pander and various others in this bug here.
Could this user prefernce be set by deafult to ON?

Anyone that has a Gravatar, the Gravatar can be looked up by the email address. Therefore I don't see added value of setting it OFF by default.

If you want it OFF be default, don't use Gravatar to begin with. :)
(In reply to Florian Bender from comment #10)
> This is probably fixed now, currently needs to be enabled in the user prefs. 

this bug isn't fixed.  bugzilla.mozilla.org deployed a simple gravatar extension, while this bug is about getting it integrated with bugzilla itself.

for bmo the extension is at http://bzr.mozilla.org/bmo/4.2/files/head:/extensions/Gravatar/, which required additional hooks to implement (see bug 903955).

if you have issues with the gravatar implementation on bugzilla.mozilla.org, please file a bug in the bugzilla.mozilla.org product.
i'd like to mention that gravatars are not working at all right now.
Here it does work. See http://img822.imageshack.us/img822/1537/b0ql.png

One remark though, the images are rescaled to smaller sizes in the browser. This is suboptimal. The Gravatar service can deliver the images in appropriate dimension. Please improve the use of Gravatars in order to minimise downscaling in the browser.
Seems  working now.
gravatar support on bugzilla.mozilla.org is implemented via a bugzilla extension. any issues with gravatar on this bugzilla installation tracked in the "bugzilla.mozilla.org" product, not here.

(In reply to Pander from comment #18)
> One remark though, the images are rescaled to smaller sizes in the browser. This is suboptimal.

this is required to support hidpi/retina displays.  see bug 921860.
Since Gravatar works on bmo, any chance of merging this extension upstream so we call can use it?

The Gravatar extension used in BMO will be shipping with Bugzilla 6.0.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Bugzilla 6.0
You need to log in before you can comment on or make changes to this bug.