Does the 5.x-2.8 version of Lightbox2 work when you set Drupal to "private files"? I would love this feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | source.txt | 7.9 KB | omnyx |
| #7 | generated_source.txt | 9.71 KB | omnyx |
Does the 5.x-2.8 version of Lightbox2 work when you set Drupal to "private files"? I would love this feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | source.txt | 7.9 KB | omnyx |
| #7 | generated_source.txt | 9.71 KB | omnyx |
Comments
Comment #1
omnyx commentedIt doesn't work for me - when I click on an image it tries to load it and fails. Is this expected behavior?
I would sure LOVE to see it work with file system set to private.
Comment #2
stella commentedCan you send me a link to your site? What do you mean by "it fails"? In what way does it fail? If you disable lightbox2, do private files work?
Cheers,
Stella
Comment #3
omnyx commentedI'll try to be as detailed as possible:
I use lightbox2 with imagefield gallery and imagecache. Imagecache seems to work without any problems with private files - i see all presets perfectly fine.
I use imagefield gallery to display images uploaded using CCKs imagefield. In full node view I see images in a grid format (that is how imagefield gallery displays them - see example here http://www.worxco.com/imagefield-gallery-example). In this view the images are displayed fine (using an imagecache preset). Here's where the problems start.
1. When I click on any of the thumbnail images the lightbox fires up - the background goes dim in the usual way and the little circle starts spinning which means it is trying to load the file. After a few moments the circle stops spinning and I get an image of a crossed black camera which probably means it failed to load the file.
2. Now when I go to logs (admin/logs) I see the following error:
error type: page not found
location: http://mysite.com/system/files/system/files/albums/2008/image1.png
The location is weird because 'system/files' are repeated twice which shouldn't be the case (folder 'albums' and '2008' are within my private directory)
3. I presume there is a path error (I ftp-ed to my website to check that the file is actually properly uploaded - it is) and I went back to the full node view (the same as that one http://www.worxco.com/imagefield-gallery-example). Now the strange thing is that, upon hovering over an image, in the bottom bar of the browser I see
/home/myservername/private/albums/2008/image1.png
(where /home/myservername/private is the path to the private directory set up in admin/settings/file_system
instead of
http://mydomain.com/system/files/albums/2008/image1.png
(which is the format in which I see the links for all other uploaded files)
this leads me to believe that the paths are not displayed properly. Also, now that I wrote all this maybe it looks like more of a imagefield gallery problem than lightbox2 problem, right?
hope this helps - thanks for any feedback!
I'll also file this with the imagefield gallery module
Comment #4
stella commentedomnyx: thanks for all the details. I had a quick look at your site (www.worxco.com) just now, and it appears that public files are being used, so I can't investigate the problem there. However I do see that you are not using the Lightbox2 module, but are rather using an old version of the Lightbox2 javascript code that is distributed as part of the Imagefield Gallery module. However, you can enable both modules on the same site, and the Lightbox2 module version of the JS will be used instead.
I don't know if imagefield gallery is the problem, but it is confusing the matter. Can you cross reference your imagefield gallery issue post here?
ericinwisconsin: are you also using imagefield gallery?
Cheers,
Stella
Comment #5
omnyx commentedoh my bad - worco.com is not my site - it is the example site for imagefield gallery. Since I'm making a private site for someone else (that's using private files) I unfortunately cannot provide access to it.
let me know what other information I can provide and thanks for replying so fast!
Comment #6
stella commentedCould you install the Web Developer toolbar in Firefox? (It's really handy and you should be using it anyway!)
Once installed, can you view the site where the problem occurs. Then in the WebDeveloper toolbar, can you send me the output of the "View Source" and "View Generated Source" options. Both of these are located under the "View Source" tab on the toolbar. In the meantime, I need to set up a test site with private files.
Does this only happen for imagefields? Or are you viewing other image content too? Obvious question, but do you have the Lightbox2 module enabled in addition to Imagefield Gallery, or do you only have Imagefield Gallery module enabled? If you view the imagefields outside of a gallery, e.g. on the node page itself, do the images open in Lightbox? Are you viewing the original image in the lightbox, or another imagecache preset?
Cheers,
Stella
Comment #7
omnyx commentedStella, thanks for your efforts!
Does this only happen for imagefields? Or are you viewing other image content too?
- I can see other attached images without any trouble. Though I only 'attached' them as regular node attaches and didn't use lightbox to load them up
Obvious question, but do you have the Lightbox2 module enabled in addition to Imagefield Gallery, or do you only have Imagefield Gallery module enabled?
- yup I have both enabled :)
If you view the imagefields outside of a gallery, e.g. on the node page itself, do the images open in Lightbox? Are you viewing the original image in the lightbox, or another imagecache preset?
- When I attach images to a node with just imagefield (not imagefield gallery) the images work and load up in lightbox (though with some delay, I'm not sure if this is expected behavior?). The only problem seems to be - and this is weird - is with underscores in filename. For example a file with filename that contains several underscores appears "cut" when viewed in lightbox - i.e. only the top 20% of the image are loaded even though the lightbox resizes itself enough to accomodate for the whole height of the picture. It seems to work fine for all other files, except for a slight delay in loading (i.e. the circle spins longer than what I'm used to :)
So I think this is ultimately an imagefield gallery module problem, right?
Here is the link to the cross-post: http://drupal.org/node/299714
Thanks!
P.S. Please see 'source.txt. and 'generated_source.txt' attached.
Comment #8
stella commentedYes, that sounds like an imagefield gallery problem to me, so marking this one as a duplicate. Please re-open if that's not the case!
Duplicate of #299714: Imagefield gallery and private files?
Cheers,
Stella
Comment #9
Felix de Groen commentedHello,
Who can help me? I installed the image module, Lightbox2 and Jquery Update module.
Everything seems to woork fine except lightbox 2.
When I click in an image preview in a gallary the lightbox fires up - the background goes dim in the usual way and the little circle starts spinning which means it is trying to load the file.
The circle does not stop spinning any more. the only way to stop is click in the image box and i return to the gallary.
The site I am working on is www.detoonkunst.nl.
I already tried to disable the Lightbox2 and Jquery Update module. Then later on i enabled them still wit the same effect.
Comment #10
stella commentedPlease do not hi-jack an already opened issue which is (a) closed and (b) a different issue to yours. Please open a new issue, providing details on your lightbox2 settings, the browsers in which the problem occurs and a link to your site - preferably a direct link to the specific page where the issue is.
Cheers,
Stella
Comment #11
Felix de Groen commentedHello
Sorry i did not mean to Hi-jack an closed issue.
Next time al will rise a new one.
This time I managed to solve it.
I forgot to congifure automatic image handling/automatic handlers/galery2 images.
It was on and should be on
Thanks any way
Felix