You are here

README.txt in Lightbox2 5

Same filename and directory in other branches
  1. 8 README.txt
  2. 5.2 README.txt
  3. 6 README.txt
  4. 7.2 README.txt
  5. 7 README.txt
LIGHTBOX V2 MODULE

------------------

Drupal Lightbox V2 Module:
By: Mark Ashmead
Mailto: bugzie@gmail.com
Co-maintainer: Stella Power (http://drupal.org/user/66894)

Licensed under the GNU/GPL License

Permission has been granted by Lokesh Dhakar to distribute the lightbox.js file via Drupal.org under this license scheme, as allowed by the Creative Commons License.

This module enables the use of lightbox V2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.

---------------------------------------------------------------------------------------------------------

Pre-Installation
----------------

Due to variation in licensing, you will need to download the
Scriptaculous/Prototype libraries seperately. Please visit:
http://www.stellapowerdesign.net/scriptaculous-drupal.zip - and download the latest version of the libraries. You will then need to copy the files located in \lib and \src directories of this download into the \lightbox2\js\ directory of the LightboxV2 module. 

The files required are: 

\lib\prototype.js
\src\builder.js
\src\dragdrop.js
\src\effects.js
\src\scriptaculous.js
\src\slider.js
\src\unittest.js

When copied, the directory should look like:

\lightbox2\js\prototype.js
\lightbox2\js\builder.js
\lightbox2\js\dragdrop.js
\lightbox2\js\effects.js
\lightbox2\js\scriptaculous.js
\lightbox2\js\slider.js
\lightbox2\js\unittest.js


Installation
------------
1. Copy lightbox2 folder to modules directory
2. At admin/modules enable the module
3. Add rel="lightbox" attribute to any link tag to activate the lightbox. For example:

<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>

Optional: Use the title attribute if you want to show a caption.

4. 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! 

5. If you wish to turn the caption into a link, format your caption in the following way:

<a href="images/image-1.jpg" rel="lightbox" title='<a href="http://www.yourlink.com">Clicky Visit Link</a>'>image #1</a>


Information
------------

This module will include the lightbox CSS and JS files in your Drupal Installation without the need to edit the theme. The module comes with a Lightbox2 Lite option which does not use the Scriptaculous/Prototype libraries; it is therefore less likely to conflict with anything else. 

File

README.txt
View source
  1. LIGHTBOX V2 MODULE
  2. ------------------
  3. Drupal Lightbox V2 Module:
  4. By: Mark Ashmead
  5. Mailto: bugzie@gmail.com
  6. Co-maintainer: Stella Power (http://drupal.org/user/66894)
  7. Licensed under the GNU/GPL License
  8. Permission has been granted by Lokesh Dhakar to distribute the lightbox.js file via Drupal.org under this license scheme, as allowed by the Creative Commons License.
  9. This module enables the use of lightbox V2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.
  10. ---------------------------------------------------------------------------------------------------------
  11. Pre-Installation
  12. ----------------
  13. Due to variation in licensing, you will need to download the
  14. Scriptaculous/Prototype libraries seperately. Please visit:
  15. http://www.stellapowerdesign.net/scriptaculous-drupal.zip - and download the latest version of the libraries. You will then need to copy the files located in \lib and \src directories of this download into the \lightbox2\js\ directory of the LightboxV2 module.
  16. The files required are:
  17. \lib\prototype.js
  18. \src\builder.js
  19. \src\dragdrop.js
  20. \src\effects.js
  21. \src\scriptaculous.js
  22. \src\slider.js
  23. \src\unittest.js
  24. When copied, the directory should look like:
  25. \lightbox2\js\prototype.js
  26. \lightbox2\js\builder.js
  27. \lightbox2\js\dragdrop.js
  28. \lightbox2\js\effects.js
  29. \lightbox2\js\scriptaculous.js
  30. \lightbox2\js\slider.js
  31. \lightbox2\js\unittest.js
  32. Installation
  33. ------------
  34. 1. Copy lightbox2 folder to modules directory
  35. 2. At admin/modules enable the module
  36. 3. Add rel="lightbox" attribute to any link tag to activate the lightbox. For example:
  37. image #1
  38. Optional: Use the title attribute if you want to show a caption.
  39. 4. 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:
  40. image #1
  41. image #2
  42. image #3
  43. No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
  44. 5. If you wish to turn the caption into a link, format your caption in the following way:
  45. image #1
  46. Information
  47. ------------
  48. This module will include the lightbox CSS and JS files in your Drupal Installation without the need to edit the theme. The module comes with a Lightbox2 Lite option which does not use the Scriptaculous/Prototype libraries; it is therefore less likely to conflict with anything else.