No matter what settings I choose in the "format" dropdown for my image field when using a ligthbox2 setting, the node shows only a thumbnail.

I have a 640x480 image. I have the "default" or full view. The picture is in an "image" field. If I select the "format" type of "image in the "manage display" tab of my content type, the image appears in the proper size in the default (non teaser) view. But no matter what Lightbox2 setting I choose (medium->original) the image that displays in the full view of the node is always a thumbnail.

Comments

Lloyd’s picture

I'm experiencing this as well.

gazzer82’s picture

Subscribing, add me to this one, im seeing the same issue.

kevinquillen’s picture

Priority: Normal » Major

Yes, same here. The field formatter is being ignored, and the node is defaulting to the Thumbnail presentation. While the thumbnail opens in a lightbox, the following does not occur:

- Image resizing
- Lightbox grouping

When I change back to Image, my image style is applied, but no Lightbox effect.

kevinquillen’s picture

For now I have switched to Colorbox to get around this (if you need a solution today).

spamator12’s picture

Assigned: garlou » Unassigned

Same here, could anybody make a pros and cons for lightbox VS colorbox ? It would be nice to know botch modules features to comparison.

EDIT:

@aawalker - thx!

aawalker’s picture

I've actually just switched from Colorbox to Lightbox2 because it allows for longer captions, which is a must for my project. Like everyone else so far, I'm experiencing that the module is completely ignoring my field formatting preferences for sizing and grouping.

Has anyone had any luck yet on a solution?

@spamator12 - I have very special needs for my lightbox-type module so I've been doing a little research and found this (slightly older, but still relevant) comparison article that might help you a little. http://drupal.org/node/266126

garlou’s picture

Assigned: Unassigned » garlou
artatac’s picture

Assigned: Unassigned » garlou

sub

infinito’s picture

quick fix:

change line 937 of lightbox2.module from

$image_style = 'thumbnail';

to

$image_style = 'YOUR_IMAGE_STYLE';

artatac’s picture

I have moved to colorbox and am very pleased

1kenthomas’s picture

You mean literally "YOUR_IMAGE_STYLE" or, more likely, [YOUR_IMAGE_STYLE] = replacement with your size?
K

PS Gotta love:
// Temporary hardcoding link_file and image_style for debugging
in the code :)

yukare’s picture

I am working on this and this weekend i will fix it, or most of it, just to tell, I have it working now, but i am not ready to provide a patch, just wait more one or two days for a fix.

yukare’s picture

I just commited a patch about this, it still needs works, but please, test it and tell what is misssing/necessary in drupal 7.

Now that i learn the way it works, will be easy to do the missing parts.

dieuwe’s picture

I get this error when the module is in use on a page, error appears for each image:

Warning: explode() expects parameter 2 to be string, array given in lightbox2_field_formatter_view() (line 936 of lightbox2/lightbox2.module).

yukare’s picture

Please, try downloading again the last dev, as i think that drupal did not updated it from git you you get it, but now the dev version is the same of git, because for me the line 936 is a blank line.

alexandreracine’s picture

Well for now it is not working I think... from the latest release:
-------------------------------
lightbox2 7.x-1.x-dev
Posted by yukare on July 23, 2011 at 4:10pm
Last updated: September 19, 2011 - 12:11
Not everything from Drupal 6 is working, but is important that you use, test and report anything that works on Drupal 6 but not in 7.

Current you can use most of it, but some important things still do not work:
Views Suport (need update from views 2 to 3)
Flick Suport
Image Field

aawalker’s picture

With the latest update, it seems to retain the image styles that you set in the content type. It still seems to be ignoring the grouping setting, however.

Thanks for your work on this!

yukare’s picture

Status: Active » Fixed

The grouping is now fixed, please, wait for the next dev version or get it from git and report if you have any issue or if something else is missing, thanks.

alexandreracine’s picture

Status: Fixed » Active

Well, I just installed the 11 October version, and now the admin interface does not work (that is admin/config/user-interface/lightbox2). Blank page...

On the node type image field, I could see now "Lightbox2 - lightbox" and "Lightbox2 - slideshow"

I don't really know if they work since when looking at my node, no image where display.

Got back to my 19 september version, and now everything is fine.

I'll put this back at "active", but if you really feel this is fixed and that everything else is not working from other issues, please put it back to fixed.

Sorry that I can't do more then testing and issues.
Thanks.

yukare’s picture

I have it working on my dev site and i downloaded it and uploaded it to my real website, and i do not have this.

Since you get a WSOD this means a fatal error, and since the previous version works, this means that i broke something. Please, can you look at admin/reports/dblog and the apache error log if there is any message that helps me to find why this happen to you?

Thanks.

alexandreracine’s picture

Status: Active » Closed (cannot reproduce)

I can't find anything in dblog or apache error log, weird.

In a couple of weeks, I'll create another new website with lightbox2, so I'll reopen if I get that problem again.