I noticed that this module has support for the Colorbox plugin. There are now a Drupal Colorbox module that I'm the co-maintainer of.

I think it would be good to add integration with the Colorbox module instead of using the Colorbox plugin directly.

If I can add features to the Colorbox module that would make this easier please contact me.

Comments

jcmc’s picture

Hello frjo,

the GAL give only support for Gallery Assist images. It is historicaly born because the most of existing modules for lightboxes support not recognize Gallery Assist. It is to new. This is the cause (why) I have implemented lightboxes functionality for GA.

If you have a idea what we can make together etc tell me it.
I think the colorbox is one of the best existing lightboxes.

Regards
Juan Carlos

frjo’s picture

Instead of telling your users to add the Colorbox plugin directly ask them to install the colorbox module.

In your code you then do a module_exists('colorbox') instead of trying to include the Colorbox plugin files.

The file "gallery_assist.colorbox.selector.js" should work out of the box with the Colorbox module.

P.S. For all your js files, take a look at e.g. "colorbox/js/colorbox.js" how to build js files the Drupal way with "Drupal.behaviors" etc.