Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 4 (for v1.5.x) Support Thread

Image Handler 4 (for v1.5.x) Support Thread

Views: 343,296

Results 1,181 to 1,200 of 1,691
13 Sep 2014, 6:03 AM
#1181
divavocals avatar

divavocals

Totally Zenned

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

Image Handler 4 (for v1.5.x) Support Thread

mc12345678:

So,I'm flying by thehip here, but I assume that the instructions go something likerename the admin folder in the installation folder to match the name of your secret admin folder. Upload all of the contents of the installation folder to your store's directory. So, yes the admin directory should be uploaded as well...
This is EXACTLY what the readme says you should be doing.. Not sure why the protracted discussion over this when it is clearly stated a few places in the readme..

mc12345678:

**Now, that is an assumption also that the admin directory is only in the root directory and not multiple levels deep, but that is something atypicalto do and the installer/documentation is designed for the typical install. **
Why introduce this idea at all into a discussion with someone who appears to be somewhat of a newbie???? Who would do this??????????????? (nevermind WHY?????) This NOT THE NORM and if anyone has done such a FOOLISH thing, then there is NO WAY to support installing ANY module (not just this one) into a store which has an ODD and NON-STANDARD admin setup..

mc12345678:

After you do this you need to change the name of your admin directory because you haveposted it for everyone to see and know. The admindirectory should never be publicly posted. Reasonsfor that are available in the forum.Agreed... the purpose of remaning the admin folder is to keep it something that hackers can't EASILY find..

13 Sep 2014, 8:58 AM
#1182
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi and thank you for your help, both of you. I am a newbie, but the examples I gave ARE NOT my real folder names. I did say in my post (i.e. which means "example". I do know that. But please know, none of this was in vain.

As a newbie, when you are hanging on every word of the instructions and things still aren't working, you tend to question things that may seem obvious to those who are more "zenned". Again thanks to both of you for taking the time to clarify some things. Am just trying to get my store up and running.

Blessings,
Brenda

13 Sep 2014, 8:28 PM
#1183
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi.... Good News! (I think)... After doing a fresh install of Image Handler v150 4.0. I was able to log into my administration panel. Up until now after the install I was getting a blank page and I was unable to log in.

BUT, I didn't get the "successful install" message at the top of the page. Nor, when I go to Admin > Configuration > Images, there is no mention of any 1H4 images to resize. Any suggestions please?

Thanks
Brenda

13 Sep 2014, 8:48 PM
#1184
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi Good News! (I think) After doing a fresh install of Image Handler, 4.0 - I was able to login to my admin. Previously after the install, I couldn't log in and there was just a blank page. But one thing.... I didn't get a message at the top of the screen confirming a successful install. Nor when going to Admin > Config> Images....there was no listing of any IH4 image to resize.... Any suggestions would be greatly appreciated....

13 Sep 2014, 8:53 PM
#1185
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi... I am finally able to login after a fresh install of Image Handler 4.0. Great news! Except I didn't see a message of a successful install at the top of my admin page and when I went to Admin - Config - Images - there was no option to reset IH4 images. Any ideas what I should do. Thanks for your continued help and patience.

Brenda

13 Sep 2014, 10:25 PM
#1186
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

I have a few different questions, I'm using Image Handler 4 on a v1.5.3 site. I'd appreciate any help!

First, I'm using Zen Magnific for my product images, but I notice that with Image Handler installed, the Zen Magnific pop up only works with the first image, it doesn't have arrows for the additional images as it should. I have the Gallery Mode set to true, which is supposed to include all the images. So the main image uses, Zen Magnific, and the additional images use a different kind of pop up, or if I hover over the images they have a hover effect. The main image doesn't have a hover effect either with Zen Magnific turned on or off. Is there a way to make these two addons work together so that the image viewing is consistent? Here is an example product: http://www.blackorchidcouture.com/store/index.php?main_page=product_info&cPath=590_592&products_id=2818

Next question: is there a way to add one image to all the products all at once instead of having to do it one by one? For instance, for the footwear, I want to add a size chart to all the products in that category. Do I have to add this pic individually to each product?

Last question: I did try adding the size chart image to a few of the shoes through Image Handler, and while the image shows up just fine in the admin area, when I look at the product, the image isn't included there in the additional images. The image is a .gif while the shoe images are .jpg, don't know if that makes a difference or not. I do notice that the image is renamed correctly, for instance if the image is named black-shoe, it renames it black-shoe_1, but .gif instead of .jpg. Could this be the problem?

Thanks!

13 Sep 2014, 10:26 PM
#1187
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi, I'm very sorry for the duplicate entries. I didn't see my post after some time and thought somehow I hadn't saved it. So I kept reposting....I tried to delete them but couldn't figure out how. Again sorry, I know this is against the rules. Hope I can still get my question answered.

Thanks
Brenda

13 Sep 2014, 10:33 PM
#1188
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Brenda, I didn't see anything saying it successfully installed either, but it still did. IH options don't come up in their own place in admin/configuration, it's under the regular admin/configuration/images, it's added on to there. Is this what you are wondering?

13 Sep 2014, 10:36 PM
#1189
blackorchidcouture avatar

blackorchidcouture

Zen Follower

Join Date:
Apr 2010
Location:
Albuquerque, NM
Posts:
198
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Oh never mind, I see that you know that it's under configuration/images. Did you scroll all the way down? There should be a list of new options with IH in front of them....

13 Sep 2014, 11:24 PM
#1190
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi Black Orchid.... Thanks, I did scroll all the way down, but to no avail. No IH image option listed.... :(
Something must be missing in my install....

Brenda

14 Sep 2014, 1:53 AM
#1191
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

msbfrnj:

Hi Black Orchid.... Thanks, I did scroll all the way down, but to no avail. No IH image option listed.... :(
Something must be missing in my install....

Brenda

So, as you may recall from earlier about following the directions... If you re not already logged into the admin panel when the actual install file is placed onto the server, then the success/error message(s) will not appear when the next click is made within the admin area which is when the "install" automagically happens. Now if not mistaken this was an upgrade that was performed to the system, so perhaps you were not awaare that errorlogs have moved from the cache directory to the logs directory of the store beginning in ZC 1.5.1. There may be errors listed there relevant to the issue. It may also be necessary to remove IH4 and reinstall (I know again) this time being in a position to observe the notifications (logged in). If the message(s) received indicate a successful install; however, there is no change to the system, it is possible that whatever special instructions exist in the documentaation needs to be performed (I thought it required manually performing the applicable SQL/PHP action(s) in the file but I haven't personally run into that issue yet. Otherwise it may likely and unfortunately be some specific issue not associated with IH4 that should be addressed in it's own thread. "On it's own" iH4 and it's install is rather straight forward, well, actually the install of iH4 is not complicated under a majority of conditions, it's some cases of making it all work together that can be an issue, but that is for other threads

25 Sep 2014, 1:15 PM
#1192
donrichardsonnh avatar

donrichardsonnh

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

Hi All,
I have a store that has Image Handler 4 and this has been working just fine for years now. I added Easy Populate 1.5 and while working on updating products I made some mistakes in one of my updates. I then did a silly thing to fix this.

  1. I Downloaded a CSV to remove all products.
  2. I uploaded a new CSV that corrected ALL products.

The products are all there now, but none of my images are showing up. Not sure if this is an Image Handler 4 issue, but I know that this plug-in controls the display of images on the store. I may have confused Image Handler 4 in some way by doing what I did.

Now, all of the images are on the site in the images directory, but they will not display unless I upload the image through a product update from the admin panel.

Well, I have thousands of products and really do not want to manually update each product image, as this will take too much time. Is there any wisdom out there that understands what I may have done, and a quick or automated was to rectify this and get all of my images to show in the store?

THANKS In Advance.

25 Sep 2014, 4:19 PM
#1193
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

DonRichardsonNH:

Hi All,
I have a store that has Image Handler 4 and this has been working just fine for years now. I added Easy Populate 1.5 and while working on updating products I made some mistakes in one of my updates. I then did a silly thing to fix this.

  1. I Downloaded a CSV to remove all products.
  2. I uploaded a new CSV that corrected ALL products.

The products are all there now, but none of my images are showing up. Not sure if this is an Image Handler 4 issue, but I know that this plug-in controls the display of images on the store. I may have confused Image Handler 4 in some way by doing what I did.

Now, all of the images are on the site in the images directory, but they will not display unless I upload the image through a product update from the admin panel.

Well, I have thousands of products and really do not want to manually update each product image, as this will take too much time. Is there any wisdom out there that understands what I may have done, and a quick or automated was to rectify this and get all of my images to show in the store?

THANKS In Advance.
I think this is a question you need to ask in the Easy Populate support thread.. unless you physically removed the images then IH4 will pick them up.. My guess is that you need to do something with the upload file to say WHERE the image is located.. THAT is an Easy Populate question and needs to be answered on the Easy Populate support thread..

31 Oct 2014, 5:00 PM
#1194
nipinuk avatar

nipinuk

Zen Follower

Join Date:
Oct 2005
Location:
Hampshire, UK
Posts:
96
Plugin Contributions:
0

Re: Image Handler 4 (for v1.5.x) Support Thread

BGundlach:

You're absolutely right. I needed to run the handle_image function on my large image. I borrowed fual lightbox's zen_lightbox.php and voila working great. Thank you

Hi there, I'm trying to find out the same thing but I don't understand what you replaced $products_image_large with? I did a search for the handle_image function on the developers toolkit and saw a few results. I did look into the files but really don't understand what to replace it with.

I've found the following code on zen colorbox:

// hook for handle_image() function such as Image Handler etc
  if (function_exists('handle_image')) {
    $newimg = handle_image($src, $alt, $width, $height, $parameters);
    list($src, $alt, $width, $height, $parameters) = $newimg; 
  }

I tried replacing $products_image_large with $newimg_large and checking the source code shows up a blank :( I'm trying to get Product Image Zoom plugin to point to IH4 large image instead of having to put large images into the images/large folder.

Thank you for your patience!

31 Oct 2014, 5:18 PM
#1195
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

nipinuk:

Hi there, I'm trying to find out the same thing but I don't understand what you replaced $products_image_large with? I did a search for the handle_image function on the developers toolkit and saw a few results. I did look into the files but really don't understand what to replace it with.

I've found the following code on zen colorbox:

// hook for handle_image() function such as Image Handler etc
if (function_exists('handle_image')) {
$newimg = handle_image($src, $alt, $width, $height, $parameters);
list($src, $alt, $width, $height, $parameters) = $newimg;
}

> 
> I tried replacing $products_image_large with $newimg_large and checking the source code shows up a blank :( I'm trying to get Product Image Zoom plugin to point to IH4 large image instead of having to put large images into the images/large folder.
> 
> Thank you for your patience!

The code snippet above provides the characteristics of the image to be displayed as a type of an "array" with the image source returned as $src. If you take a look at IH4s includes/modules/YOUR_TEMPLATE/additional_images.phpfor example, you will see a similar function call with $products_image_large assigned to zen_output_string($src). This type of assignment for your situation would need to be performed after the original image is identified, but before the image is displayed/used further.

Looking atthe code a little further, there is yet more "work" done to ensure all things associated with the assignment of the image is correct. (Ie, the path/file is pulled from the correct location. Etc.)
31 Oct 2014, 6:55 PM
#1196
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

mc12345678:

Looking atthe code a little further, there is yet more "work" done to ensure all things associated with the assignment of the image is correct. (Ie, the path/file is pulled from the correct location. Etc.)

HISTORICALLY IH4 has never worked with the Product Image Zoom module.. Anyone who DOES have it working together has not shared the code required that makes this integration possible, and I have NEVER had the skillset to tackle this change..

Maybe some nice volunteer (hint hint :smile:) will at last share this most often asked about integration... I am GUESSING that this would require some kind of admin option to turn off if one isn't using the Product Image Zoom module..

31 Oct 2014, 8:52 PM
#1197
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

DivaVocals:

HISTORICALLY IH4 has never worked with the Product Image Zoom module.. Anyone who DOES have it working together has not shared the code required that makes this integration possible, and I have NEVER had the skillset to tackle this change..

Maybe some nice volunteer (hint hint :smile:) will at last share this most often asked about integration... I am GUESSING that this would require some kind of admin option to turn off if one isn't using the Product Image Zoom module..

Untested, but seems like may work? (Might have some offset parantheses, ie missing one or have an extra):
file changed is: includes/templates/YOUR_TEMPLATE/templates/tpl_modules_main_product_image.php and is/was based off of the file available in ZC 1.5.3, may be different. If dimensions have been altered because of the below, then the left side of this statement:

list($src, $alt, $width, $height, $parameters) = $newimg;

Could be modified as necessary to omit the undesired property, for example to prevent the $width from being reassigned:
list($src, $alt, , $height, $parameters) = $newimg;

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2011 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0
 * @version $Id: tpl_modules_main_product_image.php 18698 2011-05-04 14:50:06Z wilt $
 */
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); 
/* Begin add 1 of 2 by mc12345678 to support product image zoom */
if ($products_image != '') {
 if (function_exists('handle_image')) {
  $newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
  list($src, $alt, $width, $height, $parameters) = $newimg;
  $products_image_large_test = zen_output_string($src);
  if (file_exists($products_image_large_test)) {
   $products_image_large = $products_image_large_test;
  }
 } 
}
/* End add 1 of 2 by mc12345678 to support product image zoom 14-10-31*/
?>
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium), addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT,/* Begin add 2 of 2 by mc12345678 14-10-31*/ (file_exists($template->get_template_dir('loader_product_image_zoom.php',DIR_WS_TEMPLATE, 'auto_loaders','auto_loaders'). '/loader_product_image_zoom.php') ? 'data-zoom-image="' . $products_image_large . '"' : ''))) /* End add 2 of 2 by mc12345678 14-10-31*/ . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</noscript>
</div>

The second edit should account for the presence of the product image zoom code by verifying the presence of the auto_loader file in the template. If it doesn't exist, then the javascript shouldn't end up being loaded, and therefore, the zoom option/feature wouldn't work. Of course it is always possible that a javascript file could be removed as an alternative, but if the autoloader is still in place, I believe it would throw an error that it couldn't find the file(s). So seems like the best way to determine the presence of the product image zoom option. Now, if the request is/was to do the hover aspect like with other images on the page without the use of product image zoom, then that's a different story... :)

I might get around to testing the above, but have some other things to work on.

2 Nov 2014, 3:56 AM
#1198
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

Got to looking at what was provided above, and well, for the most part the code is "right", but in trying to apply product image zoom (plugin available from cvhainb) doesn't appear that the javascript for that plugin is getting loaded, so the extra code doesn't seem to help. I'm working to see what it takes to get that javascript loaded, but atthe same time am I to assume that it is more desirable to just get the zoom to work that is part of IH4 instead? That's a different (yet somewhat similar) path/set of code.

2 Nov 2014, 5:00 AM
#1199
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 4 (for v1.5.x) Support Thread

Okay, had to force the javascript files to load for the plugin Product Image Zoom (http://www.zen-cart.com/downloads.php?do=file&id=1815) and it worked using the following code: Off to see about implementing product image zoom included with IH4 which now that I think about it probably was the initial intent/request. :)

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2011 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: tpl_modules_main_product_image.php 18698 2011-05-04 14:50:06Z wilt $
 */
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE));
/* Begin add 1 of 2 by mc12345678 to support product image zoom */
if ($products_image != '') {
 if (function_exists('handle_image')) {
  $newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
  list($src, $alt, $width, $height, $parameters) = $newimg;
  $products_image_large_test = zen_output_string($src);
  if (file_exists($products_image_large_test)) {
   $products_image_large = $products_image_large_test;
  }
 } 
}
/* End add 1 of 2 by mc12345678 to support product image zoom 14-10-31*/
 ?> 
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image(addslashes($products_image_medium), addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT,/* Begin add 2 of 2 by mc12345678 14-10-31*/ (file_exists($template->get_template_dir('loader_product_image_zoom.php',DIR_WS_TEMPLATE, 'auto_loaders','auto_loaders'). 'loader_product_image_zoom.php') ? 'data-zoom-image="' . $products_image_large . '"' : '') /* End add 2 of 2 by mc12345678 14-10-31*/) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</noscript>
</div>
2 Nov 2014, 1:35 PM
#1200
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 4 (for v1.5.x) Support Thread

mc12345678:

Okay, had to force the javascript files to load for the plugin Product Image Zoom (http://www.zen-cart.com/downloads.php?do=file&id=1815) and it worked using the following code: Off to see about implementing product image zoom included with IH4 which now that I think about it probably was the initial intent/request. :)Just an FYI.. previous attempts to get the IH hover to work on medium images rendered IH4 incompatible with compatible lightbox modules it now works just fine with.. Also turning on/off zoom on the medium images should be a configuration option.