Zen Cart Logo
Forums / All Other Contributions/Addons / IH2 Pop up window

IH2 Pop up window

Locked

Views: 2,035

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Feb 2007, 11:08 PM
#1
kdgjevre avatar

kdgjevre

New Zenner

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

IH2 Pop up window

I have installed IH2, read the directions. I use a custom template. Everything is fine but how do you control the popup window. The window is poping up but there is no picture and I am confused on where you contol the pop up window.

thank you.

25 Feb 2007, 11:19 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: IH2 Pop up window

I have the same problem. I believe we just have to set the page dimensions, but I haven't figured out which page to change yet. Here's the IH2 site.

http://www.breakmyzencart.com/image-handler

26 Feb 2007, 12:01 AM
#3
kdgjevre avatar

kdgjevre

New Zenner

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

Re: IH2 Pop up window

Let me re-phrase that...how is the pop up window picture loaded? Not how to control the window. Where do you desiganate the pop up picture.

26 Feb 2007, 12:05 AM
#4
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: IH2 Pop up window

Guess what. The showcase site that's supposed to demo IH2 has the same problem.

I believe it's javascript that controls the popup. So somewhere in the imagehandler folder you should find some javascript with the page dimensions.

I'm going to search for it myself.

26 Feb 2007, 12:16 AM
#5
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: IH2 Pop up window

I think this is the code, but I'm not sure it's going to help much.

if (($this->zoom['file'] != '') && is_file($this->zoom['file'])) {
        // set zoom parameters
            list($this->zoom['width'], $this->zoom['height']) = @getimagesize($this->zoom['file']);
            list($this->zoom['startx'], $this->zoom['starty']) = $this->calculate_gravity($this->canvas['width'], $this->canvas['height'], $this->zoom['width'], $this->zoom['height'], $ihConf['zoom']['gravity']);
            //echo '(' . $this->zoom['startx'] . ', ' . $this->zoom['starty'] . ') ' . $this->zoom['width'] . 'x' . $this->zoom['height'] . '<br />';
        } else {
            $this->zoom['file'] = '';

it's in /includes/classes/bmz_image_handler.class.php line 176 thru 185

It looks like it takes the width and hight of the image file and attempts to open the file window at the same size. But obviously that isn't working.

I'll have to dig through my php books to figure this one out. But first I have to go out to the barn and fix a llama feeder, so hopefully a coder will pop in and solve the problem.

1 Mar 2007, 12:27 AM
#6
kdgjevre avatar

kdgjevre

New Zenner

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

Re: IH2 Pop up window

Thanks for getting back on this. I'm confused...does this mean that the download isnt working? If it's listed in the ZenCart Downloads I assumed...it worked.

I'm no PHP person so i'm stuck.
Been gone for a few days. Have you discovered anything new.

Here is my site... you can see what it is doing.

http://www.alldigitaldesigns.com/zencart/

when you roll over the pic a box pops up but no picture.

thanks