Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,556

Results 5,361 to 5,380 of 7,094
7 Jul 2010, 8:27 PM
#5361
divavocals avatar

divavocals

Totally Zenned

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

Image Handler 2 (for ZC v1.3.8 ONLY) Support

timebombx:

http://www.d2west.com/index.php?main_page=index&cPath=105_332_319_142

An example is the first image I tried it with.
It's just as I posted earlier.. You have not copied over all the files in the IH2 package.. Copy over ALL of the IH2 files to your store.. You are missing files from the includes/template/classic folders..

7 Jul 2010, 9:04 PM
#5362
nigelt74 avatar

nigelt74

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

DivaVocals:

It's just as I posted earlier.. You have not copied over all the files in the IH2 package.. Copy over ALL of the IH2 files to your store.. You are missing files from the includes/template/classic folders..

Hey Diva, what version of the javascript is in the classic js folder?

7 Jul 2010, 9:09 PM
#5363
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

nigelt74:

Hey Diva, what version of the javascript is in the classic js folder?Your javascript was copied over to ALL of the template folders.. In fact I made sure that all of the template folders (custom, default and classic) all contained the same files and folders. timebombx has NONE of the Classic template javascript files in his store files..

8 Jul 2010, 3:24 AM
#5364
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

In the last release of Image Handler Rev 8

admin/includes/modules/category_product_listing.php

around line 217

Zen Cart 1.39 code

    $products_count = 0;
    if (isset($_GET['search']) && !empty($_GET['search']) && $action != 'edit_category') {
// fix duplicates and force search to use master_categories_id
/*

Image Handler version

    $products_count = 0;
    if (isset($_GET['search'])) {

Then line 239-259 Missing this chunk in the image handler

*/
      $products_query_raw = ("select p.products_type, p.products_id, pd.products_name, p.products_quantity,
                                       p.products_image, p.products_price, p.products_date_added,
                                       p.products_last_modified, p.products_date_available,
                                       p.products_status, p2c.categories_id,
                                       p.products_model,
                                       p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
                                       p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
                                       p.products_quantity_order_max, p.products_sort_order,
                                       p.master_categories_id
                                from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, "
                                       . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
                                where p.products_id = pd.products_id
                                and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                                and (p.products_id = p2c.products_id
                                and p.master_categories_id = p2c.categories_id)
                                and (
                                pd.products_name like '%" . zen_db_input($_GET['search']) . "%'
                                or pd.products_description like '%" . zen_db_input($_GET['search']) . "%'
                                or p.products_id = '" . zen_db_input($_GET['search']) . "'
                                or p.products_model like '%" . zen_db_input($_GET['search']) . "%')" .
                                $order_by);

What exactly is the different between these 2 occurrence? Was this intentionally or error??

The file provided look similar to 1.38a but the latest release shows that there were changes to that particular file that are related to Search Empty Field.

Any advise would be appreciated as I am doing an upgrade to Zen Cart on the main site (Testing Server).

8 Jul 2010, 4:41 PM
#5365
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Looks like this was unintentionally overlooked..:blush: I will update the download package and resubmit.. I will also take a quick look through the rest of the core Zen files to make sure we didn't overlook other core Zen files (I think this is a one off thing though..) Thanks for pointing this out! :smile:

CoolCarPartsOnline:

In the last release of Image Handler Rev 8

admin/includes/modules/category_product_listing.php

around line 217

Zen Cart 1.39 code

$products_count = 0;
if (isset($_GET['search']) && !empty($_GET['search']) && $action != 'edit_category') {

// fix duplicates and force search to use master_categories_id
/*

> 
> ```php
    $products_count = 0;
    if (isset($_GET['search'])) {
```Then line 239-259 Missing this chunk in the image handler
> 
> ```php
*/
      $products_query_raw = ("select p.products_type, p.products_id, pd.products_name, p.products_quantity,
                                       p.products_image, p.products_price, p.products_date_added,
                                       p.products_last_modified, p.products_date_available,
                                       p.products_status, p2c.categories_id,
                                       p.products_model,
                                       p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
                                       p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
                                       p.products_quantity_order_max, p.products_sort_order,
                                       p.master_categories_id
                                from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, "
                                       . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
                                where p.products_id = pd.products_id
                                and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                                and (p.products_id = p2c.products_id
                                and p.master_categories_id = p2c.categories_id)
                                and (
                                pd.products_name like '%" . zen_db_input($_GET['search']) . "%'
                                or pd.products_description like '%" . zen_db_input($_GET['search']) . "%'
                                or p.products_id = '" . zen_db_input($_GET['search']) . "'
                                or p.products_model like '%" . zen_db_input($_GET['search']) . "%')" .
                                $order_by);
```What exactly is the different between these 2 occurrence? Was this intentionally or error??
> 
> The file provided look similar to 1.38a but the latest release shows that there were changes to that particular file that are related to Search Empty Field. 
> 
> Any advise would be appreciated as I am doing an upgrade to Zen Cart on the main site (Testing Server).
8 Jul 2010, 5:20 PM
#5366
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

No problem.

If you could please post what needs to be change on here. I am half way through updating the site since we have a lot of custom work it is taking forever to merge every file.

8 Jul 2010, 5:25 PM
#5367
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

From the readme file: > Uninstallation

  1. In Admin > Tools >Image Handler2, click on "Remove Image Handler from database", then delete all files.

ardhill:

How can I get these bits of IH out of my ZenCart?

I have a cart that had been messed about a bit, and now has been upgraded.

Image Handler was not installed on the new upgrade, but there are entries in the Admin > Configuration > Images menu, which look like Image Handler entries. I guess they are from the database. I would like to get these out of my cart to clean it up.

I had a look at a copy of IH and there is no uninstall sql, so how can I get rid of these entries pleaese?

Is there an uninstall .sql patch?
Is it simple enough to do it manually from php MyAdmin? If so - how?

Thanks

Paul

8 Jul 2010, 6:37 PM
#5368
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Well found!! Good job you're on the ball!! and i thought is was the job of the guys who pass/fail mods for download to do this....
:P

CoolCarPartsOnline:

In the last release of Image Handler Rev 8

admin/includes/modules/category_product_listing.php

around line 217

Zen Cart 1.39 code

$products_count = 0;
if (isset($_GET['search']) && !empty($_GET['search']) && $action != 'edit_category') {

// fix duplicates and force search to use master_categories_id
/*

> 
> Image Handler version
> 
> ```php
    $products_count = 0;
    if (isset($_GET['search'])) {

Then line 239-259 Missing this chunk in the image handler

*/
$products_query_raw = ("select p.products_type, p.products_id, pd.products_name, p.products_quantity,
p.products_image, p.products_price, p.products_date_added,
p.products_last_modified, p.products_date_available,
p.products_status, p2c.categories_id,
p.products_model,
p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,
p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping,
p.products_quantity_order_max, p.products_sort_order,
p.master_categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, "
. TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and (p.products_id = p2c.products_id
and p.master_categories_id = p2c.categories_id)
and (
pd.products_name like '%" . zen_db_input($_GET['search']) . "%'
or pd.products_description like '%" . zen_db_input($_GET['search']) . "%'
or p.products_id = '" . zen_db_input($_GET['search']) . "'
or p.products_model like '%" . zen_db_input($_GET['search']) . "%')" .
$order_by);

> 
> 
> What exactly is the different between these 2 occurrence? Was this intentionally or error??
> 
> The file provided look similar to 1.38a but the latest release shows that there were changes to that particular file that are related to Search Empty Field. 
> 
> Any advise would be appreciated as I am doing an upgrade to Zen Cart on the main site (Testing Server).
8 Jul 2010, 8:29 PM
#5369
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Includes minor changes to correct minor omissions from Rev 8 files. If you've already installed **Rev 8 **simply replace your install files with the Rev 8a files. If you are already running Rev 8, you shouldn't have any issues, but should update to Rev 8a anyway..

Thanks to CoolPartsOnline and Nigel for their sharp eyes.:bigups:. When there are multiple people working on one project it's not unusual for things to get lost in the cracks.. Fortunately these were minor omissions..:smile:

9 Jul 2010, 12:00 AM
#5370
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

That is not the only correction to be made on file /admin/includes/modules/category_product_listing.php
There is also a syntax error in line 38, which was carried over from rev. 7, that is my fault.
Please bear in mind that programming corrections to IH2 were done by a guy who is not into Zen Cart nor module creation, and who just wanted to clean out deprecated functions and programming errors.
The result is quite good because rev. 8 works fine, it can of course be improved.
I have already made corrections to that file, just wait for me to test it, and the other overwritten Zen Cart core files.
Will be in touch with Diva, who will finally test everything.

9 Jul 2010, 12:47 AM
#5371
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Cool.. I will submit another update as soon as I test Carlos' new files..

Just so it's clear, there is NOTHING WRONG with the version of IH2 available in the downloads section now.. It will work just fine, but as has been pointed out, we do need to make a few minor corrections.. Stay tuned!:smile:

ckosloff:

That is not the only correction to be made on file /admin/includes/modules/category_product_listing.php
There is also a syntax error in line 38, which was carried over from rev. 7, that is my fault.
Please bear in mind that programming corrections to IH2 were done by a guy who is not into Zen Cart nor module creation, and who just wanted to clean out deprecated functions and programming errors.
The result is quite good because rev. 8 works fine, it can of course be improved.
I have already made corrections to that file, just wait for me to test it, and the other overwritten Zen Cart core files.
Will be in touch with Diva, who will finally test everything.

9 Jul 2010, 3:06 AM
#5372
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Thanks for the new Image Handler 2 update for 1.3.9! I installed it and everything is working but the watermark feature. I have enabled by clicking yes on IH watermark in Admin- Configuration on all sizes of IH, (small, medium and large) and it's not working on any of them. I really only want to enable it on large images, but have enabled them all to see that made a difference, but no luck. Any suggestions? Thanks!

9 Jul 2010, 3:24 AM
#5373
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

lilrowo:

Thanks for the new Image Handler 2 update for 1.3.9! I installed it and everything is working but the watermark feature. I have enabled by clicking yes on IH watermark in Admin- Configuration on all sizes of IH, (small, medium and large) and it's not working on any of them. I really only want to enable it on large images, but have enabled them all to see that made a difference, but no luck. Any suggestions? Thanks!

See if this helps:

Watermarking

 In order for watermarking to work for every image dimension the  specific corresponding *watermark images* have to be present.  That means, you have to upload files to the following specific  locations:  
  • images/watermark.png
  • images/medium/watermark_MED.png (or your specified MEDIUM_IMAGE_SUFFIX)
  • images/large/watermark_LRG.png (or your specified LARGE_IMAGE_SUFFIX)
I included some demo watermark images for small, medium and large sized  images featuring a slightly modified Zen-Cart logo for a quick start.  Nothing more to do, switch on, switch off, just as you like. Image  Handler takes care of generating images accordingly. You can specify  where you want the watermark to appear on the image canvas by selecting  NorthWest, North, NorthEast, West, Center, East, SoutWest, South and  SouthEast for the *Wartermark Gravity* setting.
9 Jul 2010, 11:52 PM
#5374
lilrowo avatar

lilrowo

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Many thanks! They are working! :clap: Now off to make some custom watermark images...

10 Jul 2010, 2:52 AM
#5375
dcrosbie avatar

dcrosbie

New Zenner

Join Date:
Jan 2008
Posts:
18
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I just installed the latest IH2 on my 1.3.9d store. Also, I purchased a template to use to have a starting point for my store. My problem is that the template is not sync'd with IH2, so for the product listing page it is showing my main images that I uploaded and not the IH2 small images.

Can someone tell me where the small images are stored so I can modify my template to point to them? I see that the medium and large images are stored at images/medium and images/large, but I do not see an images/small folder?

10 Jul 2010, 5:27 AM
#5376
darkangel avatar

darkangel

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

If you do not set a path for the images they are most likely all tossed into the main store images folder.

But make sure that if the main image is a jpg that all the additional ones are jpg too...

you can not have the main one jpg, gif or png and have the additional ones being another extension.

store link would be real good so the ones more experienced can possibly give you more info

dcrosbie:

I just installed the latest IH2 on my 1.3.9d store. Also, I purchased a template to use to have a starting point for my store. My problem is that the template is not sync'd with IH2, so for the product listing page it is showing my main images that I uploaded and not the IH2 small images.

Can someone tell me where the small images are stored so I can modify my template to point to them? I see that the medium and large images are stored at images/medium and images/large, but I do not see an images/small folder?

10 Jul 2010, 9:57 PM
#5377
dcrosbie avatar

dcrosbie

New Zenner

Join Date:
Jan 2008
Posts:
18
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

dcrosbie:

I just installed the latest IH2 on my 1.3.9d store. Also, I purchased a template to use to have a starting point for my store. My problem is that the template is not sync'd with IH2, so for the product listing page it is showing my main images that I uploaded and not the IH2 small images.

Can someone tell me where the small images are stored so I can modify my template to point to them? I see that the medium and large images are stored at images/medium and images/large, but I do not see an images/small folder?

Solved me problem. The template was not using zen_get_image function so it was just getting the base image directly. Just had to change it to use the zen_get_image function and now it works great. Such an easy fix, but so long to figure it out!!

10 Jul 2010, 11:17 PM
#5378
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

‎Okay, got ckosloff's updated files loaded and tested..
(See: http: // zen138 . overthehillweb . com /index.php?main_page=product_info&cPath=1&products_id=1)

Gonna submit one more IH2 update (Rev 8b) to the downloads section.. I will make it available on my site (see siggy for link) until Rev8b is approved and available in the downloads section.

From the new readme file:

Rev 8 Changelog

This version of Image Handler2 is based on Ver 2.0 Rev 7 for Zen Cart 1.3.8b by ckosloff.

  • (Rev 8) 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.
  • (Rev 8) Clean up HTML to remove deprecated HTML tags
  • (Rev 8) Updated javascript which now support full cross browser compatibility (tested in Chrome, Safari, Internet Explorer 8 and Firefox for Windows)
  • (Rev 8) 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.:smile:
  • (Rev 8) 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.
  • (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) The following files were deleted from the install package (they are now obsolete)
  • images/zoom.png
  • images/medium/zoom_MED.png
  • images/large/zoom_LG.png
  • includes/template/classic (if you are using the Classic template simply rename the YOUR_TEMPLATE folder as per the install instructions below)

What this means for anyone upgrading from ANY older version of Image Handler2 for 1.3.x to this new Rev 8b version is that you MUST run the un-install function from the version you are currently running BEFORE applying the new Image Handler2 for 1.3.x Rev 8b files to your store. Otherwise you will get errors!!

11 Jul 2010, 2:45 PM
#5379
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi all,
I have this very odd problem, my IH only works with small images, I have no idea what could be the problem. in the admin end I can see that it does resize images and everything is fine, but store front is different, images do not come form bmz_cache folder, however it does work with small images. :shocking:
Thanks!

11 Jul 2010, 3:08 PM
#5380
divavocals avatar

divavocals

Totally Zenned

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

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Dan123:

Hi all,
I have this very odd problem, my IH only works with small images, I have no idea what could be the problem. in the admin end I can see that it does resize images and everything is fine, but store front is different, images do not come form bmz_cache folder, however it does work with small images. :shocking:
Thanks!
You've provided nowhere near enough information for anyone to provide you any kind of assistance..

So let me post this. From the readme file:

Make sure Image Handler2 is installed. Admin > Tools > Image Handler2 > Admin. Set permissions in your images and bmz_cache folder to 777 (they need to be the same, in some cases 755 also works).

If Image Handler2 does not work:

  • Make sure all files are in correct location
  • Make sure the files are not corrupt from bad FTP transfers
  • Make sure that there are no javascript conflicts (this last point has been largely addressed since Rev 7)

Also one last thing: Make sure you copied ALL of the add-on files to your store!! (Most issues are caused by storeowners who decide to NOT load ALL of the module files)