Installed but no avatars load in block or gallery

lsabug - January 20, 2007 - 18:57
Project:Avatar gallery
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Just installed, my user pictures are enabled, they show up on profile page and user profile page. I see that avatar gallery has created an avatar_gallery.jpg in my files folder but it's not loading the jpg in the block or the page. Here's what it looks like when I view source for my avatar gallery page (it's similar for the block source):

Looking at the path of the avatar_gallery.jpg show up as

img src="//home/domain/files/avatar_gallery.jpg

so now I'm wondering where I can adjust this file path. I seem to have a similar issue when I tried using a default picture for users, drupal couldn't figure out where it was because the file path wasn't registering it as above the root even though it's enabled on my file settings page for private, I worked around it by just putting the default picture in the home directory. I'm starting to think this is a similar issue.

Any ideas? Thanks.
Lsabug

#1

lsabug - February 8, 2007 - 18:28

Seems I'm not the only one having an issue with images displaying, although they might be different problems:

http://drupal.org/node/106120

#2

lsabug - February 21, 2007 - 03:45

I ended up hardcoding the file path for the avatar_gallery.jpg so it wouldn't keep generating this incorrect path on my page:

img src="//home/domain/files/avatar_gallery.jpg

I modified line 268 from this:

  $img = theme_image(variable_get('file_directory_path', 'files').'/avatar_gallery.jpg', t('Avatar gallery'), t('Avatar gallery'), array('border' => 0, 'usemap' => '#avatar_gallery_areamap'), FALSE) . _avatar_gallery_areamap_dyn($root);

to this:

  $img = theme_image('system/files/avatar_gallery.jpg', t('Avatar gallery'), t('Avatar gallery'), array('border' => 0, 'usemap' => '#avatar_gallery_areamap'), FALSE) . _avatar_gallery_areamap_dyn($root);

Now it's displaying the avatar_gallery.jpg correctly. I hardcoded which I'm sure isn't the best thing to do but it works for now. Although now I'm trying to figure out how to get it to show text correctly. My ttf file is where my avatar_gallery.jpg is but when I set the path at files/verdana.ttf it's blank so now I'm trying to figure that part out.

If anyone has any suggestions, let me know.
Thanks,
Lsabug

#3

Amix - July 16, 2007 - 17:23

i seem to haveing the same problem? anyway to fix this? i someone said it could be the CMOD but i changed the folder and subs to 777 and i still get the same erro for the path of the avarter
it seems like its not saving the path i set to it.... anyhelp pleasE??

 
 

Drupal is a registered trademark of Dries Buytaert.