This is a great module even if, I guess, I’m missing something that I can’t figure where.

If I’m correct: imagebrowser uses the upload module. For this module, my upload directory is set to sites/default/files/upload.
When I upload a file with imagebrowser, it goes to the correct upload directory.

But, when I try to insert the image into a story via imagebrowser, the module returns no images to browse because it looks for images at a directory that doesn’t exist which is imagebrowser/view/image/xxx/_original

Where to tell imagebrowser to look for images in the right directory that was used for uploading the images?

Thanks.

Salim

Comments

jdelaune’s picture

It's not actually looking in that directory. It just runs a php file that returns the image file. Not sure why that bit isn't working. Try turning on static mode in the settings and let me know what happens.

shadid’s picture

I found something hard coded in the file modules/imagebrowser/theme/theme.inc :
$vars['thumbnail'] = url('imagebrowser/view/image/'. $node->nid .'/thumbnail');

Anyway, it's still so hard to deal with images in Drupal. I uninstalled everything related to images, included fckeditor, and will try to install them again from scratch.

azovsky’s picture

Hi!
I install IB 6.x-1.x-dev.

In FCKeditor settings
- File browser type: set "Image Browser"
- Path to uploaded files: set "%b%f/users/%n/"

but files are loaded in ".../sites/default/files/imgstore/" (this set in Image file settings "Default image path") :(
that to do?

jdelaune’s picture

Status: Active » Closed (works as designed)

shadid - That's used by the thumbnails in the view that ImageBrowser uses to give you previews of the images.

azovsky - The quick upload, path and absolute path settings are only used by FCKeditors built-in file browser and not ImageBrowser. The module 'Image' is used by ImageBrowser to handle file uploads, so I would look to changing settings in there.

Cheers