Zen Lightbox
This contribution adds lightbox support to Zen Cart. All large product images will be displayed within a lightbox. This eliminates the need for popup windows and makes your website much more user friendly. Additional product images are displayed within a simple gallery interface. Credit is due to Christophe Beyls for creating Lightbox JS v2, Chris Boylan for his work on the Image Handler 2 support and the Zen Cart Team for creating the best open source ecommerce package available! |
![]() |
v1.5.6 |
![]() |
Alex Clarke |
![]() |
ianhg - 14 Aug 2019 |
![]() |
69,681 |
Version History
Zen Lightbox - Version: 1.6.5 | |||||||||||||
Updated includes/modules/YOUR TEMPLATE/additional_images.php Line 69 from $list_box_contents = ' '; to $list_box_contents = array(); Updated for PHP 7.2 |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.5 | |||||||||||||
Improved CSS/JS handling Added support (not required) for CSS/JS loader Changed to use a single set of JS files Added auto Installer added support for zencart 1.5.4 Upgraded jQuery version Added loading jQuery via CDN Added check for jQuery to avoid double loading |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: Version: 1.6.4b_1.5 | |||||||||||||
Added the mobile updates provided by @pewe | |||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.4a_1.5 | |||||||||||||
Incorporated corrections identified with functionality of Image Handler (Version 4 was tested) if an image handler is installed and Zen Lightbox is turned off. This plugin was previously written to expect the image handler code to address obtaining the picture location/handle any potential security issues associate with the filename. In summary: If Zen Lightbox and an image handler are installed, turning off Zen Lightbox will now provide the correct direct path to any large image that is to be provded. This maintains control of the path so that downstream processing may remain secure and not easily allow a XSS issue. includes/templates/YOUR_TEMPLATE_FOLDER/popup_image_additional/tpl_main_page.php, if present should be reviewed to ensure that it complies with the default ZC version, or update this and the applicable version of Image Handler to not bypass the XSS safety features of the tpl_main_page.php file. With a little more detail: Issue is/was two-fold: if Zen Lightbox was deactivated and Image Handler had already been installed (depending on the content of the includes/templates/YOUR_TEMPLATE_FOLDER/popup_image_additional/tpl_main_page.php file, if present), then clicking an additional image would result in presenting the default "No Image" image or in previous revisions of IH would not verify that the image pathname was located on the local computer. That would make it possible to inject a chosen filename into the path when calling the popup_image_additional image. (XSS issue). With installation of this update, the correct filename path is passed on to the code presenting the image. It does not correct the potential issue with the above template file. |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.4_1.5 | |||||||||||||
Updated the ez-page scripts to bring back the auto ez-page feature. Re-wrote the handling of the "Always show prev/next" setting |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.3_1.5a | |||||||||||||
Version 1.6.3_1.5a - Release Date: 2012-03-11 Updated the following files to remove leftover 1.3.8 and 1.3.9 code and to make sure 1.5 code is all merged in: ~ includes/modules/YOUR_TEMPLATE_FOLDER/additional_images.php ~ includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_main_product_image.php |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.3_1.5 | |||||||||||||
This is a slight modification for compatibility with _b_ZenCart 1.5. (NOTE: 1.3.x users should continue to use Zen Lightbox v1.6.2) |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.2 | |||||||||||||
Restored close on image click functionality. Added admin parameter to show Previous and Next buttons all the time instead of on hover (if there are additional images). upgrading from 1.6.1 Requires running the upgrade.sql file and merging a few files on your server. see the upgrade section in the readme file. |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6.1 | |||||||||||||
Added missing "extra_definitions" file updated slimbox.php to read the overlay click admin parameter |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.6 | |||||||||||||
• Zen Cart 1.3.9h compatibilty (should still work ok with 1.3.8a) • Migrated from MooTools to jQuery 1.4.4.min • Updated to latest Slimbox: 2.04 • Updated stylesheet to match the latest SlimBox • Tested with Image Handler 2 Rev 8d |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.5 | |||||||||||||
- Added Caption Animation Duration admin switch - Added Close Lightbox admin switch - Added Close on Image Click admin switch - Added Display Image Counter admin switch - Added Enable Keyboard Navigation admin switch - Added full support for multilingual stores - Added greater flexibility for Overlay Fade Duration admin switch - Added Image Fade Duration admin switch - Added Include Main Image in Gallery admin switch - Added Initial Height admin switch - Added Initial Width admin switch - Added missing _/b_ to install.sql file - Added Next Image admin switch - Added Previous Image admin switch - Added Resize Transition admin switch - Added support for lightbox effect on any page (including EZ-Pages) - Added title attributes (similar to alt text) to lightbox buttons - Added uninstall.sql file - Removed Border Size admin switch (this is now controlled by CSS) - Removed DIV Class to Hide admin switch - Removed Enable Resize Animations admin switch - Removed header_php.php core file change - Removed Hide Flash Objects admin switch (Slimbox handles this automatically) - Updated blank entries in install.sql file to NULL - Updated invalid characters in rel attributes of links (output code is now valid XHTML) - Updated JavaScript code to classes to avoid source code duplication - Updated lightbox code to Slimbox v1.67 - Updated modules to prevent JavaScript code from loading when Zen Lightbox is disabled - Updated support for Zen Cart 1.3.8a and Image Handler 2.0_for_137 - Updated various configuration titles and descriptions within the admin |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.4.UPDATED | |||||||||||||
UPGRADED TO WORK WITH 1.3.8A all credit goes to original author - Renamed Zen Lightbox function, various files and folders - Improved use of the overrides system for JavaScript and image files - Added admin switch to enable/disable Zen Lightbox - Added admin switch to adjust the overlay opacity - Added admin switch to adjust the overlay fade duration - Added admin switch to enable/disable resize animations - Added admin switch to adjust the resize speed - Added admin switch to adjust the border size - Added admin switch to enable/disable the lightbox from closing when you click on the overlay - Added admin switch to enable/disable Flash objects from being hidden when the lightbox is displayed - Added admin switch to specify a DIV class to hide when the lightbox is displayed - Added lightbox functionality to document_general_info, document_product_info, product_free_shipping_info, product_music_info, product_reviews, products_reviews_info and product_reviews_write pages. - Updated Lightbox JS v2 code to version 2.03.3 - Reverted to original CSS code (with custom fixes) - Fixed model number display error on product_reviews page - Added code to load all lightbox resources before image loading is complete - Updated support for Zen Cart 1.3.7.1 and Image Handler 2.0 v0916 - Removed close link from lightbox image |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.4 | |||||||||||||
- Renamed Zen Lightbox function, various files and folders - Improved use of the overrides system for JavaScript and image files - Added admin switch to enable/disable Zen Lightbox - Added admin switch to adjust the overlay opacity - Added admin switch to adjust the overlay fade duration - Added admin switch to enable/disable resize animations - Added admin switch to adjust the resize speed - Added admin switch to adjust the border size - Added admin switch to enable/disable the lightbox from closing when you click on the overlay - Added admin switch to enable/disable Flash objects from being hidden when the lightbox is displayed - Added admin switch to specify a DIV class to hide when the lightbox is displayed - Added lightbox functionality to document_general_info, document_product_info, product_free_shipping_info, product_music_info, product_reviews, products_reviews_info and product_reviews_write pages. - Updated Lightbox JS v2 code to version 2.03.3 - Reverted to original CSS code (with custom fixes) - Fixed model number display error on product_reviews page - Added code to load all lightbox resources before image loading is complete - Updated support for Zen Cart 1.3.7.1 and Image Handler 2.0 v0916 - Removed close link from lightbox image |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.3 | |||||||||||||
- Added support for Image Handler 2 - Fixed apostrophes error in image display code - Updated CSS file (compressed by 15.8%) using CSS Tidy at www.cleancss.com - Updated source formatting of various files NOTE: This is a .RAR archive. You will require an appropriate extraction tool to open it. WinZip and WinRAR can be used for this. |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.2 | |||||||||||||
- Removed redundant images files -_ 'prev.gif' and 'next.gif' - Fixed width of 'prev' and 'next' links - Added close link to lightbox image - Added Flash by-pass code to avoid overlay issues |
|||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.1 | |||||||||||||
Added support for additional images. | |||||||||||||
|
|||||||||||||
Zen Lightbox - Version: 1.0 | |||||||||||||
This contribution simply adds lightbox support to ZenCart. Now all large product images (on the product info pages) are displayed within a lightbox. This eliminates the need for popup windows and makes your website much more user friendly. Credit goes to Lokesh Dhakar for creating Lightbox JS v2 and the ZenCart team. Please feel free to contact me if you have any comments or questions. Alex Clarke |
|||||||||||||
|
|||||||||||||