This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I would like to know what i can use to call upon the avatar url for the user profile page. Right now the onlything that seems to work is:
{{ user.avatar.path }}
But that only gives me the uploaded avatar and i want the gravatar image.
{{ user.avatar }}
{{ user.avatar.url }}
but without any luck.
So i would like to get the gravatar and/or the avatar that is uploaded.
Hopefully someone can help me out with this.
Last updated
Mnky, Gravatar URL is easy to generate. Just MD5 hash the user's email address and stick it in (lowercased) after
https://www.gravatar.com/avatar/<your hash here>
You can add an optional ?s=
parameter specifying the desired width of the image you need.
Last updated
1-5 of 5