Totally Zenned
- Join Date:
- Jan 2007
- Location:
- Los Angeles, California, United States
- Posts:
- 10,011
- Plugin Contributions:
- 3
Image Handler 3 Support Thread (for ZC v1.3.9)
So let me start with this.. From page ONE of this support thread: http://www.zen-cart.com/forum/showpost.php?p=1022170&postcount=2
DivaVocals:
BEFORE YOU POST A SUPPORT QUESTION HERE READ THROUGH THIS SECTION (this is from the Image Handler readme file):
**
Troubleshooting Basics **
Make sure your custom template is active. (Admin > Tools > Template Selection)
Make sure Image Handler 3 is installed. Admin > Tools > Image Handler3 > Admin. Set permissions in both your images and bmz_cache folders to 755 (eg: **both **of these folders need to have the same permissions. For some webhosts you may have to set these permissions to 777).
If Image Handler 3 does not work or gives you errors:
- Make sure all files are in correct location
- Make sure you uploaded ALL the Image Handler 3 files
- Make sure the files are not corrupt from bad FTP transfers
- Make sure your file merge edits are correct
- MAKE SURE YOU RE-READ THE CONFIGURATION AND USAGE SECTIONS!!!
- Make sure that there are no javascript conflicts from other programs
- Make sure that your main product image files names DO NOT contain any special characters
ie: non-alphanumeric characters such as / \ : ! @ # $ % ^ < > , [ ] { } & * ( ) + = Always use proper filenaming practices when naming your images - See this document as a reference: [http://www.records.ncdcr.gov/erecords/filenaming\_20080508\_final.pdf\\](http://www.records.ncdcr.gov/erecords/filenaming_20080508_final.pdf)When posting bugs/issues aboutImage Handler 3, it's a WHOLE LOT more helpful to resolve them if you post details. Just saying "it's broken" or "doesn't work" does not provide nearly enough information to help YOU resolve YOUR issue.
Please provide as MUCH information as possible including:
- The version of Zen Cart you are running
- The version of Image Handler 3 you are running (you can see this by going to “Admin > Tools > Image Handler3” – the version is displayed in the upper left hand side)
- Any other add-ons you may have also installed
- Hosting/server information (PHP versions, mySQL versions, hosting provider etc)
- The EXACT error/issue you are experiencing
- AND if you're REALLY detail oriented, tell us the install sequence/method you used to install Image Handler 3.
- Post a link (not a screen print) to a specific product/product listing page where the issue you are experiencing can be seen (Please DO NOT make folks fish through your site looking for an example of your issue)
AND this last point is important.. The volunteers who help here need to SEE what you see LIVE. A screenprint really isn’t good enough.
And a (gentle) reminder about FREE forum support:
This is ain’t Microsoft folks!
(a frequently used analogy by some to compare open source projects to commercial projects)Like other open source projects, this support forum is manned by VOLUNTEERS (ie: unpaid folks). They are not OBLIGATED to assist here, but they do so because they WANT to. They give of their time here when their individual schedules permit. Usually the response is pretty quick 'round these parts, but when it’s not or your question has gone unanswered this may mean one of a few things:
- NO ONE has an answer to your question/issue.
(Some folks will only respond when they have something MEANINGFUL to say versus a blanket “I don’t know how to do that” kind of answer.)
- Folks are just busy and will answer if/when they can..
(family and other personal obligations, day jobs, paid jobs, etc will usually trump forum participation – this is to be expected – after all it’s unrealistic to expect that folks are sitting around this forum all day and night waiting to answer questions)
- Your question got missed. (and while I’m on this point) Your post MIGHT have been missed if your post is now a FEW pages back (like more than TWO or more pages) with no response.. Missed does NOT mean “it’s been an hour and no one responded to my question, so let me 'bump' the thread by re-posting my question again”
Anyway.. carry on.. Enjoy the new version..
If this is a Template Monster template and it has a built in lightbox, you will need to contact Template Monster to have them help you with issues related to your template's built in lightbox. This support thread is for IH3 related support issues and as such it's not really appropriate to troubleshoot Template Monster specific issues in this support thread.
That said, I suggest disabling the built in lightbox (Template Monster can tell you how) and installing one of the two lightboxes which HAVE been tested to work with IH3.
Then as others have suggested you need to check your install to make sure you have IH3 installed correctly.
After this is you need help, post DETAILS so that we can help you. Please don't take this the wrong way.. I don't mind helping, but I pretty much ignore requests for help here which provide little to no information. Others who volunteer here may not mind guessing at solutions, but I would prefer to have details so I am not just lobbing guesses at folks..
wildchick:
I installed this and it has improved my site! love the image hover popup.
However I have one problem. When I am on a product page. and I "click to view large" the website gets shadowed with an empty dark box. There isnt even an X button to continue browsing, I have to refresh.
now this didnt happen before I installed this module. But before I installed it I ran into a similar problem once. I added a new product and for the image it was called "The Shake.jpg" The same problem happened, so all i did was put a underscore: "The_shake.jpg" and the problem was fixed.
Any solutions?
BTW to the best of my knowledge the permissions for the folder are the same as the images folder.
NOTE: i am running a template monster template. and Upon install of this module 3 files were replaced, however I check before replacing and they were pretty much the same.
You need to check your install.. I think that based on your posted information that you have both an invalid install and conflicts directly related to your Template Monstrosity template..
This means you will need to use a file merging software to compare files in your store that are being overwritten by IH3 (as is recommended in the IH3 readme). Winmerge is free. I prefer Beyond Compare which is a commercial software, but is MUCH BETTER than Winmerge for file comparisons.. Posting your code here pretty much means you are asking the volunteers here to do this file merging for you.. (and again some may not mind and will in fact be happy to do the file comparisons) If you are going to take on building a website on your own it's best to get the right tools for the job now and get up to speed with how to use them. The alternative is to give some consideration to paying someone to help you with this module install.
<?php /** * Pop up Image Header * * @package page * @copyright Copyright 2003-2009 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 14141 2009-08-10 19:34:47Z wilt $ */ /** * Header code file for the product-larger-images popup window * */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_POPUP_IMAGES_ADDITIONAL'); $_SESSION['navigation']->remove_current_page(); $products_values_query = "SELECT pd.products_name, p.products_image FROM " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id WHERE p.products_status = 1 and p.products_id = :productsID and pd.language_id = :languagesID "; $products_values_query = $db->bindVars($products_values_query, ':productsID', $_GET['pID'], 'integer'); $products_values_query = $db->bindVars($products_values_query, ':languagesID', $_SESSION['languages_id'], 'integer'); $products_values = $db->Execute($products_values_query); $products_image = $products_values->fields['products_image']; //auto replace with defined missing image if ($products_image == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') { $products_image = PRODUCTS_IMAGE_NO_IMAGE; } $products_image_extension = substr($products_image, strrpos($products_image, '.')); $products_image_base = preg_replace('/'.$products_image_extension.'/', '', $products_image); $products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension; $products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension; // check for a medium image else use small if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) { $products_image_medium = DIR_WS_IMAGES . $products_image; } else { $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_medium; } // check for a large image else use medium else use small if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) { $products_image_large = $products_image_medium; } else { $products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large; } // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_POPUP_IMAGES'); ?>wildchick:
First off, Thank you for your help and prompt reply.
Info:
v1.3.9h
PHP Version 5.3.2
- my guess is that it came with lightbox b/c I never installed it. I guess I had it b/c my site had functions that lightbox has(blacking everything out)
2ndly, yes 2/3 of the files that got replaced were different. The 2 that were different were under the folders named "popup" which is the exact problem I am having. The 3rd file that was replaced was only different by version number, so I dont conclude that is truly different, however I will list the code here.
I am going to list the original code my template and hopefully you can help me out by comparing to IH3 CODES. All IH3 Code can be found under core edit folder.
The Following is my template code:
File 1: Includes>Modules>Pages>Popup_Image>Header_php.php
> File 2: Includes>Modules>Pages>Popup_Image_additional>Header_php.php
>
> ```
<?php
/**
* pop up image additional
*
* @package page
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header_php.php 4635 2006-09-30 18:48:26Z drbyte $
*/
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_POPUP_IMAGES_ADDITIONAL');
$_SESSION['navigation']->remove_current_page();
$products_values_query = "SELECT pd.products_name, p.products_image
FROM " . TABLE_PRODUCTS . " p
left join " . TABLE_PRODUCTS_DESCRIPTION . " pd
on p.products_id = pd.products_id
WHERE p.products_status = 1
and p.products_id = :productsID
and pd.language_id = :languagesID ";
$products_values_query = $db->bindVars($products_values_query, ':productsID', $_GET['pID'], 'integer');
$products_values_query = $db->bindVars($products_values_query, ':languagesID', $_SESSION['languages_id'], 'integer');
$products_values = $db->Execute($products_values_query);
$products_image = $products_values->fields['products_image'];
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = str_replace($products_image_extension, '', $products_image);
$products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_POPUP_IMAGES_ADDITIONAL');
?>
File 3: ZC_admin>Includes>Modules>Category_Product_listing.php I was going to leave code for this however it is too long to be posted here. It shouldne be important however.
I Hope this helps, once again thank you!