Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 3 Support Thread (for ZC v1.3.9)

Image Handler 3 Support Thread (for ZC v1.3.9)

Views: 180,262

Results 361 to 380 of 1,099
10 Aug 2011, 12:32 PM
#361
gaius avatar

gaius

New Zenner

Join Date:
May 2011
Posts:
29
Plugin Contributions:
0

Image Handler 3 Support Thread (for ZC v1.3.9)

I've gone back through and made sure I had changed all my image settings. There was only one I hadn't changed. I changed it, but still no watermarking. Here are the settings I put the same.

Small Image Width/Height
Subcategory Image Width/Height <--just changed
Image - Product Listing Width/Height
Image - Product New Listing Width/Height
Image - New Products Width/Height
Image - Featured Products Width/Height
Image - Product All Listing Width/Height

This is all I see according to the readme. Am I missing something?

My Large watermark image is 500x500. Do I need to make it the same size as the Large Image?

Only thing I have different than the readme is I have height values defined. They are all the same, though. Do height values need to be undefined?

I've read the readme and as many posts on watermarking as I saw in this thread. I reread the readme again after your post. I don't want to waste your time, but as far as I can tell, my settings are set up per the instructions in the readme. It's the only reason I posted. I truly appreciate you taking the time to reply and help.

10 Aug 2011, 11:31 PM
#362
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

gaius:

I've gone back through and made sure I had changed all my image settings. There was only one I hadn't changed. I changed it, but still no watermarking. Here are the settings I put the same.

Small Image Width/Height
Subcategory Image Width/Height <--just changed
Image - Product Listing Width/Height
Image - Product New Listing Width/Height
Image - New Products Width/Height
Image - Featured Products Width/Height
Image - Product All Listing Width/Height

This is all I see according to the readme. Am I missing something?

My Large watermark image is 500x500. Do I need to make it the same size as the Large Image?

Only thing I have different than the readme is I have height values defined. They are all the same, though. Do height values need to be undefined?

I've read the readme and as many posts on watermarking as I saw in this thread. I reread the readme again after your post. I don't want to waste your time, but as far as I can tell, my settings are set up per the instructions in the readme. It's the only reason I posted. I truly appreciate you taking the time to reply and help.

using cart version 1.3.9h, right?

did you remember to set them to show in images along with making all those the exact same size. I have width and height sizes in my store and it works.

when you installed IH3 did you remember to remove the files that the read me said to remove?

Have you tried to go to IH3's control area

admin/tools/IH3/admin

and clear the c ache or uninstall then refresh the page of the store and reinstall it again...?

11 Aug 2011, 5:01 AM
#363
gaius avatar

gaius

New Zenner

Join Date:
May 2011
Posts:
29
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

DarkAngel:

using cart version 1.3.9h, right?

did you remember to set them to show in images along with making all those the exact same size. I have width and height sizes in my store and it works.

when you installed IH3 did you remember to remove the files that the read me said to remove?

Have you tried to go to IH3's control area

admin/tools/IH3/admin

and clear the c ache or uninstall then refresh the page of the store and reinstall it again...?

If you are speaking of the "IH small/medium/large images watermark" options, they are all "yes".

I've just went back through and reuploaded all files after uninstalling IH3. I then reinstalled (after refreshing page). I went back into Admin>Images, and reset settings (image sizes and watermark options). Still no watermark.

I feel like i got this to work before on a separate Zen Cart site I run. But I've gone through my settings, and they all seem to match. I remember having Watermark issues before, but I seem to remember it being fixed after doing the things that have already been mentioned (and that I've already done).

You mentioned removing files, but I don't see that in the readme (unless I'm missing something). The only thing I replaced was the additional_images file because I installed Zen Lightbox. Can you direct me to where I would need to remove files, or tell me what page of the readme that's on. I can't seem to find that anywhere.

Thank you for taking the time to reply. Any other ideas?

11 Aug 2011, 6:16 AM
#364
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

gaius:

If you are speaking of the "IH small/medium/large images watermark" options, they are all "yes".

I've just went back through and reuploaded all files after uninstalling IH3. I then reinstalled (after refreshing page). I went back into Admin>Images, and reset settings (image sizes and watermark options). Still no watermark.

I feel like i got this to work before on a separate Zen Cart site I run. But I've gone through my settings, and they all seem to match. I remember having Watermark issues before, but I seem to remember it being fixed after doing the things that have already been mentioned (and that I've already done).

You mentioned removing files, but I don't see that in the readme (unless I'm missing something). The only thing I replaced was the additional_images file because I installed Zen Lightbox. Can you direct me to where I would need to remove files, or tell me what page of the readme that's on. I can't seem to find that anywhere.

Thank you for taking the time to reply. Any other ideas?

from the read me for those that upgraded...if you had done a brand new install disregard this please:

  1. This instruction only applies to those who are upgrading from a version of Image Handler2 lower than Rev8b
    Delete the following from your current install:
  • images/zoom.png

  • images/medium/zoom_MED.png

  • images/large/zoom_LRG.png

  • includes/template/classic (delete the folder in it's entirety)
    Please note: It is recommended that you delete this folder if you are NOT using the Classic template. If you like you can replace this folder with the one from theZC installation pack -- you don't have to do this if you are using a template other than the Classic template.

      	If you are using the Classic template you SHOULD NOT DELETE the Classic template folder. Let me stress  			again **DO NOT DELETE THE CLASSIC TEMPLATE FOLDER if you are using the Classic template**!!!
    

I too had problems with the watermark but in a previous version. It was also due to a purchase template---those are atrocious for messing up the coding to get it to do what the creator wants the store to do their way.

could you please post all your image settings, all of them not just the ones mentioned? it might help

11 Aug 2011, 6:25 AM
#365
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

on another note too...

not sure if I am right or not but on the buddism-eightfold path image when I hover over the small one it does not show the bmz path but then when I do a view image on the product info page it also goes to the main images folder not the bmz folder

do you have any images in the large or medium folder ---_lrg or _med for these products...if so delete them then clear cache again please.

11 Aug 2011, 6:31 AM
#366
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

DarkAngel:

on another note too...

not sure if I am right or not but on the buddism-eightfold path image when I hover over the small one it does not show the bmz path but then when I do a view image on the product info page it also goes to the main images folder not the bmz folder

do you have any images in the large or medium folder ---_lrg or _med for these products...if so delete them then clear cache again please.
Hovering over small images is not a link to the image but a link to the product details page.. Hence no bmz_cache on hover.. right click image to view properties to see the ACTUAL image source..

11 Aug 2011, 6:33 AM
#367
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

DarkAngel:

could you please post all your image settings, all of them not just the ones mentioned? it might help
It will help.. Otherwise we're all just guessing based on what we THINK is the answer... at this point guessing is not helpful.. having details is helpful..

11 Aug 2011, 6:42 AM
#368
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

DivaVocals:

Hovering over small images is not a link to the image but a link to the product details page.. Hence no bmz_cache on hover.. right click image to view properties to see the ACTUAL image source..

thanks diva so I went to check my source against his and LB doesn't seem to have the same info in his store as it does in mine --showing that is-- and the images link to his regular images folder...none seem to go to the bmz cache folder at all.

11 Aug 2011, 5:01 PM
#369
gaius avatar

gaius

New Zenner

Join Date:
May 2011
Posts:
29
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

I've deleted all the images and reuploaded. Am I wrong that IH3 is supposed to create the small and medium pictures from my file? I thought the point was to upload just one. I did notice I uploaded most of my images to a "product" folder. Upon reuploading, I uploaded all to the Main Directory.

It looks like Medium and Large images only go to their respective folders when I deliberately upload all three images. I've done this with the products in the Sculpture category. However, watermarks are still not showing up on those, either.

Below are my Admin>Images settings:
Title Value Action
Small Image Width 200
Small Image Height Info
Heading Image Width - Admin 57 Info
Heading Image Height - Admin 40 Info
Subcategory Image Width 200 Info
Subcategory Image Height Info
Calculate Image Size true Info
Image Required true Info
Image - Shopping Cart Status 1 Info
Image - Shopping Cart Width 50 Info
Image - Shopping Cart Height 40 Info
Category Icon Image Width - Product Info Pages 200 Info
Category Icon Image Height - Product Info Pages Info
Top Subcategory Image Width 150 Info
Top Subcategory Image Height 85 Info
Product Info - Image Width 350 Info
Product Info - Image Height 350 Info
Product Info - Image Medium Suffix _MED Info
Product Info - Image Large Suffix _LRG Info
Product Info - Number of Additional Images per Row 3 Info
Image - Product Listing Width 200 Info
Image - Product Listing Height Info
Image - Product New Listing Width 200 Info
Image - Product New Listing Height Info
Image - New Products Width 200 Info
Image - New Products Height Info
Image - Featured Products Width 200 Info
Image - Featured Products Height Info
Image - Product All Listing Width 200 Info
Image - Product All Listing Height Info
Product Image - No Image Status 1 Info
Product Image - No Image picture no_picture.gif Info
Image - Use Proportional Images on Products and Categories 1 Info
IH resize images yes Info
IH small images filetype no_change Info
IH small images background transparent Info
IH small images compression quality 85 Info
IH small images watermark yes Info
IH small images zoom on hover yes Info
IH small images zoom on hover size Medium Info
IH medium images filetype no_change Info
IH medium images background transparent Info
IH medium images compression quality 85 Info
IH medium images watermark yes Info
IH large images filetype no_change Info
IH large images background transparent Info
IH large images compression quality 85 Info
IH large images watermark yes Info
IH large images maximum width 750 Info
IH large images maximum height 550 Info
IH watermark gravity Center Info

11 Aug 2011, 7:09 PM
#370
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

gaius:

I've deleted all the images and reuploaded. Am I wrong that IH3 is supposed to create the small and medium pictures from my file? I thought the point was to upload just one. I did notice I uploaded most of my images to a "product" folder. Upon reuploading, I uploaded all to the Main Directory.

It looks like Medium and Large images only go to their respective folders when I deliberately upload all three images. I've done this with the products in the Sculpture category. However, watermarks are still not showing up on those, either.

Image handler doesn't put images in the medium or large folders, it creates small, medium and large images and places them in the bmz_cache folder.

11 Aug 2011, 7:25 PM
#371
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

gaius:

I've deleted all the images and reuploaded. Am I wrong that IH3 is supposed to create the small and medium pictures from my file? I thought the point was to upload just one. I did notice I uploaded most of my images to a "product" folder. Upon reuploading, I uploaded all to the Main Directory.

It looks like Medium and Large images only go to their respective folders when I deliberately upload all three images. I've done this with the products in the Sculpture category. However, watermarks are still not showing up on those, either.
Either you are just working on your site, or Image handler is not correctly installed

When I look at your site all I can see is the imagehover working, Image handler is **not **handling any of your images they are all being served from your images folder, so imagehandler obviously can't watermark them.

I checked the prints and sculpture category and neither have images coming from the bmz_cache therefore they are not being handled by Imagehandler.

Did you rename all the folders that were supposed to be renamed to your template name there was the one in the templates folder and the one in the modules folder

11 Aug 2011, 9:13 PM
#372
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Originally Posted by gaius [IMG]http://www.zen-cart.com/forum/images/zc2010/buttons/viewpost.gif[/IMG]
I've deleted all the images and reuploaded. Am I wrong that IH3 is supposed to create the small and medium pictures from my file? I thought the point was to upload just one. I did notice I uploaded most of my images to a "product" folder. Upon reuploading, I uploaded all to the Main Directory.

It looks like Medium and Large images only go to their respective folders when I deliberately upload all three images. I've done this with the products in the Sculpture category. However, watermarks are still not showing up on those, either.

you do not upload anything but the main product image, unless you have additional ones to add which can be added manually or via the ih3 controls

you can upload to a folder within a folder type like images/promos/productname/image file

but then you need to put that path in when you do the description page for it then upload any additional one to the same folder with keeping in mind:

  1. all should be the same extension as the first one (.jpg or ,png, or .gif) no mixing
  2. named exactly as the first one with _01.jpg --for instance-- and following suit for the rest of your additional pages for that product adjusting the number for each one

hope that makes sense. AT NO TIME do you send images to the lrg or med folders at all.

11 Aug 2011, 9:27 PM
#373
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Need to add this... The advantage of using IH3 to upload additional images (vs FTP) for most shop owners is that they do not have to worry about how to name additional images properly so that Zen Cart will recognize them. They simply upload the additional images using the IH3 interface and as long as the images are the same filetype as the main product image, then IH3 does the heavy lifting of properly naming the file so that Zen Cart correctly recognizes them as additional images..

DarkAngel:

you do not upload anything but the main product image, unless you have additional ones to add which can be added manually or via the ih3 controls

you can upload to a folder within a folder type like images/promos/productname/image file

but then you need to put that path in when you do the description page for it then upload any additional one to the same folder with keeping in mind:

  1. all should be the same extension as the first one (.jpg or ,png, or .gif) no mixing
  2. named exactly as the first one with _01.jpg --for instance-- and following suit for the rest of your additional pages for that product adjusting the number for each one

hope that makes sense. AT NO TIME do you send images to the lrg or med folders at all.

12 Aug 2011, 12:39 AM
#374
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Also, there is a detailed tutorial in the IH3 Read_Me that discusses image filing and image naming in extensive detail.

12 Aug 2011, 2:40 AM
#375
gaius avatar

gaius

New Zenner

Join Date:
May 2011
Posts:
29
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Okay, obviously something is wrong with my install of IH3, then. I'm going to go through each file, check the code, and see if the correct versions are on the site.

Perhaps my FTP client didn't overwrite files properly the multiple times I've uploaded the files. I'll let you guys know if this is successful or not.

Thanks for all the help, hopefully this is just a quirk of the drag-n-drop FTP client I've been using, and I'll have to switch to doing it all through Dreamweaver, as I've done in the past without issue. Sorry to waste your time on this.........

12 Aug 2011, 3:47 PM
#376
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

gaius:

Okay, obviously something is wrong with my install of IH3, then.....hopefully this is just a quirk of the drag-n-drop FTP client I've been using, and I'll have to switch to doing it all through Dreamweaver, as I've done in the past without issue. Sorry to waste your time on this.........

Yes, installation errors are the most common culprit of problems like the ones you're having...but if those errors are caused by your FTP program, it's hardly your fault. Have you tried FileZilla? Lastly, always remember that as long as someone, somewhere learns something - time was not wasted.

Posting your issue and the ultimate solution you used to resolve it will help others in the future who have the same problem.

Good luck and happy Zenning :smile:

12 Aug 2011, 11:47 PM
#377
wildchick avatar

wildchick

New Zenner

Join Date:
Jun 2011
Posts:
86
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

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.

13 Aug 2011, 1:54 AM
#378
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Hi wildchick

Without a link to the product page you're having a problem with, all we can do is guess as to what the issue is.

Off the top of my head, here's my three guesses:

  1. You have installed a lightbox module which is conflicting with IH3

or

  1. Your template came with a lightbox module installed which is conflicting with IH3

and

  1. Template Monster templates (with or without a lightbox module) is known to wreak havoc with Zen Cart in general, and also with many of the addon modules, including IH3, because the designers hack up the Zen Cart core code in order to get the design effects they desire. In short, they are known to sacrifice functionality for design.

My Suggestions:

Go in to your admin and change your template to the Zen Cart default (classic) template and see if the cart and the IH3 mod function as they should.

If so, then the problem is your template and there's nothing we can do to help you.

If you still have problems after changing to the Zen Cart classic template, then there is some troubleshooting we can do, but we need the following information:

  1. Your ZC version
  2. Your PHP version
  3. The name of all mods you have installed which impact your site's images
  4. A link to the exact page where the problem exists so we can look at it for you.

Lastly, this part of your question:

wildchick:

Upon install of this module 3 files were replaced, however I check before replacing and they were pretty much the same.

this really concerns me:"Pretty much the same"...there's no such thing as "pretty much the same". Either the files are identical or they are not. If they are not, then you need to do some file merging prior to install.

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.

13 Aug 2011, 10:42 AM
#379
wildchick avatar

wildchick

New Zenner

Join Date:
Jun 2011
Posts:
86
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

First off, Thank you for your help and prompt reply.

Info:
v1.3.9h
PHP Version 5.3.2

  1. 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

<?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');
?>

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!

13 Aug 2011, 1:12 PM
#380
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

wildchick:

First off, Thank you for your help and prompt reply.

Info:
v1.3.9h
PHP Version 5.3.2

  1. 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

<?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'); ?>
> 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!

first off EVERYTHING is important in troubleshooting or it would be like trying to find a conflicting extension on your computer and saying oh well it doesn't matter I can keep stalling or not having the program work right.

now did you try the suggestion to use the default template and looking at the item to see if the store works right?

If you want a so-so store then alright but if you want to get better help then post links to where the trouble exists...the code is helpful but you need to compare the files too and merge the mod files into the store files, especially since they don't call them monster templates for nothing...they are monsters to fix.