Design/UX #4289
closed
Added by Samantha Raddatz about 9 years ago.
Updated about 9 years ago.
Category name:
Registration
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
- 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.
- 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.
Nice! I feel like we should be using this trick elsewhere, like in BP, though I'm not sure exactly how :) Thanks, Ray.
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.
Also available in: Atom
PDF