I updated colorbox from 7.x-1.1 to 7.x-1.3 and the images formatted using IC proportions stop working. If I change the image to just use colorbox or to just use IC_proportions with a link to image rather than a colorbox modal, it works as expected. So I'm guessing that colorbox has updated something. I tested CB 1.2 and it also doesn't work so it is something which was introduced at the CB 1.2 release.
I have duplicated the problem with a test site on localhost as well. the errors thrown are:
Notice: Undefined index: colorbox_node_style in theme_colorbox_image_formatter() (line 30 of /Applications/MAMP/htdocs/drupal714/sites/all/modules/colorbox/colorbox.theme.inc).
Notice: Undefined index: colorbox_caption in theme_colorbox_image_formatter() (line 38 of /Applications/MAMP/htdocs/drupal714/sites/all/modules/colorbox/colorbox.theme.inc).
Notice: Undefined index: colorbox_gallery in theme_colorbox_image_formatter() (line 79 of /Applications/MAMP/htdocs/drupal714/sites/all/modules/colorbox/colorbox.theme.inc).
Notice: Undefined index: colorbox_image_style in theme_colorbox_image_formatter() (line 99 of /Applications/MAMP/htdocs/drupal714/sites/all/modules/colorbox/colorbox.theme.inc).
Thanks
Bernie
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | colorbox_support-1671470-8.patch | 9.73 KB | plopesc |
| #7 | colorbox_support-1671470-7.patch | 4.96 KB | plopesc |
| #2 | colorbox-1671470_3.patch | 977 bytes | nonsie |
| #1 | colorbox-1671470_2.patch | 889 bytes | nonsie |
Comments
Comment #1
nonsieThis makes the module work with Colorbox 1.4. Caption and gallery are hardcoded and should probably become settings.
Comment #2
nonsieBetter patch that deals with "Undefined index: entity keys in entity_extract_ids()" notices.
Comment #3
vgutekunst commentedthank u very much nonsie! it works!
Comment #4
nonsiePlease don't close it -it still needs to be committed for others to use.
Comment #5
pcambraplease don't RTBC your own patches :)
Thanks btw!
Comment #6
vgutekunst commentedcolorbox works now with the patch, but it doestn show me alt-text or title-text from the images. Any possibility to add this function in ur patch too?
regards
Comment #7
plopescHello
Attaching patch which adds full support for colorbox module. It has been tested against Colorbox 7.x-2.4.
Regards.
Comment #8
plopescNew patch giving full support for colorbox 7.x-2.4 and shadowbox 7.x-3.0-rc2.
Regards.
Comment #9
plopescPatch committed.
Thanks.
http://drupalcode.org/project/imagecache_proportions.git/commit/69ebbad