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
Comment #1
Greybear commentedSame thing here... it generates a bad URL: //files/pictures/picture-1.jpg
Comment #2
pukku commentedHi! What the template is doing is creating a URL based on what is in the database. If you look at the
picturecolumn of youruserstable, that is the value that is being substituted for@picture. What are some sample values from thepicturecolumn?Ricky
Comment #3
Greybear commentedOkay, 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.Comment #4
Greybear commentedSorry, mistyped it... old template was
<img src="/@_base/@picture" alt="" />Comment #5
Shai commentedI had same problem. Greybear's solution worked perfectly. Very glad to find this thread. Thank you.
Comment #6
shawnc commentedYes, works for me as well. Thanks!
<img src="/@picture" alt="" />Comment #7
zottmann commentedHi!
Another case solved with the previous tip! Thanks!
Comment #8
urbanx commenteda simple change on the fields page of the module config that worked for me as well.
thanks,
d.
Comment #9
vm commented