Avatar fallback chain

Creating and modifying plugins.
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Avatar fallback chain

Post by yellowled »

I have the following chain of avatar types set in the Avatar plugin: Gravatar, Twitter, Idenctica, Favatar, Default. Nevertheless, for some commentators, the favatar icon (which is very low-res, hence not preferable) is picked although they provided an email registered to a Gravatar in their comment. The plugin is set to not use Gravatar restrictions, at least one commentator as reported that his avatar does not have such a restriction.

(I already discussed this with Grischa, this is just a take-it-to-the-forum-post.)

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

Is this problem for all Gravatars? Or only for some? Do you know that?
"Not use Gravatar restrictions" means "Keine Indizierung benutzen" in German?

Perhaps we should do a little "debug session" on that problem, because from first view I did not get the problem.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Avatar fallback chain

Post by yellowled »

blog.brockha.us wrote:Is this problem for all Gravatars? Or only for some? Do you know that?
No idea. Janek noticed this on his latest comments in my blog, this was the first "complaint" I have gotten about this. Also noticed that Twitter/Identica is not a "real" fallback since it only works if the URL given in the comment form points to a Twitter/Identica profile page, but I guess that makes sense (you already mentioned extending the Comment Spice plugin to support this, which would be great).
blog.brockha.us wrote:"Not use Gravatar restrictions" means "Keine Indizierung benutzen" in German?
Yes. I was too lazy to switch my backend to English to get the proper translation. :)
blog.brockha.us wrote:Perhaps we should do a little "debug session" on that problem, because from first view I did not get the problem.
I'm not comfortable with doing too "deep" debugging in a productive blog (DB manipulation etc.), but other than that, sure. What can we do?

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

Twitter/Identica is indeed more for tweetbacks. I don't think a user will add his twitter page as homepage (but if he does, the twitter ava will be fetched as fallback).

I already added a connection between CommentSpice and the Avatar plugin. If the user adds a twittername, the Avatar plugin will notice that now (and fetches the twitter image if in row to fetch).

Debugging: Well nothing special. Only (textfile) logging in order to let me see, where the plugin fails.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Avatar fallback chain

Post by yellowled »

blog.brockha.us wrote:If the user adds a twittername, the Avatar plugin will notice that now (and fetches the twitter image if in row to fetch).
Cool. :)
blog.brockha.us wrote:Debugging: Well nothing special. Only (textfile) logging in order to let me see, where the plugin fails.
Okay, so what do I do?

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

Ah! I found a case, where exactly the same happens in my blog. So I have something to debug now.
I will report back later. :)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

I have found the problem: Gravatar changed something while sending back the Gravatar. In some cases (I don't know when) it does an extra redirect, what I didn't allow to detect non existing Gravatars.

Now I detect in another way and was able to enabled redirection. It works now in the one situation I found on my blog. Hope, it will work for your, too. :)

I will send an update to GitHub.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Avatar fallback chain

Post by yellowled »

blog.brockha.us wrote:Gravatar changed something while sending back the Gravatar. In some cases (I don't know when) it does an extra redirect, what I didn't allow to detect non existing Gravatars.
Sweet, that sounds as if it could be the root of the issue. If that's it, should "broken" comments already posted work after the update or will it only fix new comments?

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

The plugin will retry to load the image online, when the avatar expires in the internal image cache.
You can invoke a forced clear of the cache by saving the plugins configuration once again (you don't have to change something actually).
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Avatar fallback chain

Post by yellowled »

blog.brockha.us wrote:The plugin will retry to load the image online, when the avatar expires in the internal image cache.
… aaand – it works. At least my issue with the Gravatar image not being fetched is now fixed. :)

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Avatar fallback chain

Post by blog.brockha.us »

Cool! :mrgreen:
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Post Reply