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
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

Greybear - August 18, 2007 - 20:34

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

#2

pukku - August 20, 2007 - 13:40
Assigned to:Anonymous» 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

#3

Greybear - August 21, 2007 - 11:37

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

Greybear - August 21, 2007 - 11:38

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

#5

Shai - August 22, 2007 - 15:34

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

#6

shawnc - September 6, 2007 - 09:24

Yes, works for me as well. Thanks!

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

#7

zottmann - September 10, 2007 - 01:23

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

#8

urbanx - April 19, 2008 - 02:05

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

thanks,

d.

#9

VeryMisunderstood - April 19, 2008 - 02:19
Assigned to:pukku» Anonymous
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.