If the user has not yet uploaded their own picture, we need to support falling back to the default user picture variable.

CommentFileSizeAuthor
#12 user-picture.patch1.5 KBjack_ry

Comments

santam’s picture

subscribe I am facing this issue with my heartbeat stream.

BeaPower’s picture

same here

dRaz’s picture

Is there no fix for this yet?

BeaPower’s picture

any updates?

IWasBornToWin’s picture

Same here

IWasBornToWin’s picture

I was able to get this to work in views by using global field and inserting the following html in text area.

Only local images are allowed.

I got the source link by going to the edit page of a user who had not yet uploaded their own pic, and right clicking on the default photo image then viewing the source.

IWasBornToWin’s picture

oops, it stripped my link, here it is again;

<img typeof="foaf:Image" src="http://mysite.com/sites/default/files/pictures/noimagereminder.jpg" >

IWasBornToWin’s picture

You dont need to use global field if you insert your source link in the "no results behavior" area of the user picture field settings in views.

IWasBornToWin’s picture

I have a few different sized default pictures in my files directory because image cache doesn't display the default picture as a thumbnail either. So if you plan to display it in other places like comments, etc, then you will have to refer to the different size in your files directory.

BeaPower’s picture

Do you use fields or Heartbeat display type in views to add user picture?

IWasBornToWin’s picture

Fields and/or replacement tokens

jack_ry’s picture

Issue summary: View changes
StatusFileSize
new1.5 KB

The token [current-user:picture] does not support the user profile picture

Try the below patch

jack_ry’s picture

Status: Active » Patch (to be ported)