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

Results 3,421 to 3,440 of 7,094
16 Jan 2009, 3:07 AM
#3421
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

There is an error in includes/classes/bmz_image_handler.class.php which may stripe out all your parameters setting when you use zen_image

Open that file, look for

function get_additional_parameters($alt, $width, $height, $parameters) {

replace that whole function by

function get_additional_parameters($alt, $width, $height, $parameters) {
        global $ihConf;
    if ($this->sizetype == 'small') {
      if ($ihConf[$this->sizetype]['zoom']) {
        if ($this->zoom['file'] == '' || !$ihConf[$this->sizetype]['hotzone']) {
          // if no zoom image, the whole image triggers the popup
          $this->zoom['startx'] = 0;
          $this->zoom['starty'] = 0;
          $this->zoom['width'] = $width;
          $this->zoom['height'] = $height;
        }
        //escape possible quotes if they're not already escapped
        $alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
        $alt = str_replace('"', '"', $alt);
        // strip potential suffixes just to be sure
        $src = $this->strip_sizetype_suffix($this->src);
        // define zoom sizetype
        $zoom_sizetype = ($this->sizetype=='small')?'medium':'large';
        // additional zoom functionality
        $products_image_directory = substr($src, strlen($ihConf['dir']['images']), strrpos($src, '/') - strlen($ihConf['dir']['images']) + 1);
        $products_image_filename = substr($src, strrpos($src, '/'), strlen ($src) - strrpos ($src, '/') - strlen ($this->extension));
        $products_image_zoom = $ihConf['dir']['images'] . $zoom_sizetype . '/' . $products_image_directory . $products_image_filename . $ihConf[$zoom_sizetype]['suffix'] . $this->extension;
        $ih_zoom_image = new ih_image($products_image_zoom, $ihConf[$zoom_sizetype]['width'], $ihConf[$zoom_sizetype]['height']);
        $products_image_zoom = $ih_zoom_image->get_local();
        list($zoomwidth, $zoomheight) = @getimagesize($ihConf['dir']['docroot'] . $products_image_zoom);
        // we should parse old parameters here and possibly merge some inc case they're duplicate
        $parameters .= ($parameters != '') ? ' ' : '';
        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();" ';
      }
       return $parameters;
    }
    return $parameters;
    }
16 Jan 2009, 7:01 PM
#3422
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

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

What is the best way to uninstall IH? I have it installed in a ZC 1.3.8a cart and there are some mod conflicts I want to check, but to do so I have to uninstall IH...

I am looking for the best/safest way.

thanks.

16 Jan 2009, 9:20 PM
#3423
camargotobon avatar

camargotobon

New Zenner

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

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

HI
I have zen cart 1.3.8a working OK till now. I installed IH2 and i was able to resolve some issues (mouse hover and zoom on images specifically) .
Just go to your ADMIN menu- tools-imagehandler- (choose admin on its menu) remove IH. there is no other way to uninstall it. Don`t erase files on server.
I am thinking about your problem may be other Add ons because my website works without conflicts
check it out
https://www.caliventas.com

17 Jan 2009, 2:05 PM
#3424
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

yellow1912:

There is an error in includes/classes/bmz_image_handler.class.php which may stripe out all your parameters setting when you use zen_image...
I replaced function with this one and it blacked out my site.
Came back when going back to original.
yellow?

17 Jan 2009, 4:06 PM
#3425
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

ckosloff:

I replaced function with this one and it blacked out my site.
Came back when going back to original.
yellow?
When you replace it, note that there is a close bracket at the end (for the class) you must not take out. I suspect you took it out accidentally.

17 Jan 2009, 4:58 PM
#3426
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

yellow1912:

When you replace it, note that there is a close bracket at the end (for the class) you must not take out. I suspect you took it out accidentally.
No, did not, but now I have another big problem.
I also loaded jscript_imagehover from tophand.
Replaced both files from originals but no images load.
Cleared bmz_cache to no avail.
Cannot figure out what is going on.
Restored from previous backup and same thing.
Updated wamp server to latest version, no joy.
Please help.

17 Jan 2009, 5:37 PM
#3427
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

Disregard, I do have site when restoring from backup.
It's only that I am doing a major overhaul in test site: adding products, manufacturers, categories, etc.
This reorganization includes reorganizing image location and redong all old products, so some images don't show.
Sorry about pushing the panic button.

17 Jan 2009, 5:38 PM
#3428
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

Will test function again and report here, but remember: I don't type, I'm lazy.
Copy and paste is my way.

18 Jan 2009, 3:08 AM
#3429
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

OK, yellow, got it to work.
You were right, the error had to do with closing brackets.
Actually there was one too many.
Since this function is at the end of the file, why not replace the function to the end of the page and then add a bracket to close the whole thing, or simply add a line with a closing bracket to the function and then replace the whole end?
Please correct if I'm wrong.

18 Jan 2009, 3:12 AM
#3430
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

Yes, weh you copy and paste the code I posted you have to leave the closing bracket of the class there.

This bug has been driving me crazy, because i would pass parameters into zen_image and it will print out nothing at all.

19 Jan 2009, 6:47 AM
#3431
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

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

Could someone point me to a thread on positioning the popup/hover box?

I'm trying to position the image so that it stays within view - currently the mouse is positioned (most of the time) at the upper left hand corner of the image, which throws part of the image out of view on the lower-page products.

Is this the right place to be asking a question about IH2 ? 245 pages is a lot of thread, and I couldn't find the answer I was looking for in the posts, but I'm sure it's there...somewhere :)

Matt

19 Jan 2009, 6:52 AM
#3432
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

kettlewell:

Could someone point me to a thread on positioning the popup/hover box?

I'm trying to position the image so that it stays within view - currently the mouse is positioned (most of the time) at the upper left hand corner of the image, which throws part of the image out of view on the lower-page products.

Is this the right place to be asking a question about IH2 ? 245 pages is a lot of thread, and I couldn't find the answer I was looking for in the posts, but I'm sure it's there...somewhere :)

Matt

A link helps us help you.
Also have you double check that you uploaded all the IH files?

19 Jan 2009, 7:23 AM
#3433
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

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

Hi all,

I think i have asked this question but i dont think i got a response....

Basically im wanting to remove the pop up alt text that displays the product name and not the one thats on the hover image.....

I noticed that it covers part of the image when you hover on the image so im wanting to get rid of it.

Thanks

19 Jan 2009, 7:30 AM
#3434
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

gee38l:

Hi all,

I think i have asked this question but i dont think i got a response....

Basically im wanting to remove the pop up alt text that displays the product name and not the one thats on the hover image.....

I noticed that it covers part of the image when you hover on the image so im wanting to get rid of it.

Thanks

That part has nothing to do with IH or Zen Cart.
It is built into the web browser.

19 Jan 2009, 7:33 AM
#3435
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

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

tophand:

A link helps us help you.
Also have you double check that you uploaded all the IH files?

Link: (Change ssss to a 4-letter word that rhymes with lexy - filtered word)
Disclaimer: Lingerie Site.

www.be-SSSS-today.com

I have all the files uploaded and working, but the hover is acting differently from how I want it to... wait - before I say that all the files are there, you should verify for me :)

Just looking to change the positioning a bit - I gather that this isn't in the CSS?

Thanks

Matt

19 Jan 2009, 8:40 AM
#3436
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

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

kettlewell:

Link: (Change ssss to a 4-letter word that rhymes with lexy - filtered word)
Disclaimer: Lingerie Site.

www.be-SSSS-today.com

I have all the files uploaded and working, but the hover is acting differently from how I want it to... wait - before I say that all the files are there, you should verify for me :)

Just looking to change the positioning a bit - I gather that this isn't in the CSS?

Thanks

Matt

Make changes to jscript_imagehover.js code.
Not sure where but maybe start here.

var offsetfrommouse=[10,10]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
21 Jan 2009, 5:53 PM
#3437
sparklefish avatar

sparklefish

New Zenner

Join Date:
Oct 2006
Location:
Scotland
Posts:
53
Plugin Contributions:
0

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

Having problems getting IH2 to work on my live server (works fine on my PC).

I add a new product to the site and upload a large picture into /images. BUT the images are not being generated in bmz_cache. Instead, my old folders images/large images/medium etc are being used and I thus I get no product details image (ie MED) and no enlarged image (ie LRG). My product listing image is just a scaled down version of the image I have uploaded.

IH menu items are appearing in Admin fine.

I've checked that all files have been copied over correctly.
GD installed on server
IH2 switched on in admin
bmz_cache permissions same as image folder (755) - still doesn't work if you switch to 777.

Site here

Any ideas pleeeze?

22 Jan 2009, 11:11 AM
#3438
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

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

Heya!

I've been using IH2 for years, and I must say I love it.
Today i thought that I should go ahead and try the watermark feature and so I did.
I enabled watermark on ALL images but decided after viewing the site to only have it applied to large images.

Now, that's where my problems started.
On random products all i have is the large image, the small and medium ones are missing.
Clearing the IH cache doesn't help. :cry:

Anyone who had this problem and where able to solve it?
Would removing IH2 from the database and re-install it solve this issue? Or would it just break my cart even more?

I've tried searvhing in this thread without luck (phrasing issues?).
And for obvious reasons I haven't read through this MAJOR thread.

22 Jan 2009, 2:37 PM
#3439
svanis avatar

svanis

Zen Follower

Join Date:
May 2005
Location:
Sweden
Posts:
145
Plugin Contributions:
0

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

Just an update..
Removing and reinstalling IH in database solved my issue as it seems.. :clap: