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

Results 1,261 to 1,280 of 7,094
4 Jun 2007, 5:31 PM
#1261
ckosloff avatar

ckosloff

Totally Zenned

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

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

blag:

ckosloff

I think you have been mislead. The Attributes image upload and 'designation' puts the sttributes images in a differnt folder, and AFAIK Image handler doesn't wqork, but a guy called colinr has a add-in module that does exactly this and it's called: 'PopUp on Attribute Images' and you can get it from the zen cat downloads section here.
Hi,
Let's look at it philosophically.
I installed IH2 without a glitch and started playing with it late last night.
Looks like a great tool, but for the life of me couldn't find how to deal with attribute popups because it takes me to the same Admin page as before.
So, thank you very much for saving me lots of headaches and frustration.
But, I must also thank the poster who "misled" me into IH2 because I will use it for other purposes.
I aleady downloaded the contrib you suggested and will install it too, however I have a doubt: apparently this generates thumbnail images, I need to popup a larger image, which I can upload to the server previously.
Do you know where I can see this mod in action?
For your information, I have also been pointed here:
http://forum.zen-cart.com/showthread.php?t=60833
This mod seems to do the trick, I have seen it working and although it is not exactly what I need, seems to do the job pretty well.
Thank you all.

5 Jun 2007, 7:02 AM
#1262
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

ckosloff

I don't know where the PopUp on Attribute Images can be seen working, but I suspect if you contact the author here he may well advise you as to where it is in use, but don't tell him I suggested that you contact him, because he is working on a mod to allow me to use my existing thumbnails and large images, which it doesn't at present. (It uses the large image to generate the thumbnails)

I thought about the alternative that you have found, but it doesn't allow the thumbnail to have text, and the text is essential to me, so I can't tell you where it is in use!!

Now if you happen to find an add-in that allows me to use my own optimised thumbnails with my large images, but allows me to have text under the thumbnail (as attributes do in the default ZEN Cart set-up) please post your findings here.

5 Jun 2007, 7:27 AM
#1263
voisin avatar

voisin

New Zenner

Join Date:
Jun 2007
Posts:
2
Plugin Contributions:
0

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

hareslade:

Voisin ... the jscript file.. seem to have mislaidyour post here though..

Well I should have been hoovering my van out but I did this for u instead

Hareslade, thanks mate.
Fantastic, great fix. Worked like a charm. I am really pleased you posted that for downloading. Fan...bloody..tastic! oops

Your probably not the right person to ask.
While the hover/zoom works on Safari/Netscape/Firefox and now IE (thanks to you). For some reason it doesn't work from my site on Opera. While it will work from your site: http://www.consciousness-centre.co.uk/czc/index.php
Any reason/possibility as to why???? Or would it be just worthwhile reinstalling the IH2 module?

Again cheers

5 Jun 2007, 5:46 PM
#1264
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

blag:

ckosloff

I don't know where the PopUp on Attribute Images can be seen working, but I suspect if you contact the author here he may well advise you as to where it is in use, but don't tell him I suggested that you contact him, because he is working on a mod to allow me to use my existing thumbnails and large images, which it doesn't at present. (It uses the large image to generate the thumbnails)

I thought about the alternative that you have found, but it doesn't allow the thumbnail to have text, and the text is essential to me, so I can't tell you where it is in use!!

Now if you happen to find an add-in that allows me to use my own optimised thumbnails with my large images, but allows me to have text under the thumbnail (as attributes do in the default ZEN Cart set-up) please post your findings here.


Yo blag,
Your problems are solved!
This mod I directed you to, does what you need.
I already tested it on a test site and will upload it shortly to the live one I'm building.
It does print the option value under the thumbnail.
First, you upload the two files to your server, to the locations the author specifies in the thread.
Next, suppose your option name is Color and option value Black.
You create a medium size image and call it black_MED.jpg and upload it to your images/medium/attributes subfolder, which you create.
You upload via Attribute Manager your image swatch black.jpg, which is a thumbnail you created on the basis on your medium image, resizing it.
That's it!
Refresh page and you will see Click to Enlarge on top of your thumb and Black (your option value) underneath, the link to the larger image is created and launches in a new window.
I have selected 0 as the layout for this option (in Edit Layout), but if you change layout it might behave differently, haven't tested this for long yet.
This mod doesn't conflict with IH2 AFAIK, not sure about the thumbnail generator, when I had both scripts installed, some weird things were happening.
I will test further, and let you know my findings if you are interested.

6 Jun 2007, 7:32 AM
#1265
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

ckosloff:

Yo blag,
Your problems are solved!
This mod I directed you to, does what you need.
I already tested it on a test site and will upload it shortly to the live one I'm building.
It does print the option value under the thumbnail.
First, you upload the two files to your server, to the locations the author specifies in the thread.
Next, suppose your option name is Color and option value Black.
You create a medium size image and call it black_MED.jpg and upload it to your images/medium/attributes subfolder, which you create.
You upload via Attribute Manager your image swatch black.jpg, which is a thumbnail you created on the basis on your medium image, resizing it.
That's it!
Refresh page and you will see Click to Enlarge on top of your thumb and Black (your option value) underneath, the link to the larger image is created and launches in a new window.
I have selected 0 as the layout for this option (in Edit Layout), but if you change layout it might behave differently, haven't tested this for long yet.
This mod doesn't conflict with IH2 AFAIK, not sure about the thumbnail generator, when I had both scripts installed, some weird things were happening.
I will test further, and let you know my findings if you are interested.
ckosloff

If it hadn't been for your instructions I would never have got that mod (from thread 60833) to work, many thanks. (Actually, your instructions are just a little wrong, but I won't go into details here!)
I do however, have a problem with this mod. It requires that there is yet another folder for images - and I don't want to use my medium-sized images. I would like to be able to use my own large images from the standard Zen Cart folder i.e. images/large. Still it's very,very close. I might see if I can hack the code to get it to work the way I want it to!!

6 Jun 2007, 8:01 AM
#1266
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

ckosloff:

Yo blag,
Your problems are solved!
This mod I directed you to, does what you need.
I already tested it on a test site and will upload it shortly to the live one I'm building.
It does print the option value under the thumbnail.
First, you upload the two files to your server, to the locations the author specifies in the thread.
Next, suppose your option name is Color and option value Black.
You create a medium size image and call it black_MED.jpg and upload it to your images/medium/attributes subfolder, which you create.
You upload via Attribute Manager your image swatch black.jpg, which is a thumbnail you created on the basis on your medium image, resizing it.
That's it!
Refresh page and you will see Click to Enlarge on top of your thumb and Black (your option value) underneath, the link to the larger image is created and launches in a new window.
I have selected 0 as the layout for this option (in Edit Layout), but if you change layout it might behave differently, haven't tested this for long yet.
This mod doesn't conflict with IH2 AFAIK, not sure about the thumbnail generator, when I had both scripts installed, some weird things were happening.
I will test further, and let you know my findings if you are interested.
ckosloff

I got my hack to work on the first time of trying, so now I'm a happy bunny, because I don't have to have a 'duplicate' folder full of images: i can use the exiting large images. Fantastic!!

6 Jun 2007, 12:11 PM
#1267
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Desprete need of help! I cant figure out what to do about this error.

Makes the whole Image Handler not to work.

Warning: strstr() [function.strstr]: Empty delimiter. in /home/wwwbuyt/public_html/includes/classes/bmz_image_handler.class.php on line 126

Warning: strstr() [function.strstr]: Empty delimiter. in /home/wwwbuyt/public_html/includes/classes/bmz_image_handler.class.php on line 128

function determine_image_sizetype() {
global $ihConf;

  if (strstr($this->src, $ihConf['large']['suffix'])) {	
  $this->sizetype = 'large';
  } elseif (strstr($this->src, $ihConf['medium']['suffix'])) {
  $this->sizetype = 'medium';
  } elseif ((intval($this->width) == intval($ihConf['small']['width'])) && (intval($this->height) == intval($ihConf['small']['height']))) {
  	$this->sizetype = 'small';
  } else
  $this->sizetype = 'generic';

}

6 Jun 2007, 1:08 PM
#1268
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

Yo blag,
Glad it worked, but please don't be cryptic, if there is something wrong with my instructions I need to know it, so please do go into detail.
Also, please let the world know what you did to make your LRG images work, in my humble opinion no hack is needed, just to load your LRG images into images/large/attributes. MED was just an example, you can do same with LRG.
I don't quite get what you meant by duplicate folders, only one images folder is needed for this, with a couple subfolders that you create.
Looking forward to your reply.

7 Jun 2007, 10:47 AM
#1269
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

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

I am using Zen Cart 1.2.6d.
Which is the latest version of Image Handler that I can use?
I downloaded Image Handler_1.0beta2 from breakmyzencart.
Is this the latest and the most suitable version available.
Thanks for your help.

8 Jun 2007, 9:17 AM
#1270
webworkshop avatar

webworkshop

New Zenner

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

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

I'm having a problem with IH2 on some of my ZC 1.3.7 installations (which is just the best thing since sliced bread, by the way).

Occasionally, a page display will come to a grinding halt when trying to put together the product listing. It will not display anything else after, as the footer does not appear, so something is making everything just stop dead.

It seems to be in includes/modules/template_name/product_listing.php

The page will render fine up until this part when it just stops dead - no message, no anything.

I've found that sometimes putting in a smaller original image for IH2 to create the others from fixes it, but I can't figure out why that should be, and not being a coder I'm really in the dark.

I've found that removing the image altogether has enabled the product listing to work ok...until this morning, when I've found that even doing that doesn't help.

The reason I'm pretty sure that it's IH2 causing the problem is that I have another ZC installation which does not use IH2 and it works fine, albeit that it's a different version (1.3.0.1).

For info, the ones I'm having problems with run on:

IH 2.0
PHP Version 4.3.10
Apache 1.3.27
MySQL 3.23.56
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Anyone got any ideas as to what's going on?

8 Jun 2007, 3:11 PM
#1271
kruna avatar

kruna

Zen Follower

Join Date:
Sep 2006
Posts:
405
Plugin Contributions:
0

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

Quote:
Originally Posted by hdonald [IMG]http://www.zen-cart.com/forum/images/ZCgreen/buttons/viewpost.gif[/IMG]
*I'm having an issue with additional images not showing up. I have tried the fix that was posted earlier, which does correct the additional images not showing up, but then the fancy hover doesn't work in Product listing. I tried the fix from jettrue too but then I get a parse error of unexpected end.....

I know nothing about PHP so after going cross eyed yesterday reading I finally gave up. Can anyone help with this issue?

Heather*

You may have copied and pasted incorrectly. Try my code adjustment again, and be careful to REPLACE the code correctly. Replace ONLY line 701 (leave the '}' that is on the following line):

Code:
return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
with this (be sure to copy it all):
Code:
if (!($_GET['main_page']==FILENAME_PRODUCT_INFO)) {
return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
} else {
return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
}
IF you still get the error, reply here, and let me see your site with the error.

Hi all...I did replace the code, but still just get to see only one image, also tried to see if I have missed } or else, but without success...I also tried to upload the 'old´way, like when inserting new products, first insert image xxx_02, than xxx_01 etc, but also doesnt show up more than one image...once at least it worked the 'old´way, there are some products showing two images...

Any help, please?

Thanks a lot in advanced.

Regards,
kruna

9 Jun 2007, 10:12 AM
#1272
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Warning: strstr() [function.strstr]: Empty delimiter. in /home/wwwbuyt/public_html/includes/classes/bmz_image_handler.class.php on line 126

Warning: strstr() [function.strstr]: Empty delimiter. in /home/wwwbuyt/public_html/includes/classes/bmz_image_handler.class.php on line 128

I still can figure this out.... Fresh Install. Updated database. Only mod was the SQL Backup and new version of IH2. What do I do about an Empty Delimiter???
Fill it somehow????

10 Jun 2007, 2:05 AM
#1273
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Ok.

Since no one can answer my question.
Let me ask this.

Is there an Alternate to using IH2????

10 Jun 2007, 5:07 AM
#1274
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

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

Kruna:

Hi all...I did replace the code, but still just get to see only one image, also tried to see if I have missed } or else, but without success...I also tried to upload the 'old´way, like when inserting new products, first insert image xxx_02, than xxx_01 etc, but also doesnt show up more than one image...once at least it worked the 'old´way, there are some products showing two images...

Any help, please?

Thanks a lot in advanced.

Regards,
kruna

I have also tried jettrue's fix to no avail. I did get a parse error the first go round, but that must have been human error because I'm no longer receiving that after re-editting, downloading fresh copy of IH2 and editting the file from there, copying the code from 2 separate posts... you name it I have tried it, still only 1 image :wacko: I have cleared my cache, switched to IE, which I rarely use, checked multiple products, none have additional images. Configuration->Images->Product Info - Number of Additional Images per Row is set to 3.

BTW, I can see the additional images in IH2, but nothing shows in the catalog.

Any thoughts?
Audra

10 Jun 2007, 10:15 AM
#1275
mrmeech avatar

mrmeech

Zen Follower

Join Date:
Nov 2006
Location:
New York City
Posts:
248
Plugin Contributions:
0

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

Bottom line: my watermark just will. not. show up. All the files are in place correctly, and it is enabled in the admin. And IH2 works perfectly, except it won't plop the watermark on the images!! Some help would be really appreciated.. Thanks!

10 Jun 2007, 6:00 PM
#1276
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

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

milobloom:

Ok.

Since no one can answer my question.
Let me ask this.

Is there an Alternate to using IH2????

I notice line 126 and 128 of bmz_image_hander.class.php deal with large and medium sizing. Check your image heights/widths, and make sure they are not empty?

ETA: Also make sure you have a suffix in the suffix boxes:

Product Info - Image Medium Suffix: _MED
Product Info - Image Large Suffix: _LRG

10 Jun 2007, 6:03 PM
#1277
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

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

mrmeech:

Bottom line: my watermark just will. not. show up. All the files are in place correctly, and it is enabled in the admin. And IH2 works perfectly, except it won't plop the watermark on the images!! Some help would be really appreciated.. Thanks!

Can I see a link?

10 Jun 2007, 6:11 PM
#1278
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

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

mrmeech:

Bottom line: my watermark just will. not. show up. All the files are in place correctly, and it is enabled in the admin. And IH2 works perfectly, except it won't plop the watermark on the images!! Some help would be really appreciated.. Thanks!

So, you DO have in the "images/medium" folder, a watermark named "watermark_MED.png", and in the "images/large" folder, a watermark named "watermark_LRG.png" ?...............Just checking.

10 Jun 2007, 6:41 PM
#1279
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

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

audradh:

I have also tried jettrue's fix to no avail. I did get a parse error the first go round, but that must have been human error because I'm no longer receiving that after re-editting, downloading fresh copy of IH2 and editting the file from there, copying the code from 2 separate posts... you name it I have tried it, still only 1 image :wacko: I have cleared my cache, switched to IE, which I rarely use, checked multiple products, none have additional images. Configuration->Images->Product Info - Number of Additional Images per Row is set to 3.

BTW, I can see the additional images in IH2, but nothing shows in the catalog.

Any thoughts?
Audra

I got worried cause I never tested more than one additional image with my code fix :blush:, but its working for me. http://www.zencart137.jadetrue.com/index.php?main_page=product_info&products_id=8

The images were uploaded using the IH tool in the admin.

I'm attaching my classes/bmz_image_handler.php, just in cause there was an issue with your edit.

Also make sure you've uploaded the new includes/modules/additional_images.php that comes with this mod.

11 Jun 2007, 2:53 AM
#1280
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

audradh:

I have also tried jettrue's fix to no avail. I did get a parse error the first go round, but that must have been human error because I'm no longer receiving that after re-editting, downloading fresh copy of IH2 and editting the file from there, copying the code from 2 separate posts... you name it I have tried it, still only 1 image :wacko: I have cleared my cache, switched to IE, which I rarely use, checked multiple products, none have additional images. Configuration->Images->Product Info - Number of Additional Images per Row is set to 3.

BTW, I can see the additional images in IH2, but nothing shows in the catalog.

Any thoughts?
Audra
Check this:
Catalog --> Product Types --> "your product type" --> Edit layout --> Show Product Additional Images = 1.
Should fix your issue.