If this is your first visit, check our documentation. To post, register or login.
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

Started by timkroeger on 17 May 2006, 11:27 AM · Views: 2,513,738

Results 361 to 380 of 7,094
16 Sep 2006, 6:01 PM
#361
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

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

Hi Getyourgames,

Thanks for the quick reply. I'm hoping you can help me! I made the edit on line 124 and changed this:

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.clientY - docheight - truebody().scrollTop));

to this:

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));

Unfortunately, I'm still getting the error :(

Cheers,

Colin

16 Sep 2006, 6:08 PM
#362
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

Radish:

Hi Getyourgames,

Thanks for the quick reply. I'm hoping you can help me! I made the edit on line 124 and changed this:

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.clientY - docheight - truebody().scrollTop));

to this:

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));

Unfortunately, I'm still getting the error :(

Cheers,

Colin

Its not changed..

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));

needs to be

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));

Hope that helps!

Also just letting everyone else know: I just submitted an update to Image Handler to the downloads section that includes these fixes. I take no credit for the fixes themselves, only for applying them :). Hope it gets approved soon.

16 Sep 2006, 6:11 PM
#363
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

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

Getyourgames,

OH HELL YES!!! Thanks so much! I can't believe I was reading that wrong the entire time.

Cheers,

Colin

16 Sep 2006, 6:26 PM
#364
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

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

Radish:

Getyourgames,

OH HELL YES!!! Thanks so much! I can't believe I was reading that wrong the entire time.

Cheers,

Colin

Not a problem :) Glad i could help

16 Sep 2006, 7:53 PM
#365
fricy avatar

fricy

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

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

I was too slow...

Cheers,
fricy

16 Sep 2006, 7:56 PM
#366
radish avatar

radish

New Zenner

Join Date:
Jan 2006
Posts:
67
Plugin Contributions:
0

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

Fricy,

Thanks for your help!

Cheers

16 Sep 2006, 8:15 PM
#367
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Yesterday I posted a question about watermarks not showing up on small images. Found out that it's essential to have both Small Image Width/Height and all Listing Width/Height under Configuration/Images set to the same dimensions.

Initially settings for Small Image Width/Height were set to 135/90 and the Listing Widths/Heights to 120/80. This way the images in the sideboxes were slightly bigger (more fitting) then the images showing in the Product/All/New/Featured listings.
The listing images were processed by IH (and thus added to the cache) but without the watermark.

Setting dimensions for both Small Image and Listing Images to 120/80 did the trick. All images are showing the watermark now.

Is this (equal dimensions) a requirement when using IH or is there a way around this?

16 Sep 2006, 8:33 PM
#368
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

During testing I tried to empty the cache using the Admin/Tools/Image Handler/Admin/Clear image cache option but that doesn't seem to work. I had to go in the bmz_cache directory and clear all files manually. Permissions are set to 777.

Is this a bug or my own doing?

16 Sep 2006, 9:17 PM
#369
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Like stevensmedia reported earlier I'm also having issues with the preview.

Seems to me that the code on lines 1012, 1018 and 1024 ( $XXXimage = new ih_image($ihConf['dir']['admin'] . 'images/ih-test.XXX') and the tablecode on lines 1041, 1048 and 1055 (src="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $images['XXXsource']?> within the image_handler.php create a double reference to the root directory of the site.

Tried editing/deleting pieces of code within these lines to dlete one of the references but with no result until now. My limited knowledge of PHP has brought me to a standstill.

Anyone who can help me out here?

16 Sep 2006, 10:48 PM
#370
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

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

Anyone know what is causing this error?

Warning: Variable passed to each() is not an array or object in /home/andi/public_html/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/andi/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/andi/public_html/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/andi/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/andi/public_html/includes/init_includes/init_templates.php on line 78

Only does in the 1.3.5 upgrade also using the latest version of this mod.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

16 Sep 2006, 11:05 PM
#371
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

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

this also shows up at the bottom of the page when its installed

1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY
in:
[select p.products_id, pd.products_name, products_date_available as date_expected from zen_products p, zen_products_description pd, zen_products_to_categories p2c, zen_categories c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '69' and p.products_date_available >=20060916 and p.products_id = pd.products_id and p.products_status = 1 and pd.language_id = '1' order by EXPECTED_PRODUCTS_FIELD EXPECTED_PRODUCTS_SORT limit MAX_DISPLAY_UPCOMING_PRODUCTS]

When this mod is uninstalled it acts normal as if it wasnt there.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

17 Sep 2006, 11:41 AM
#372
raimond avatar

raimond

Zen Follower

Join Date:
Jul 2004
Location:
The Netherlands, Wierden
Posts:
423
Plugin Contributions:
0

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

The preview in Image Handler doesn't give the right path.
The previews have the path:
png --> /webshop/webshop/admin/images/ih-test.png
jpg --> /webshop/webshop/admin/images/ih-test.jpg
gif --> /webshop/webshop/admin/images/ih-test.gif

It has to be for example /bmz_cache/3/33f0b2cdfebcc994659514b33f516d25.image.141x80.png

Why?

17 Sep 2006, 11:54 AM
#373
fricy avatar

fricy

New Zenner

Join Date:
May 2006
Posts:
17
Plugin Contributions:
0

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

raimond:

The preview in Image Handler doesn't give the right path.
The previews have the path:
png --> /webshop/webshop/admin/images/ih-test.png
jpg --> /webshop/webshop/admin/images/ih-test.jpg
gif --> /webshop/webshop/admin/images/ih-test.gif

It has to be for example /bmz_cache/3/33f0b2cdfebcc994659514b33f516d25.image.141x80.png

Why?

You may find the answer here:

http://forums.breakmyzencart.com/t68-couple-hints.html

Good luck,
f.

17 Sep 2006, 12:59 PM
#374
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Tried the patches for the previewarea as suggested in t68-couple-hints.html.

Path issues are solved with the patch. Only thing is that both original and product image in PNG format are still missing. The default PNG image is showing fine.

Added the (int)$quality/100 patch to the bmz_image_handler.class.php file (line 646 in ZC1.3.5) in an attempt to correct this.

Emptied cache (manually cause 'Clear image cache' still not working) and tried again. Same result, no original and product image showing for PNG. Cache does hold both images but these are corrupted.

What am I missing?

17 Sep 2006, 1:20 PM
#375
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

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

Found out what the problem is with the PNG files. Uploaded the patches made to the bmz_image_handler.class.php and image_handler.php files to my liveserver and they work just fine. Figure my testserver has an issue generating the PNG files where it works fine with GIF and JPG.

I'll tackle that later so disregard my previous question. Thanks fricy for pointing me in the right direction.

In the mean time there's still the issue with the 'Clear Image Cache' not working and the need for all Small Image and Listing dimensions to be the same (see my earlier postings).

Any pointers?

18 Sep 2006, 4:38 AM
#376
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

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

When I install this mod I get the following errors.

Warning: Division by zero in /home/cell/public_html/includes/classes/split_page_results.php on line 76

1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_DISPLAY_PRODUCTS_LISTING' at line 7
in:
[select p.products_quantity, p.products_id, p.products_type, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from cell_products_description pd, cell_products p left join cell_manufacturers m on p.manufacturers_id = m.manufacturers_id, cell_products_to_categories p2c left join cell_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '76' limit -0, MAX_DISPLAY_PRODUCTS_LISTING]

If I remove it from the database the site works normal.

Also get this at the top of the site

Warning: Variable passed to each() is not an array or object in /home/cell/public_html/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cell/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/cell/public_html/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /home/cell/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/cell/public_html/includes/init_includes/init_templates.php on line 78

I am using the newest vewrsion of this mod and also 1.3.5. I have tried everything to fix it but nothing seems to work.

Any ideas would be really appreciated.

Thanks in advance

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

19 Sep 2006, 4:37 PM
#377
purple_circle avatar

purple_circle

New Zenner

Join Date:
Oct 2005
Posts:
28
Plugin Contributions:
0

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

<?xml version="1.0"?> <?xml-rant type="text/rant"?>

rdf:RANT
<Resource rdf:whinge="main rant">

With all of the headaches that the line 126, line 124 problem is causing and with all of the updates to code that are spread around both this and the authors forum, why the hell aren't all of the fixes applied to the downloadable version? I just downloaded a copy (Sep 20 2006) expecting all of the problems that I had initially to be sorted out - BUT NO! All of the original code errors that I spent hours sorting out, referring back to and decyphering the suggestions in the forums were still there.

I happened to make a record of the changes that I made previously to remove the JavaScript errors in IE and fix the preview image error, so this time around it only took a few minutes.

Once all of the errors are removed, this is actually quite a good contribution. If the author spent more time on his code rather than begging on his own site as well as in the admin area of installed Zen Carts, maybe he would make life a lot easier for the rest of us. Then maybe, just maybe a few more people would actually donate to him.

</Resource> </rdf:RANT>
19 Sep 2006, 5:27 PM
#378
verdon avatar

verdon

Zen Follower

Join Date:
May 2004
Location:
Northern Ontario, Canada
Posts:
373
Plugin Contributions:
0

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

OK, I understand that that's a rant and must be taken with a grain of salt, but in all fairness to Tim, I think he has other things on the go too, like university. I have no idea why he's been so quiet lately, but I have been here long enough to know that when he can, Tim is a very helpful and prolific poster to these forums. You're right that this is a good module. It's the one 3rd-party mod that I find pretty much indispensable.

19 Sep 2006, 6:48 PM
#379
oceano avatar

oceano

New Zenner

Join Date:
Aug 2006
Posts:
50
Plugin Contributions:
0

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

Does anyone which files were updated in the new 9/16 IH release.
Could someone post a simple list of which files to update - ? I had just installed the 135 from scratch...

19 Sep 2006, 9:34 PM
#380
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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

purple-circle...rant or not, that's a completely unjustified attack on someone who has made massive contributions to ZenCart through his modules. He is not charging for his work, and indeed, his approach is no more begging than is that of the ZC team themselves.

So, while you're demanding this young student spends more time on his free contributions to Zencart rather than his studies, just how much have you donated to him as a thankyou for his work to date?

You are well out of order in your attitude.

And if you've got it fixed, why don't you offer an updated version to the ZenCart team for addition to the downloads site - especially as Tim seems to be otherwise engaged at the moment.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !