In admin > site config > avatar select, I uploaded an avatar image file. I don't know where the module stores the file, since I can not find it in the folder that I set for user avatar prescribed in 'file system' setting.

Also, within user account interface, there is still just a 'upload avatar' function, no list of avatar for selection.

CommentFileSizeAuthor
#6 selection.jpg20.51 KBniclasforsen
#5 upload.jpg31.97 KBniclasforsen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

Avatars uploaded via the avatar selection configuration page are stored in the "avatar_selection" directory in the files/ directory, e.g. files/mysite.com/avatar_selection/

However there was a problem creating that directory in the last release. Change the following line in avatar_selection.module:

line 262:
 - if ($op == t('Upload')) {
+ if ($op == t('Update')) {

or download the latest version of the file from CVS.

Cheers,
Stella

niclasforsen’s picture

New to avatar selection but I got the uploading to work by changing that row. My problem now is getting the images visible.

I have filesystem path to be ../xxx and uploading images there through avatar selection or any other upload function works. Personally uploaded avatars works fine, but the list of avatars uploaded with avatar selection doesn't work. Instead of showing the image it only shows the filename and an incorrect path; instead of www.myname.com/?q=system/files/avatar_selection/image.jpg the path is www.myname.com/xxx/avatar_selection/image.jpg. Does avatar selection "bypass" the private setting of drupal?

stella’s picture

When I set the download method to be "private - files are transferred by Drupal", on both the view and edit screens of my account I see the text "stella's picture" instead of the image. This happens for me with both an avatar selected image and a user profile uploaded image. Avatar selection does not control how the currently configured image is displayed on either of these pages.

If you are seeing something else or on a different screen, please include a screenshot with your response along with your file system settings.

stella’s picture

check out issue #92376

niclasforsen’s picture

FileSize
31.97 KB

Ok, my language setting is swedish, but I think we can manage anyway!

My filesystem settings are;
Path: ../filer
Tempdir: /tmp
(for some reason it doesn't accept /filer as the file path)
and transfer setting is Private.

Uploading "personal" avatar images works fine, shows up on every page I want, it's only the files uploaded on avatar_selection admin page that doesn't show up. They don't even show up on the avatar_selection upload page other than with name. When I had the private folder in the drupal home directory they did show up in selection page, but in other page they only did show up as "niclass image" link.

Attaching a screenshot from the avatar_selection upload page.

Also trying to link directly to an image in the avatar_selection folder doesn't work, but linking to one in the avatar directory works fine (authorized user of course)

niclasforsen’s picture

FileSize
20.51 KB

Thought it might be good if I upload an image from the profile edit page too. My uploaded image shows, none of the avatar selection images show ok.

stella’s picture

try setting the file system path to "filer" instead of "/filer" or "../filer"

stella’s picture

You may also need to change the file_directory_path setting in your settings.php if you have one configured there.

Assuming your drupal installation is in /var/www/drupal/, with your current "../filer" configuration all images are being uploaded to /var/www/filer but all links to images are using /var/www/drupal/filer/. When you change your file_directory_path setting to "filer" the images will be uploaded to /var/www/drupal/filer/ which is what you want. This happens for both the avatar selection images and the user upload images. I suspect the only reason you are seeing an image for the user uploaded one is because that image already exists in /var/www/drupal/filer/pictures/.

So please (a) update your file_directory_path in your settings.php, (b) update the file system path to be the same on "admin/settings/file-system" and then (c) upload all your avatar selection images again.

Stella

stella’s picture

Assigned: Unassigned » stella
Status: Active » Fixed

avatar_selection 5.x-1.2 released. This release contains a fix for the upload issue and a number of other small changes.

Marking this as fixed as the original reported problem has been corrected, and the subsequent problem with displaying issues is due to an incorrectly configured file system path.

Stella

stella’s picture

Status: Fixed » Closed (fixed)