help... Avatars are not displaying
drupalina - August 18, 2007 - 13:00
| Project: | Site User List |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
Same thing here... it generates a bad URL: //files/pictures/picture-1.jpg
#2
Hi! 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
#3
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.#4
Sorry, mistyped it... old template was
<img src="/@_base/@picture" alt="" />#5
I had same problem. Greybear's solution worked perfectly. Very glad to find this thread. Thank you.
#6
Yes, works for me as well. Thanks!
<img src="/@picture" alt="" />#7
Hi!
Another case solved with the previous tip! Thanks!
#8
a simple change on the fields page of the module config that worked for me as well.
thanks,
d.
#9