I've created a comment view type and displayed it as a block in the left sidebar. I've used a relationship "Comment: User" to get the user ID and then added a field "(User) User: Picture" to display the picture. The picture shows the the gravatar default image I defined but not the picture that the users email goes with.

See recent comments in sidebar here (top comment): http://jacobparrish.com/

Another weird thing is that my picture, a gravatar pic, works in this block view, but David's pic does not.

Any suggestions/ help? Thanks!

Comments

partyp’s picture

Using devel and devel helper, I investigated this more and found out that the block view has no idea what the anonymous user email is... thus, no email, no gravatar picture.

Also, using "(User) User: Picture" to for the picture just got registered users account picture., or rather, their users email which gets the gravatar. This is why the "wierd" thing I mentioned above was happening.

So I think the answer to this is to get the anonymous users email from their comment and do the gravatar magic then it should work. Problem is, I don't know how to get the email for the view :(

help please!

ichderfisch’s picture

subscribe.

Same Problem here. I think the problem is, that you have to use the relationship "Comment: User" to get the "Userpic". Anoymous User have no Userpic at all. It would be nice to have a field Comment: Authorpicture.

Maybe this is a views issue. I don't know. I hope it will be fixed. Otherwise the Gravatar integration is completly useless for me.