Just installed latest ver..
Works fine up until the point of displaying galleries, the links are incorrect.

I have IMCE storing pictures in a subdirectory IMCE/
In my IMCE settings I have prefixes for personal folder names, eg, for role 'admin' I have user folders to be prefixed with 'admin'
However upon adding a file to my gallery, and going to view it, the link referencing the picture is
Src=/files/user4/dsotm.jpg
it should be /files/IMCE/admin4/dsotm.jpg

The leading directories (files, imce) don't matter entirely as it's something that I was expecting to do, however the fact it doesn't pick up the per-role prefix creates a hassle =\
Just wondering if this is intended, an odd problem with my install, or something that'll need to be modified?

Cheers

Comments

Qui.dormit.non.peccet’s picture

Status: Active » Closed (duplicate)

My bad. just noticed http://drupal.org/node/128450

4. Images do not display correctly in gallery
change the line 148 in imce_gallery.module from:
> $g_folder = variable_get('file_directory_path', 'files').'/'. $settings[$grid]['prefix'].$guid;
to
> $set = imce_settings_user();
> $g_folder = $set["dir"];

Works for me.