hello,
This module runs perfectly on my localhost, but when I uploaded it into online environment user Avatars stopped being displayed (not even the default avatars are being displayed). I use exactly same settings as on my localhost.

But the difference is that on my localhost the avatars are located in files/pictures, while on my online site the pictures are located on files/user_avatars

I'm wondering if it could be something to do with the line <img src="@_base/@picture" alt="" />

I would appreciate if you could lend me some help, so that I can get the avatars to display.

many thanks in advance

Comments

Greybear’s picture

Same thing here... it generates a bad URL: //files/pictures/picture-1.jpg

pukku’s picture

Assigned: Unassigned » pukku

Hi! What the template is doing is creating a URL based on what is in the database. If you look at the picture column of your users table, that is the value that is being substituted for @picture. What are some sample values from the picture column?

Ricky

Greybear’s picture

Okay, the problem was the default template for me. It was: <img src="@_base/@picture" alt="" />, but @_base was empty... so i changed the template to <img src="/@picture" alt="" /> and it works well for me.

Greybear’s picture

Sorry, mistyped it... old template was <img src="/@_base/@picture" alt="" />

Shai’s picture

I had same problem. Greybear's solution worked perfectly. Very glad to find this thread. Thank you.

shawnc’s picture

Yes, works for me as well. Thanks!

<img src="/@picture" alt="" />

zottmann’s picture

Hi!
Another case solved with the previous tip! Thanks!

urbanx’s picture

a simple change on the fields page of the module config that worked for me as well.

thanks,

d.

vm’s picture

Assigned: pukku » Unassigned
Status: Active » Closed (fixed)