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

Results 981 to 1,000 of 7,094
17 Mar 2007, 8:58 PM
#981
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

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

Ryk:

Nice looking site - shame you've gone to extreme lengths to remove all references to ZenCart.

He missed the "zenid=" in the URL... SHHHHhhhhhhhh !

Nice and clean looking site indeed.

17 Mar 2007, 10:10 PM
#982
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

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

Thanks, jettrue! Bravo! :thumbsup: > jettrue:

Try adding this:
$alt = str_replace("'", '', $alt);

right after this:
$alt = str_replace('"', '"', $alt);

in includes/classes/bmz_image_handler.class.php

18 Mar 2007, 11:59 AM
#983
hdonald avatar

hdonald

New Zenner

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

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

jettrue:

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):

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 (!($_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.



Thank you, thank you, thank you.  I must have missed one of those pesky '}'  It works like a charm now!
Heather
18 Mar 2007, 4:18 PM
#984
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

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

I have IH2 installed on both of my sites. Site 1 is fine and dandy, works well and settings are good. I mirrored those settings in Site 2 and everything seems OK but when I hover over the little x in the corner of the small photo, a medium photo does not appear. Both sites are running 1.3.6. Site 2 is built using the Apple Zen Template.

Any idea what I'm missing? The site in question is PittiVintage

Thanks!

Tim

18 Mar 2007, 8:41 PM
#985
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

MeltDown:

I have IH2 installed on both of my sites. Site 1 is fine and dandy, works well and settings are good. I mirrored those settings in Site 2 and everything seems OK but when I hover over the little x in the corner of the small photo, a medium photo does not appear. Both sites are running 1.3.6. Site 2 is built using the Apple Zen Template.

Any idea what I'm missing? The site in question is PittiVintage

Thanks!

Tim

You don't have everything uploaded. WHen I look at your source, I don't see these two referenced:

<link rel="stylesheet" type="text/css" href="includes/templates/YOUR_TEMPLATE/css/style_imagehover.css" /> <script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js"></script>
18 Mar 2007, 9:10 PM
#986
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

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

MeltDown:

...but when I hover over the little x in the corner of the small photo, a medium photo does not appear....

I have the exact same issue on a 1.3.7 and the fancy hover has never worked :no:

18 Mar 2007, 9:15 PM
#987
virtualahmad avatar

virtualahmad

Zen Follower

Join Date:
Jan 2006
Location:
Toronto, Ontario, Canada
Posts:
179
Plugin Contributions:
0

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

jettrue:

You don't have everything uploaded.

Damn... i was missing the jscript... works like a supehero now.

Thank you. :smile:

19 Mar 2007, 5:47 AM
#988
funkey avatar

funkey

New Zenner

Join Date:
Jul 2005
Posts:
85
Plugin Contributions:
0

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

Shot in the dark...

Do you have the Administration Profiles mod installed by any chance?

If so -- you need to allow the image handler to have permission to run.

If it's not that, your server hosting may not give you access to use the ImageMagick binary on their servers -- you could try changing IH2 to use the GD library and see if that works.

alex2310:

more details for the above message... (sorry!)

I installed Image Handler 2 on Zen Card 1.3.7
PHP safe_mode = OFF
Permissions
/admin = 755
/images and all subdirectories = 777
/bmz_cache = 755
/admin/images = 755
image_handler.php = 644 (i try with 744, 755 but the same error - see bellow). When i try with 777 i get fatal error in image handler!

My problem:
Image Handler seems to work fine. Everything is good until i try to add more pictures in a product (via admin/tools/image handler 2)
I see categories, i select product, i am going to add pic (new file).
I select the image file but when i click to save i get the message:

You don't have permission to access /admin/image_handler.php on this server.

Why i don't have permission? image_handler.php works until i click to save new pictures...
Please help! I am stuck...

19 Mar 2007, 6:20 AM
#989
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

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

jettrue:

You don't have everything uploaded. WHen I look at your source, I don't see these two referenced:

<link rel="stylesheet" type="text/css" href="includes/templates/YOUR_TEMPLATE/css/style_imagehover.css" /> <script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js"></script>

You're a champ, Jade! When I decided to switch to Apple Zen, I had already installed IH2 into my original template. Afterwards I neglected to transfer those two files into Apple. Thanks!!

19 Mar 2007, 6:34 AM
#990
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

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

Question concerning the category images: (For example the images in "Featured Products" & "New Products For March")

In my BeadedLily site those images do not have the little "x" in the corner, which is preferred. However, in my PittiVintage site they do. The settings in admin/images seem to be identical. Where would I make the change to eliminate the "x"?

Thanks - Tim

19 Mar 2007, 9:22 PM
#991
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

MeltDown:

Question concerning the category images: (For example the images in "Featured Products" & "New Products For March")

In my BeadedLily site those images do not have the little "x" in the corner, which is preferred. However, in my PittiVintage site they do. The settings in admin/images seem to be identical. Where would I make the change to eliminate the "x"?

Thanks - Tim

Thats under "Configuration", "Images", its the "hotzone" settings.

20 Mar 2007, 6:07 AM
#992
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

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

jettrue:

Thats under "Configuration", "Images", its the "hotzone" settings.

Thanks Jade - However, my question is: Why do my category heading images in PittiVintage have the hotzone "x"? In BeadedLily those same images do not and I would prefer that they do not. The settings in admin/images seem to be identical for both sites. :blink:

20 Mar 2007, 7:55 AM
#993
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

Okay, after reading 81 pages with no eminent solution I thought I'd post my problem.

We used to have IH2 on a different host and it worked flawlessly. I have since moved to another host and now IH2 doesn't work.

You can see here at http://www.clevershoppers.com IH looks like it's creating images because if you click on properties it will show you the image location and filename. However, when I login to the server there is absolutely zero file created in any of the various folders in bmz_cache.

I have set permission to 777 on bmz_cache and all the sub-folders
I have clear cache and uninstall and reinstall IH2 from the admin side.

It appears that the script is doing everything but actually generating the image.

I should add that I also edited the config file to use ImageMagic.

Any help in troubleshooting this is greatly appreciated.

Thanks!

PS. I use add that IH is now acting as a user NOBODY when it creates folder which is different than the way it behaved on old host.

20 Mar 2007, 8:07 AM
#994
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

Also does IH2 need any of this PHP functions that are disabled? ```
passthru,exec,dl,proc_open,proc_close,popen,shell_exec,system

20 Mar 2007, 2:40 PM
#995
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

MeltDown:

Thanks Jade - However, my question is: Why do my category heading images in PittiVintage have the hotzone "x"? In BeadedLily those same images do not and I would prefer that they do not. The settings in admin/images seem to be identical for both sites. :blink:
Hmmm... are you sure the settings are perfectly identical? I'm not sure what the difference could be, but I see that the image sizes for the category images aren't the same on both sites?

I'm confuzzled, as I have similar issues. On this page of this site:

http://www.zencart137.jadetrue.com/testing-2-c-2.html

The subcategory image does not have the hover function. Which is actually the way I'd like it to work, because there's no need in my opinion to enlarge them.

However, on this other site I'm working on:
http://www.jmb.jadetrue.com/potty-time-c-1.html

They do!

AHA!

Try changing your subcategory image height on Pitti Vintage from 100 to 101, and see what happens?

When I changed my height to an odd number, it started working just fine. It looks some sort of bug, but one that works to my advantage.

It looks like on beaded lily, you have a width defined rather than a height, and perhaps that creates the bug as well? Or perhaps the bug is IH2 controlling category images in the first place.

20 Mar 2007, 3:24 PM
#996
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

O.k. I've read all 102 pages in this thread to no avail. I've got an issue that I haven't saw anywhere about IH2. In FF, it works like a charm. But, in IE, if I hover over the top half of the image, everything is great. But, if I hover over the bottom half of the image, I get no pop-up image, and I get an error. Any ideas?

20 Mar 2007, 3:25 PM
#997
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

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

Try changing your subcategory image height on Pitti Vintage from 100 to 101, and see what happens?

Genius! Changing it to 101 did the trick! How did you even think of that?!

Thanks! :thumbsup:

20 Mar 2007, 3:28 PM
#998
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

Get Em Fast:

O.k. I've read all 102 pages in this thread to no avail. I've got an issue that I haven't saw anywhere about IH2. In FF, it works like a charm. But, in IE, if I hover over the top half of the image, everything is great. But, if I hover over the bottom half of the image, I get no pop-up image, and I get an error. Any ideas?

Link please?

20 Mar 2007, 3:31 PM
#999
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

MeltDown:

Genius! Changing it to 101 did the trick! How did you even think of that?!

Thanks! :thumbsup:

Well, on my site that wasn't popping up when I hovered, the height was 57, on the site that was popping up, was 80. I changed the one that was popping to 57, and voila, it stopped popping, and when I changed the one that wasn't popping to 80, it started, so then I started experimenting with different values. Odd didn't, even did, LOL!

I love troubleshooting, LOL! (especially when I figure it out)

20 Mar 2007, 3:34 PM
#1000
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

Sorry Jade, it's only on a 'localhost' test site. I want to get all the bugs worked out before uploading to live site.