Closed (fixed)
Project:
Gravatar integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
4 Jan 2011 at 16:27 UTC
Updated:
18 Jan 2011 at 20:30 UTC
Jump to comment: Most recent file
Gravatar has at some point when I last checked added two new default picture settings: Mystery Man, and Retro.
http://en.gravatar.com/site/implement/images/
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1014634-gravatar-newdefault-d7update.patch | 18.85 KB | dave reid |
| #1 | 1014634-gravatar-mysteryman-retro-defaults.patch | 7.05 KB | dave reid |
Comments
Comment #1
dave reidComment #2
dave reidSo much stuff to catch up with in D7.
1. We have to make our own Gravatar size setting because the user picture system in D7 uses image.module which only has a 'maximum' user picture size not an 'ideal' user picture size. If we re-used that we'd end up with huge user pictures since the default is 1024x1024.
2. Had to add gravatar_user_presave() in order to save data into $account->data['gravatar']. Data storage also moved from $account->gravatar to $account->data['gravatar'].
3. Lots and lots of cleanups.
Comment #3
dave reidcommitted #2 + bonus to CVS and also backported to D6.
http://drupal.org/cvs?commit=474398
http://drupal.org/cvs?commit=474402