Followed the readme.txt
When selecting jLightbox: Slideshow for the displaying the imagefield. Nothing shows on the page.
Selecting a imagecache rule will show all images. But without slideshow.
Also no javascript referencing to jlightbox in source code. (jlightbox.js file is includes)
Am i missing something? im using drupal 6.4
Regards
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | jlightbox.new_.patch | 5.44 KB | karens |
| #18 | jlightbox.new_.patch | 5.51 KB | karens |
| #17 | jlightbox.new_.patch | 5.53 KB | karens |
| #14 | jlightbox-HEAD_332903_latest.patch | 4.75 KB | dboulet |
| #10 | jlightbox-HEAD.cck_.patch | 4.36 KB | sun |
Comments
Comment #1
tijeika commentedim using 6.6 drupal, when i chose jLightbox for display in my CCK fields - nothing shows at all!!! there is no image... dont know what to do...
Comment #2
dboulet commentedSame as tijeika, nothing showing at all using Drupal 6.9, ImageField 6.x-3.0-alpha4 and ImageCache 6.x-2.0-beta5. The biggest problems with the code are that it makes use hook_field_formatter(), which is now deprecated, and that it does not reflect changes made in the ImageField module, which now relies on the FileField module. I've attached a patch that fixes these problems, and also cleans up some trailing spaces in the code.
Comment #3
dboulet commentedHere's a new version of the last patch which fixes a problem with image
altandtitleattributes not displaying.Comment #4
forresto commentedthis patch is giving me:
warning: unserialize() expects parameter 1 to be string, array given in .../sites/all/modules/jlightbox/jlightbox.module on line 157.
Comment #5
dboulet commentedHere's a new patch, should get rid of that warning.
Comment #6
dboulet commentedSorry, made a small mistake in the last patch, here comes a new one.
Comment #7
dboulet commentedComment #8
babelfish commenteddboulet,
Thanks for patch. I'm trying to get this module to work on D6, applied the last patch but images still don't show up in the image fields.
Comment #9
comargo commentedAt least attached patch works on my site, but I don't remember the reason of one change
Comment #10
sunPlease test this patch instead.
Comment #11
dboulet commented@comargo, regarding your confusion about the change, if you are speaking specifically about the use of the
field_file_load()function, I believe that this is used because the D6 version of the Imagefield module now depends on the Filefield module.Comment #12
dboulet commentedWith the patch in #10, the images show up but their
altandtitleattributes are always left blank. I had tried to fix this issue in the patch that I had submitted in #3, here is the bit of code that addresses the problem:Comment #13
yrre7 commentedsubscribe
Comment #14
dboulet commentedThought I'd update this issue with my latest code, this is what is working for me.
Comment #15
poiu commented#14 works for me too (though I didn't check with alt and title attrs).
Comment #16
realityloop commented#14 works, but I don't get next/prev links when there are multiple images exposed in a gallery style view
Comment #17
karens commentedThe patch is pretty close to working but there are several remaining problems. It leaves the deprecated function in the code, which is confusing, instead of working that code into the new function. More important, it uses form_clean_id() to create gallery names which will make a different gallery name for each image. So instead of getting one gallery with six images you get six galleries with one image, which is why the back/next navigation isn't working (there is no back/next in a gallery with only one image). Also at one point the field name is passed through as the $field, and all the other field values are lost. And finally, there is some code looking for deprecated imagecache functions which could be removed because anyone using the old version of imagecache would have a ton of problems because that version doesn't work at all.
So here is a cleaned up patch that seems to be working.
Comment #18
karens commentedOops, found one more change. And just to clarify, the changes in #12 are incorporated into this patch (they were in the earlier patch too, but I couldn't tell that for sure by reading the issue).
Comment #19
karens commentedUgh! Sorry, found one more mistake in the code.
Comment #20
dboulet commentedThanks Karen, this works very well.
Comment #21
realityloop commented@#19 When there are multiple images are I still am not getting the next/previous links when displaying full image, other than that it works great KarenS
Comment #22
dboulet commented@realityloop This works fine for me. In the field display options, have you chosen 'jLightbox: presetname gallery', and not 'jLightbox: presetname'?
Comment #23
realityloop commentedworking here after confirming settings as per #22
Comment #24
plebe commentedTried running this patch. asking me which file to patch. Fails when I specify jlightbox.js. has this been incorporated into the latest 6.x version?
Comment #25
dboulet commented@plebe, This patch only affects the file jlightbox.module, it makes no changes to the JavaScript file.
Comment #26
Funkwarrior commentedsorry, but it's impossible to me to make lightbox works... I apply the patch, js and css wrote correctly on the page, I made a Imagecache preset but there is no rel attribute on my image..
What I'm doing wrong? someone can tell me? Thank you!
Comment #27
dboulet commented@Funkwarrior, I'm assuming that you're trying to get this to work with an imagefield. If this is the case, have you chosen 'jLightbox: presetname gallery' or 'jLightbox: presetname' as the display option for that field?
Comment #28
Gábor Mayer commentedcvs version of jlightbox doesn't work with imagefield.
Comment #29
sunSorry for leaving you all in the dark. Was way too busy with D7. :-/
Thanks for reporting, reviewing, and testing! Committed to HEAD.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.