How to make Gravatar display an identifier

Is there a way to force gravatar to always return the identifier url?

The only way I have found so far ?forcedefault=1&default=myCustomGeneratedImageUrlHere . However, I do not want to generate the identifier myself.

Any ?forceIdenticon param?

+6
php gravatar
source share
2 answers

I ended up using md5(MY_CUSTOM_SALT + $email) as an identifier.

+1
source share

Add &f=y , which forces us to use the default value and specify the default identifier with d=identicon or default=identicon

For example:

 http://www.gravatar.com/avatar/HASHVALUE?f=y&d=identicon 

Other default values ​​are described on the Gravatar website.

+13
source share

All Articles