diff --git a/lightbox2.module b/lightbox2.module index f8e0114e64208f4cd085e27bffc4ac1321226a6d..a6837cf9a17798089c2d30582907554787e4e6f6 100644 --- a/lightbox2.module +++ b/lightbox2.module @@ -40,7 +40,19 @@ function lightbox2_help($section) {

If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>

-

No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!

'); +

No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!

+

Known Issues

+

Image Issues - An issue has been identified with the loading of certain images when using the module. (close.gif, prevlabel.gif, nextlabel.gif)

+

If your installation of Drupal exists in the root of your domain, i.e., www.yourinstallation.com then you shouldn\'t have any problems. The issue only occurs when Drupal is installed in a subdirectory, i.e., www.yourinstallation.com/subdirectory.

+

If this is the case, you will need to edit the lightbox.js on lines 63, 64 and 65 to reflect the fully qualified URL of your images. In the above case, this would be as follows;

+

var fileLoadingImage = "/modules/lightbox2/images/loading.gif";
+ var fileBottomNavCloseImage = "/modules/lightbox2/images/closelabel.gif";
+ var fileBottomNavZoomImage = "/modules/lightbox2/images/expand.gif"; //Update to 2.02+

+

should be changed to

+

var fileLoadingImage = "/subdirectory/modules/lightbox2/images/loading.gif";
+ var fileBottomNavCloseImage = "/subdirectory/modules/lightbox2/images/closelabel.gif";
+ var fileBottomNavZoomImage = "/subdirectory/modules/lightbox2/images/expand.gif"; //Update to 2.02+

+

There may be other methods that can be used to acheive this, but this should be the simplest for those with little or no programming experience.

'); break; } } @@ -127,6 +139,6 @@ function lightbox2_add_files() { drupal_add_js($path . '/js/lightbox.js'); } else { - drupal_set_message(t('The script.aculo.us library is in not installed correctly. Please download from http://script.aculo.us/downloads, rename directory to "scriptaculous" and place in Drupal\'s modules/spajax/ directory.'), 'error'); + drupal_set_message(t('The script.aculo.us library is in not installed correctly. Please download from http://script.aculo.us/downloads, follow the instructions in the Lightbox V.2 README.TXT file to copy the files to their correct locations.'), 'error'); } }