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,563

Results 5,301 to 5,320 of 7,094
26 Jun 2010, 4:03 AM
#5301
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

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

seems this addon changes core files, is there a version that is for zen cart 1.3.9d? Thanks.

26 Jun 2010, 5:55 AM
#5302
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

fei2010:

seems this addon changes core files, is there a version that is for zen cart 1.3.9d? Thanks.

actuallly it only changes 1 or 2 files and it is for 1.3.9d I have it running now.

you just need to check the files you are uploading and merge the one that is from the store with the one from the zip

26 Jun 2010, 4:31 PM
#5303
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

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

Thank you DarkAngel, any good merge tool/software you can recommend?

DarkAngel:

actuallly it only changes 1 or 2 files and it is for 1.3.9d I have it running now.

you just need to check the files you are uploading and merge the one that is from the store with the one from the zip

26 Jun 2010, 4:56 PM
#5304
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

pc users use winmerge

i use a mac mainly and i use text wrangler which is a freebie too

26 Jun 2010, 7:41 PM
#5305
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

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

DarkAngel:

actuallly it only changes 1 or 2 files and it is for 1.3.9d I have it running now.

you just need to check the files you are uploading and merge the one that is from the store with the one from the zip

I compared image handler 2 files and my live zen cart files, seems that there are 6 files will need to be changed. Maybe not all of them are core files, some of them might be from other addon? I checked the files, they do have difference beside those comments at the beginning of the file! Here is the list of files:

\includes\modules\additional_images.php
\includes\modules\main_product_image.php
\includes\modules\pages\popup_image\header_php.php
\includes\modules\pages\popup_image_additional\header_php.php
\includes\templates\template_default\popup_image_additional\tpl_main_page.php
\admin\includes\modules\category_product_listing.php

seems to me it is hard to merge? any advice?

26 Jun 2010, 10:36 PM
#5306
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 have other addond that use those files then you will need to make duplicates of the ones on your server...compare them with the ones from IH2...then just find the differences that pertain to IH2 and add them to your duplicates....

on the ones you already have on the server add a ~ to the end to deactivate it so the ending looks like .php~

that way should you need to revert you just delete the edited files and remove the ~ for activating the former ones

26 Jun 2010, 10:42 PM
#5307
seanriceaz avatar

seanriceaz

New Zenner

Join Date:
Mar 2010
Location:
Phoenix, AZ
Posts:
12
Plugin Contributions:
0

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

Hey, does anyone know how I can get IH to recognize .BMP files? MY client is uploading them and for some reason they're not getting converted. I have imagemagick installed, and it supports .bmp (GD lib does not).

Thanks!

26 Jun 2010, 10:50 PM
#5308
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

Seanriceaz:

Hey, does anyone know how I can get IH to recognize .BMP files? MY client is uploading them and for some reason they're not getting converted. I have imagemagick installed, and it supports .bmp (GD lib does not).

Thanks!

maybe you need to ask your client to upload jpg, gif or png files. that would be easier.

28 Jun 2010, 1:32 AM
#5309
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

So here's the deal.. I'm almost done with my testing of the Rev 8 files. Ckosloff has finished testing the Rev 8 files against PHP 5.3, and has indicated to me that Rev 8 is PHP 5.3 compatible. I have been testing against PHP 5.2.x and have no issues there either.

I have tested the new files with Nigel's updated Javascript in IE8, Chrome, Safari and Firefox, and all works wonderfully..:clap: Now that said there are a few significant changes for Rev 8 that I wanted to note before I finalize my testing and bundle this up and submit it.

  1. No more hotzones - The feature adds no real value to IH2, and it has been removed. The been settings for hotzones have also been removed from Admin > Configuration > Images. In case anyone is wondering, the hover feature works JUST FINE without hotzones.:smile:
  2. The IH zoom medium images settings has also been removed from Admin > Configuration > Images. This feature HAS NEVER worked because the code required for it to work was NEVER IMPLEMENTED in any IH2 release. I have long suspected that this is largely due to the likely conflicts between the various lightbox contributions and any hovering/zooming code. No matter why, the code is not there, and so the configuration settings code has been removed.

What this means for anyone upgrading to Rev 8 is that you MUST run the uninstall for the version you are currently running BEFORE applying the new Rev 8 files. Otherwise you will get errors!!

Let me say that again, if you are upgrading from ANY version PRIOR to Rev 8 you MUST uninstall the version you are currently running, then copy over the new IH2 files, and then run install to re-activate IH2 Rev 8.

Here's the link to my test site so you can see the newest version of IH2 in action:
http: // zen138 . overthehillweb . com/index.php?main_page=product_info&cPath=1&products_id=1

28 Jun 2010, 1:56 AM
#5310
fei2010 avatar

fei2010

New Zenner

Join Date:
Jun 2010
Posts:
56
Plugin Contributions:
0

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

you testing site looks fine. Can't wait to see the new version! thanks!

28 Jun 2010, 2:07 AM
#5311
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

Also let me be PERFECTLY clear.. I take NO CREDIT whatsoever for this new release.. I am only the author of the IH2 **readme **document..

The REAL credit belongs to ckosloff, and Mano for graciously (and merfifully taking the files I tried to "upgrade" and not only upgrading IH2, but cleaning up and streamliing the code.

Of course an undying thanks also goes to Nigel for toiling away at (finally) full cross browser compatibility for the IH2 javascript..

The real heavy lifting was done by these three gentlemen, and I have made sure that the readme CLEARLY reflects that.:clap:

28 Jun 2010, 10:59 AM
#5312
mal2809 avatar

mal2809

New Zenner

Join Date:
Feb 2008
Posts:
51
Plugin Contributions:
0

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

DivaVocals:

[*]The IH zoom medium images settings has also been removed from Admin > Configuration > Images. This feature HAS NEVER worked because the code required for it to work was NEVER IMPLEMENTED in any IH2 release. I have long suspected that this is largely due to the likely conflicts between the various lightbox contributions and any hovering/zooming code. No matter why, the code is not there, and so the configuration settings code has been removed.
[/LIST]

The zoom medium images DID work with the additional optional extras folder before it was removed for the last update.

I liked the zoom medium images behaviour, whether it worked with lightbox is another thing, i did not have lightbox installed but on it's own it worked just fine and i tested it on all the main browsers.

It's a shame zoom medium images has not been worked on and enabled as the ability to hover over the medium sized image on the page without clicking was in my opinion a very useful feature.

So while you are half right about medium image zoom i can say there was an option and it was available at one point, yes i know you and Ckosloff didn't like it thus removed it but it was a working option at one point.

Is there a reason Medium image zoom does not work or cannot be made to work. ?

28 Jun 2010, 11:32 AM
#5313
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

Mal2809:

The zoom medium images DID work with the additional optional extras folder before it was removed for the last update.

I liked the zoom medium images behaviour, whether it worked with lightbox is another thing, i did not have lightbox installed but on it's own it worked just fine and i tested it on all the main browsers.

It's a shame zoom medium images has not been worked on and enabled as the ability to hover over the medium sized image on the page without clicking was in my opinion a very useful feature.

So while you are half right about medium image zoom i can say there was an option and it was available at one point, yes i know you and Ckosloff didn't like it thus removed it but it was a working option at one point.

Is there a reason Medium image zoom does not work or cannot be made to work. ?

The joy of open source...
solution:

take the code, add your own bits to make that feature you like work again. Rename, for example "Mal2809's version of Image Handler2". zip it, submit it... but be prepared for

a) needing your own support thread
b) a million or so support request
c) DivaVocals repeatedly kicking off at you for your version

28 Jun 2010, 1:49 PM
#5314
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

Anybody can take open source and concoct an ugly kludge.
A so-called updated version was causing a support nightmare so I (reluctantly) decided to update IH2, mostly for my own usage.
Guess what? It worked and solved many problems.
Some people like to have huge images popup on medium (main product) images and clutter the page, while at the same time breaking all gallery mods, matter of taste.
But, PLEASE, don't start a war of conflicting versions and add to confusion.
What Diva has said after thoroughly testing the new version makes perfect sense, stick to that and be trouble-free.
BTW, Diva, in the jscript_imagehover.js be sure to include Nigel's correction on lines 87 & 88, 2000 px should be a negative value -2000.

28 Jun 2010, 2:03 PM
#5315
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

As I just explained, the code for medium images zoom was never included in Tim Kroeger's original contribution or any subsequent update.

The introduction of the "optional extras" which added this feature was poorly documented/supported, and did not explain that the use of this code would disable any lightbox or jquery contributions rendering them non workable.

The decision to remove the "optional extras" folders from Rev 7 wasn't just because ckosloff and I "didn't like" the feature. It was removed because, based on the posts in the support thread after it's introduction, the "optional extras" created more problems for store owners. The number of support posts related to problems caused by the optional extras made it clear that these folders should not be included in Rev 7. (the version in which the optional extras was removed from the download package)

To answer your question fully, I suspect that the reason Tim did not include this ability (zoom on medium images) in the codebase had everything to do with managing compatibility between zoom on medium images functionality with the MANY contributions which affect product image behavior. For example:

  1. Attribute image replaces main product image on selecting attribute

  2. Attribute Pop-up (Large Images)

  3. External Product Images

  4. Fual Slimbox (Lightbox)

  5. Zen Lightbox
    In our analysis we realized that the best way to add zoom on medium images and still provide those store owners who like/want lightbox features (and other similar product image effects) would probably require incorporating these features directly to the IH2 codebase. To maintain full store owner control and flexibility, the codebase would have to include the following features:

  6. Admin configurable zoom on medium images

  7. Admin configurable lightbox effects

  8. The ability for zoom on medium images to work if lightbox features are activated.
    The work required to add zoom on medium images AND lightbox effects required a lot more coding work than ckosloff and Mano were willing to invest on a volunteer basis.

So in the end this work is left to anyone else in the open source community who wants to tackle a re-write of IH to fully incorporate (and hopefully SUPPORT) the addition of these features. Sure anyone can add a hack to cobble in zoom on medium images, but IH is a well written contribution, and if the feature is going to be added, then it should be done in the smae careful manner IMO.. In the meantime I will include in the readme links to the thread which shows how to add zoom on medium image along with the appropriate cautions about incompatibility with lightbox and other similar contributions.

The intent of the Rev 7 version of IH2 was to cleanup IH2. The intent of the Rev 8 release was to further that code cleanup along with incorporating PHP 5.3 compatibility. I am grateful for the efforts of the three gentlemen who volunteered their efforts to that end!:smile:

IH2 at the heart of it's code is really meant to ease the management of product images (particularly the management of additional product images), and to help improve page performance by optimizing the product images. Fancy image functions such as zooming are really just extra features. Nice to have features for sure, but IMO they are not "the reason" to use IH2.

Mal2809:

The zoom medium images DID work with the additional optional extras folder before it was removed for the last update.

I liked the zoom medium images behaviour, whether it worked with lightbox is another thing, i did not have lightbox installed but on it's own it worked just fine and i tested it on all the main browsers.

It's a shame zoom medium images has not been worked on and enabled as the ability to hover over the medium sized image on the page without clicking was in my opinion a very useful feature.

So while you are half right about medium image zoom i can say there was an option and it was available at one point, yes i know you and Ckosloff didn't like it thus removed it but it was a working option at one point.

Is there a reason Medium image zoom does not work or cannot be made to work. ?

28 Jun 2010, 2:16 PM
#5316
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

ckosloff:

Anybody can take open source and concoct an ugly kludge.

Yes... why not...

do you have a problem with someone taking your open source code and playing with it to suit their needs... so long as it is well documented on what it does, doesn’t do and what it breaks/doesn’t break etc, and that decision should be taken by the ppl who authorise mods for download.

If you do have that problem, why allow it to be open source?

id say 70% of the mods on this site are ugly broken mods...

I personally used to think IH2 was great, until my host upgraded to php5.3 and watermarks stopped working.. i got sick of waiting for an update so paid for image mod based on IH2. does everything IH2 does but slightly better, i can add multiple images directly from the product listing page without having to click around the admin to add multiple images.. Etc...

my point being, IH2’s beauty of code is subjective and you have no right to tell someone what they can and cannot do with open code… if he wants to creat a fork of IH2.. Let him.. What difference does it make to you, if my memory is right, I seem to remember you semi-jumping ship to join/start a ZC fork.

Each to their own... let him do what he wants without you chirping on

28 Jun 2010, 2:19 PM
#5317
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

ckosloff:

BTW, Diva, in the jscript_imagehover.js be sure to include Nigel's correction on lines 87 & 88, 2000 px should be a negative value -2000.Yes sir!:smile: The latest version of Nigel's script is what's on my test site.. Made the change last week when Nigel posted the change..

28 Jun 2010, 5:31 PM
#5318
bhejr avatar

bhejr

New Zenner

Join Date:
May 2006
Location:
Georgetown, TX
Posts:
26
Plugin Contributions:
0

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

Just a quick note to Diva, CKoslof and all others working on the IH2 mod to say thanks for working on this and I appreciate the time you are taking to do this in your 'spare' time. I am redesigning my site for 139 and am patiently awaiting the final IH2 r8 package to finish it off. You guys are awesome!

28 Jun 2010, 5:44 PM
#5319
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

Thanks Diva for clarification.
Regarding this new zoom nonsense:
You do not need IH2 just to zoom on images, this is a very simple Javascript effect accomplished with the onmouseover event handler.
In fact, I have seen this contrib called "stupid" because the brilliant poster could achieve the zoom effect without it.
Congratulations, but, as Diva pointed out, this is the least important thing about IH2.
Beginners almost always stumble on adding additional images to products, IH2 makes this point-and-click, can organize images in sub-cats, is compatible with mass upload utilities, and, you can have any gallery mod installed and uninstalled without altering IH2 core files.
IH2 is a codebase that allows for installation of different effects, the fact that it does not zoom on product images is because that is the programming hook for other contribs.
Finally, yes, you can zoom on product images all you want.
You can also dive head on in a sea of trouble if you would, for all I care.
I repeat my plea, please take your discredited defense of that zoom effect elsewhere, IH2 does not need your brilliant innovations.
Oh, yes, I did not semi-jump ship, I jumped away completely, the only reason I post here is because I still feel responsible for this mod.
It's called ethics.

28 Jun 2010, 9:21 PM
#5320
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

ckosloff:

Thanks Diva for clarification..No worries.. Just finished the updated readme, and zipped up the updated files... All ready to pull the trigger on this!!:clap: