Re: Image Handler 2 Support
I downloaded this because I specifically want the mouseover effect - showing the larger images in the fancy hover when mousing over the thumbnails. I don't really need or want the ability to create thumbnails automatically etc.
I have it installed etc but when I click on a subcategory and the thumbnails for those products come up, nothing happens and there is no javascript happening in the HTML code for the page. Yes I have the javascript bits added into my custom template folder.
When I do "View Source" for the page, I have these in the head:
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/handmade/css/style_imagehover.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/handmade/css/stylesheet.css" />
<script type="text/javascript" src="includes/templates/handmade/jscript/jscript_imagehover.js"></script>
and yet there is no javascript being called in the thumbnail links.
Am I missing something here?
Any help much appreciated! :)
Jen
Re: Image Handler 2 Support
I had a same problem as yours like additional images weren't displayed. I did the mod below and the problem resolved. First thanks for that. But now in the category listing page or in the homepage --> featured products section onmouseover doesn't work. No pop-up display when the mouse over small images. Do you have a solution for this problem ?
Quote:
Originally Posted by
dandan
I've just found why the additional images were not displayed. Image Handler has an error in includes/classes/bmz_image_handler.class.php
Replace this 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();" ';
with this line:
return $parameters . 'style="position:relative" onmouseover="showtrail(' . "\'$products_image_zoom\',\'$alt\',$width,$height,$zoomwidth,$zoomheight,thi s," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
Additional images are now displayed.
Daniel
Re: Image Handler 2 Support
hey there.
i´ve a problem with the permissions. both folders "images" and "bmz_cache" have "777". when i upload a image with ih2 it sets the image "600" and i have to set it manually to "755" to get it displayed on the page.
Can anyone help me please?
Re: Image Handler 2 Support
Quote:
Originally Posted by
tasmania
I had a same problem as yours like additional images weren't displayed. I did the mod below and the
problem resolved. First thanks for that. But now in the category listing page or in the homepage --> featured products
section onmouseover doesn't work. No pop-up display when the mouse over small images. Do you have a solution for this problem
?
Actually yesterday i found the problem but my coding knowladge is not good enough to fix buggy codes. If anyone helps me
about fixing i'll be grateful.
The problem arise from added backslashes in the bmz_image_handler.class.php line 702.
Code:
onmouseover="showtrail (' . "\'$products_image_zoom\',\'$alt\',$width,$height
If i remove this backslashes all pages work fine (shows popup images on mouse over) except product_info_display. When the
backslashes are removed product_info_display.php doesn't ever shows additional images.
The code detail of two different pages are below:
product_info_display.php --> The Code with Backslashes - Work Fine
Code:
<script language="javascript" type="text/javascript"><!--
document.write('<a
href="javascript:popupWindow(\'http://localhost/yeni3/index.php?main_page=popup_image_additional&pID=187&pic=0&pr
oducts_image_large_additional=images/outwear_01.jpg\')"><img
src="bmz_cache/2/27f3969a344502c357df2741750239ad.image.78x80.jpg" alt=" " title=" " width="78" height="80" style="position:relative" onmouseover="showtrail(\'bmz_cache/7/7dddd9592ad5ce26631be343b2c9224d.image.270x273.jpg\',\'SportHilL Windshield Vest\',78,80, 270,273,this,0,0,78,80);" nmouseout="hidetrail();" /><br />büyüt</a>');
/index.php?main_page=index&cPath=54 (Category Listing Page) --> The Code with Backslashes - Doesn't Work Fine
Code:
<div class="dc main_cell_c1" ><br><a
href="http://localhost/yeni3/index.php?main_page=product_info&cPath=54&products_id=134"><img
src="bmz_cache/a/afe23b0e59406cf3795ed237bd9e331e.image.80x80.jpg" alt=" " title=" " width="80" height="80"
style="position:relative" onmouseover="showtrail('images//sss.jpg','Mens GORE-TEX Jacket',80,80, 110,110,this,0,0,80,80);"
onmouseout="hidetrail();" /></a></div>
Because of the document.write code in product_info_display.php there must be backslashes on the other side these backslashes must be removed in order to other listing pages work fine.
All the pages use the code in the bmz_image_handler.class.php (line: 702).
How can i fix the problem. I spent a full day to resolve but no success. Apologize for the long explanation.
Re: Image Handler 2 Support
Guys I'd like to REMOVE the image hover effect. How do I do that?:)
Re: Image Handler 2 Support
Quote:
Originally Posted by
jubei
Guys I'd like to REMOVE the image hover effect. How do I do that?:)
admin > configuration > images --- the various ZOOM options down in the IH section
Cannot add pics with Image Hanlder! Please help
I installed Image Handler 2 on Zen Card 1.3.7
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.
When i select the images and 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 fine until i save new pictures...
Please help! I am stuck...
Re: Image Handler 2 Support
You will need to set the file permissions on the images and bmz_cache directories to 777
More details for the above message
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...
Re: Image Handler 2 Support
I change permissions of bmz_cache to 777 (was 755) but i have the same problem...
(but thanks for the reply...)