Project

General

Profile

Actions

Design/UX #4289

closed

New Account Avatar

Added by Samantha Raddatz almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Registration
Target version:
Start date:
2015-07-10
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

After registering for a new account, the site automatically fetches an avatar if available. But if there isn't one available, the text still says 'We've fetched an avatar for your new account...' (see screenshot).

Is there a way to change this so that if no image is found, the heading just says 'Your Avatar' and the text below says something like 'You can upload an image for your account while you wait for your activation email.'? (see mockup).


Files

screenshot.png (81.1 KB) screenshot.png Samantha Raddatz, 2015-07-10 03:34 PM
mockup.png (79.3 KB) mockup.png Samantha Raddatz, 2015-07-10 03:34 PM
Actions #1

Updated by Boone Gorges almost 9 years ago

  • Status changed from New to Assigned
  • Assignee changed from Boone Gorges to Raymond Hoh
  • Target version set to Future release

Ray, could you have a look at this? I can't recall whether there's a way - either in BP or via the Gravatar API - to tell whether a Gravatar ping has found an avatar vs using the fallback.

Actions #2

Updated by Raymond Hoh almost 9 years ago

  • Status changed from Assigned to Resolved
  • Target version changed from Future release to 1.8.6

Ray, could you have a look at this? I can't recall whether there's a way - either in BP or via the Gravatar API - to tell whether a Gravatar ping has found an avatar vs using the fallback.

You can do this by fetching the Gravatar with `?d=404` instead of using a default avatar like the mystery man. Then, when fetching the headers, we can determine if the Gravatar is valid or not.

This should be fixed in commit f1ca3c1.

I've tested this locally and it works. You can also test on cdev as well.

Actions #3

Updated by Boone Gorges almost 9 years ago

Nice! I feel like we should be using this trick elsewhere, like in BP, though I'm not sure exactly how :) Thanks, Ray.

Actions #4

Updated by Raymond Hoh almost 9 years ago

Nice! I feel like we should be using this trick elsewhere, like in BP, though I'm not sure exactly how :)

I was thinking the same thing myself as I was writing the code. Probably could be used when we improve the registration/activation process in BP.

Actions #5

Updated by Samantha Raddatz almost 9 years ago

Very cool! Thanks, Ray.

Actions

Also available in: Atom PDF