The default bug view has changed. See this FAQ.

Support Gravatar for User Avatars (Icons/Pictures)

NEW
Unassigned

Status

()

Bugzilla
Creating/Changing Bugs
--
enhancement
10 years ago
2 years ago

People

(Reporter: Max Kanat-Alexander, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
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/

Comment 1

10 years ago
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.
(Reporter)

Comment 2

10 years ago
Sure, it'd be an easy-enough plugin.

Comment 3

7 years ago
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?
(Reporter)

Comment 4

7 years ago
  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.

Comment 5

7 years ago
Created attachment 434305 [details] [diff] [review]
hack gravatar directly into bugzilla

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.

Comment 6

7 years ago
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.
(Reporter)

Comment 7

7 years ago
(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.

Comment 8

7 years ago
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...

Comment 9

7 years ago
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.

Comment 10

4 years ago
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 …

Comment 11

4 years ago
It works.
Indeed, also seems to be wfm on bugzilla.mozilla.org :)

Comment 13

4 years ago
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.

Comment 15

4 years ago
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.

Comment 17

3 years ago
i'd like to mention that gravatars are not working at all right now.

Comment 18

3 years ago
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.

Comment 19

3 years ago
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.

Comment 21

2 years ago
Since Gravatar works on bmo, any chance of merging this extension upstream so we call can use it?
You need to log in before you can comment on or make changes to this bug.