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

Anybody ?

There must be someone that can help me out

Anyone ?

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.