Image Handler 2 for v1.3.x


Download Now!
File size: 292652 bytes
Downloaded: 41741 times
Zen Cart™ Version: v1.3.9
Version: Ver 2.0 Rev 8b
Last Updated: Jul 12 2010
Author: Ckosloff/C Jones
PHP 5.3 Compatible?: Yes

This contribution uses GD libraries or ImageMagick (if installed on your server) to generate and resize small, medium and large images on the fly on page request. You can simply upload just one image or you can have different sources for medium and large images. This upgrade further enables you to watermark your images (overlay a second specific translucent image) and have medium images pop up when you move your mouse over a small image (fancy hover).

This contribution includes a powerful admin interface to browse your products just like you would with the Attribute Manager and upload / delete / add additional images without having to do this manually via FTP. Image Handler 2 works fine with mass update utilities like EzPopulate.

Advantages of this contribution over stock Zen-Cart are

* Improved site performance (faster loading, faster display)
* Professional looking images (no stair-effects, smooth edges)
* Uploading one image automatically creates small, medium and large images on page request.
* Choose preferred image-types for each image size.
* Source image filetype doesn’t matter. Have jpg base files with gif and png additional files if you want to.
* Drops in and out seamlessly. No need to redo your images. All images are kept.
* Easy install. One-click-database-upgrade.
* Works with mass-update/-upload tools like EzPopulate.
* Watermark images to prevent Mr. Competitor from stealing them.
* Fancy image hover functionality lets a larger image pop up whenever you move your mouse above a small image (switchable).
* Watermarking and Fancy Hovers work with different source-images for small, medium and large, too!
* Choose an image background color matching to match you site’s color or select a transparent background for your images.
* Manage your multiple images for products easily from one page just like you do with attributes in the Products Attribute Manager.

Visit http://breakmyzencart.com/image-handler for more information and documentation.

I will try and update this download everytime a new version is released. Make sure, you always get the newest version by visiting http://breakmyzencart.com/image-handler

Minor changes to Rev8 code as follows:

# (Rev 8b) Corrected the following files based on current version of Zen Cart:
* admin/includes/modules/category_product_listing.php
* includes/modules/additional_images.php

# (Rev 8b) Moved the following files to the correct Zen Cart override folders:
* includes/modules/main_product_image.php
* includes/modules/additional_images.php

# (Rev 8b) The following files were deleted from the install package (they are now obsolete)
* images/zoom.png
* images/medium/zoom_MED.png
* images/large/zoom_LRG.png
* includes/template/default_template
* includes/template/classic (if you are using the Classic template simply rename the YOUR_TEMPLATE folder as per the install instructions below)
Author: Ckosloff/C Jones
Version: Ver 2.0 Rev 8b
Zen Cart™ Version: v1.3.9
Update added on Jul 12 2010
PHP 5.3 Compatible?: Yes
Download Now!
File size: 292652 bytes

Please READ the readme BEFORE installing/upgrading!!!!

Rev 8 Changelog:
* Updated to add PHP 5.3.x compatibility (tested to for backwards compatibility through PHP 5.2.x). Lots of code in Rev. 7 was inconsistent, so this version is not only compatible with 1.3.9 and PHP5.3.x, but it will also improve performance on PHP 5.2.x Many support issues will be solved by just upgrading to Rev 8.
* Clean up HTML to remove deprecated HTML tags
* Updated javascript which now support full cross browser compatibility (tested in Chrome, Safari, Internet Explorer 8 and Firefox for Windows)
* No more image hotzones - The hotzone feature added no real value to Image Handler2, and it has been removed. The configuration settings for hotzones have also been removed from Admin _ Configuration _ Images. In case anyone is wondering, the image hover feature works just fine WITHOUT hotzones.
* The IH zoom medium images configuration setting has also been removed from Admin _ Configuration _ Images. This feature (zoom on medium images) was a future enhancement that was NEVER IMPLEMENTED in any Image Handler2 release. Continuing to leave this configuration setting in place for non-existent functionality has been a long source of confusion in the Image Handler2 support thread, and therefore it will be removed.

What this means for anyone upgrading from any older version of Image Handler2 for 1.3.x to this new Rev 8 version is that you MUST run the uninstall function from the version you are currently running BEFORE applying the new Image Handler2 for 1.3.x Rev 8 files to your store. Otherwise you will get errors!!
Author: Ckosloff/C Jones
Version: Ver 2.0 Rev 8
Zen Cart™ Version: v1.3.9
Update added on Jun 28 2010
PHP 5.3 Compatible?: Yes
Download Now!
File size: 283670 bytes

This version corrects errors in the "Optional Extras" folder of previous version.
Cleans up redundant folders and corrupt files.
Keeps improved version of bmz_image_handler.class.php and introduces an
improved version of jscript_imagehover.js.
The purpose is to provide a clean and robust version of IH2, easy to install/uninstall, and fully compatible with lightbox contributions out-of-the-box.
Author: ckosloff
Version: Ver 2.0 rev 7
Zen Cart™ Version: v1.3.8
Update added on Sep 17 2009
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 240104 bytes

ABOUT:
======

various tweaks to ImageHandler 2, mostly addressing:

1. Allowing zoom behavior on medium images as well as small.

2. Disabling stock ZenCart "larger image" popup behavior on medium images that already have ImageHandler zoom behavior applied.

3. Disabling zoom and "larger image" popup behavior on default (no_picture.gif) product images.


=============
INSTALLATION:
=============

After installing ImageHandler 2:

1. Backup your current installation files BEFORE installing this patch.

2. Change the name of the YOUR_TEMPLATE folder in this patch to your custom template name.

3. Copy the files from zen_cart_folder in this patch to your ZenCart folder, overwriting the original ImageHandler files.


==================
NOT IN THE MANUAL:
==================

For some reason, this crucial information is NOT in the ImageHandler documentation at http://www.breakmyzencart.com/ih-doc.

ImageHandler handles three "sizetypes" of images: "small", "medium" and "large". It determines which sizetype it's working with in two ways:

1) for medium and large images, it searches for "_medium" and "_large" in the filenames (acceptably accurate).
2) for small images, it checks to see if the width and height of the image are IDENTICAL to the "Small Image Width" and "Height" set in Admin _ Configuration _ Images. (This is rather strange and flimsy logic and hopefully will be corrected in future releases.) If the dimensions are not identical, and the image is not already identified as a medium or large image, it's labelled as "generic", and no zoom behavior can be applied.

Therefore, to enable zoom behavior on all images (e.g., category product listings, "new product" listings, "featured product" listings, etc.), you first need to make sure that the following options MATCH the "Small Image Width" and "Height" in Admin _ Configuration _ Images:

Image - Product Listing
Image - Product Listing
Image - Product New Listing
Image - Product New Listing
Image - New Products Width
Image - New Products Height
Image - Featured Products Width
Image - Featured Products Height
Image - Product All Listing Width
Image - Product All Listing Height

======
FIXES:
======

File: adminincludesmodulescategory_product_listing.php

Fix: Version included with ImageHandler overwrites this core file, but appears to use older code (2006-04-14). Current version of this file included with ZenCart 1.3.7.1 (2006-10-13) has an updated SQL query. Merged the additions from ImageHandler with current version.

File: includesclassesbmz_image_handler.class.php

Fix: get_additional_parameters(), which adds the zoom behavior to images, checks to see if the current image sizetype allows zooming (an option set for small and medium images in Admin _ Configuration _ Images). However, the version included with ImageHandler limits this to sizetype == 'small' on the previous line, excluding the possibility that medium images can have zooms. Changed this sizetype != 'large', so that the only images that are excluded from having zooms are large ones.

File: includesmodulesmain_product_image.php

Fix: Added missing closing PHP tag.

File: includestemplatesYOUR_TEMPLATEtemplatestpl_modules_main_product_image.php

Fix: New template file that overrides default, controls display of main product images. If using the default (no_picture.gif) image or if zoom behavior has already been added to the image, DON'T add the standard ZenCart "larger image" text and link that opens a larger image in a pop-up window.

File: includesfunctionsextra_functionsfunctions_bmz_image_handler.php

Fix: Modified the handle_image() function to check to see if the product is using default (no_picture.gif) image. Modified the call to get_additional_parameters(), which adds zoom behavior to the image, so that it's only called if is false.

(cameron@prolifique.com)

Updated with zip file
Author: Cameron Clark
Version: IH 2.0 for 1.3x
Zen Cart™ Version: v1.3.8
Update added on Jul 16 2009
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 461275 bytes

bug fixed: includes/classes/bmz_image_handler.class.php may stripe out all parameters passed into zen_image
Author: yellow1912
Version: 2.0 for zen 1.3.7+
Zen Cart™ Version: v1.3.7
Update added on Jan 16 2009
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 421856 bytes

Updated additional_images.php to 1.3.7
Spanish Language added
Author: IMAGINADW.COM
Version: 2.0_for_137
Zen Cart™ Version: v1.3.7
Update added on Oct 21 2007
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 421818 bytes

UPDATED: Applied fixes found in the Readme-135.txt file (there's a link in it) so that others would stop having Javascript errors in IE
Author: Various
Version: 2.0 v0916
Zen Cart™ Version: v1.3.5
Update added on Sep 16 2006
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 244154 bytes

I updated the IH 2.0 specialy for 1.3.5. I removed the html_output.php and duplicate images. So this ZIP file is 1.3.5 ready.
Author: Joost van der Locht
Version: 2.0-135
Zen Cart™ Version: v1.3.5
Update added on Sep 04 2006
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 241945 bytes

Author: Tim Kroeger
Version: 2.0
Zen Cart™ Version: v1.3.0
Update added on Jun 02 2006
PHP 5.3 Compatible?: Unknown or N/A
Download Now!
File size: 244722 bytes


Learn tips, tricks and secrets for your Zen Cart
Sign up for our FREE Newsletter

Big Book
Copyright © 2003 - 2010 Zen Ventures, LLC - Powered by Zen Cart™
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads