-
Re: Image Handler 2 Support
Any luck on my issue?
Quote:
Originally Posted by
joyjoy
Product Link:
http://www.luxury7star.com/shop/inde...products_id=30
Image Settings:
Title Value Action
Small Image Width 140
Small Image Height 125
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 140
Subcategory Image Height 125
Calculate Image Size true
Image Required false
Image - Shopping Cart Status 1
Image - Shopping Cart Width 50
Image - Shopping Cart Height 40
Category Icon Image Width - Product Info Pages 57
Category Icon Image Height - Product Info Pages 40
Top Subcategory Image Width 57
Top Subcategory Image Height 40
Product Info - Image Width 130
Product Info - Image Height 100
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 140
Image - Product Listing Height 125
Image - Product New Listing Width 140
Image - Product New Listing Height 125
Image - New Products Width 140
Image - New Products Height 125
Image - Featured Products Width 140
Image - Featured Products Height 125
Image - Product All Listing Width 140
Image - Product All Listing Height 125
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH watermark small images no
IH small image filetype no_change
IH zoom small images yes
IH small image background 255:255:255
IH small image compression quality 85
IH watermark medium images yes
IH medium image compression quality 85
IH watermark large images yes
IH large image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH large image filetype no_change
IH large image background 255:255:255
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity South
Thank you!!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
richphitzwell
Zen 1.3.9 h
Came across an issue and curious how to go about fixing.
when adding products of similar names such as
31001FRW
31001FR
the later one to be added image handler auto-populates the product with the first product images and if I remove the images from the second product it removes it from the first.
These are in two different categories and each consist of 4 images each but are different images.
As I am filling in thousands of products Im bound to run into this more and more often. Any help is deeply appreciated.
Not really an IH2 created issue rather this is how Zen Cart identifies/manages additional product images.. My guess is that based on the behavior you are describing you have product images with the similar names and Zen Cart is interpreting them as additional images for another product as per these Zen Cart FAQs:
Why am I seeing images for other products on my product pages?
How do I add multiple images to a product?
How do I add more than one image of a product? I want to have a main image and also one or two other images that show more parts of a particular product. How/where do I add additional images to a product page? Thanks!
IH2 is meant to ease the work required to setup images for your store.. It works WITH default Zen Cart functionality, it does not replace it.. Here's some additional FAQs which discuss how product images work in Zen Cart..
Image Preparation - How-to
My images are distorted/fuzzy/squished, help?
Check out these FAQs and see if they help clarify how Zen Cart works with product images..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
joyjoy
Any luck on my issue?
IH2 has been tested on all browsers and nigel did a LOT of hard work to ensure that the IH2 javascript is cross browser compatible.. What's going on with your site site now is probably a CSS layout issue, and not an IH2 issue.. Have you posted your question on the CSS/layout section of the forum??
-
Re: Image Handler 2 Support
Nope, I'll head over there now. Thank you!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Scott_C
Thanks for the kind words Diva. We certainly went to a lot of trouble with this site, even taking our own product photos in a lightbox.
My problem is fixed. i had to change the write permissions for the bmz-cache directory, plus all subdirectories and files.
Cheers,
Scott.
Cool!!!:bigups:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
finlander
I just tested both of those pages and the larger image opened for both of them. I'm not a great expert with IH, so I don't want to give you bad advice, but I would clear the IH cache and the browser cache for starters, though, as it seems to be something specific to your computer that might be causing one to not open for you.
Thanks for looking at the site but that not the problem at all. The second page should have 4 images,not just the one. Thanks again,but it looks like it will never work correctly.I guess you get what you pay for. $10 for first person to figure out this problem. Paypal waiting.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
bakaguyjean
I need help with IH2 as some of the catagories will show the extra images on my site but other will not. The picture upload without problems and I can see them in admin they just dont show up on the online catalog.
Any help would be great,Thank you
And if you look in the IH2 readme there is all kinds of helpful information to help your troubleshoot your site.. The USUAL reason for additional images not to show is that all of the images are not the same file format. If the main product image is a JPG, then the additional images must ALSO be JPGs too.. This is the only case I know of where IH2 will display the additional images as being there but the store will not display them.. (and I do include this info in the readme) A screenprint of what you see in IH2 would be helpful..
Quote:
Originally Posted by
bakaguyjean
Thanks for looking at the site but that not the problem at all. The second page should have 4 images,not just the one. Thanks again,but it looks like it will never work correctly.I guess you get what you pay for. $10 for first person to figure out this problem. Paypal waiting.
Not true.. IH2 works successfully for many people, and most problems are caused by incorrect installs or incorrect usage.. Suggest double checking your images as I suggested above..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
bakaguyjean
I need help with IH2 as some of the catagories will show the extra images on my site but other will not. The picture upload without problems and I can see them in admin they just dont show up on the online catalog.
Any help would be great,Thank you
Hi, when you say 'extra images' are you talking about 2nd and 3rd images for the product? Is the main product picture showing?
-
Re: Image Handler 2 Support
Yep.. he posted examples of where it works and where it doesn't:
http://www.zen-cart.com/forum/showpo...postcount=6195
Quote:
Originally Posted by
Scott_C
Hi, when you say 'extra images' are you talking about 2nd and 3rd images for the product? Is the main product picture showing?
-
Re: Image Handler 2 Support
Well the most obvious thing I can think of is the naming conventions..
For example, product image; F1_Chassis_Corally.jpg - additional images should be;
F1_Chassis_Corally_02.jpg
F1_Chassis_Corally_03.jpg
etc.
Also, the Fual Slimbox is a great mod that works just fine with IH2; http://www.zen-cart.com/index.php?ma...roducts_id=830 - The product photos would look great in a lightbox. (Just a thought!)
-
Re: Image Handler 2 Support
Not likely.. IH2 takes care of the image naming following Zen Carts requirements for additional product images naming conventions.. There is no work required by the shopowner to take advantage of this feature..
In fact a shopowner doesn't have to worry about this at all.. If they upload a main product image named flower.jpg, and three additional images named tulip.jpg, daisy.jpg, and rose.jpg, IH2 would correctly rename all the additional images to the proper naming convention required for them to be recognized as additional images by Zen Cart. So using my example, IH2 would rename tulip.jpg, daisy.jpg, and rose.jpg to flower_01.jpg, flower_02.jpg, and flower_03.jpg.
IH2 takes the name of the main product image and then appropriately names the additional product images so that they are linked to the correct product.
The MOST common reason for additional images to not appear on the product when they appear in the IH2 admin has EVERYTHING to do with using mixed image file fomats for the main and additional product images.. You cannot have a main product image be a JPG while the additional product images are another file format (say GIF or PNG for example)
So the way for this to work correctly is that you must make sure that the main product image and all additional images uploaded MUST be the same filetype.. (I do believe this is covered in the IH2 readme documentation..)
and by the way you cannot "fool" IH2 by simply changing the file extension of the additional images.. If the main product image is a JPG, then you must convert any additional images that are not the same format to the correct matching format.
Quote:
Originally Posted by
Scott_C
Well the most obvious thing I can think of is the naming conventions..
For example, product image; F1_Chassis_Corally.jpg - additional images should be;
F1_Chassis_Corally_02.jpg
F1_Chassis_Corally_03.jpg
etc.
Also, the Fual Slimbox is a great mod that works just fine with IH2;
http://www.zen-cart.com/index.php?ma...roducts_id=830 - The product photos would look great in a lightbox. (Just a thought!)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Thanks, I assumed IH2 took over the functionality. My bad. I still need to figure out a way to have the query be more precise as I cant control the model numbers... Im actually somewhat shocked that zen does this as abc is not the same as abcd.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
richphitzwell
Thanks, I assumed IH2 took over the functionality. My bad.
No worries.. It's a common misunderstanding about how IH2 works..:smile: I think I'll need to re-write the IH2 readme and add references to these FAQs to the documentation..
Quote:
Originally Posted by
richphitzwell
I still need to figure out a way to have the query be more precise as I cant control the model numbers... Im actually somewhat shocked that zen does this as abc is not the same as abcd.
Maybe not..
You may not be able to control the model numbers, but you absolutely CAN control what you name your images..
If you make sure they are not named in a way which will subject them to be interpreted as additional images, then your problem will be resolved.. Now before you say, "but Diva I have THOUSANDS of images to rename.. I simply can't do it all":smile: I suggest looking into one of the many FREE bulk image renaming tools.. Many of them will allow you to re-name FOLDERS FULL of images and with the right settings you could instantly rename them all in a way that each image name is unique enough for you to use them with IH2 so that Zen Carts additional image coding won't link the wrong images to the wrong products..
Now BEFORE you protest, I used this very same technique I describe on a clients site where she LITERALLY had 20 additional images for EACH of her products. All of her images had such similar names that when she uploaded them it was a clusterf***... Using the bulk renaming utility solved a similar problem we had on her site..
Once we had the main product images re-named so that each was TRULY a unique name, IH2 took care of properly naming the additional product images and the problem was SOLVED!!!
-
Re: Image Handler 2 Support
Thats interesting, ive never used IH2 for additional images, Ive always added the product image and then FTP'd the additional ones. :smile:
Quote:
Originally Posted by
DivaVocals
Not likely.. IH2 takes care of the image naming following Zen Carts requirements for additional product images naming conventions.. There is no work required by the shopowner to take advantage of this feature..
In fact a shopowner doesn't have to worry about this at all.. If they upload a main product image named flower.jpg, and three additional images named tulip.jpg, daisy.jpg, and rose.jpg, IH2 would correctly rename all the additional images to the proper naming convention required for them to be recognized as additional images by Zen Cart. So using my example, IH2 would rename tulip.jpg, daisy.jpg, and rose.jpg to flower_01.jpg, flower_02.jpg, and flower_03.jpg.
IH2 takes the name of the main product image and then appropriately names the additional product images so that they are linked to the correct product.
The MOST common reason for additional images to not appear on the product when they appear in the IH2 admin has EVERYTHING to do with using mixed image file fomats for the main and additional product images.. You cannot have a main product image be a JPG while the additional product images are another file format (say GIF or PNG for example)
So the way for this to work correctly is that you must make sure that the main product image and all additional images uploaded MUST be the same filetype.. (I do believe this is covered in the IH2 readme documentation..)
and by the way you cannot "fool" IH2 by simply changing the file extension of the additional images.. If the main product image is a JPG, then you must convert any additional images that are not the same format to the correct matching format.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
bakaguyjean
Thanks for looking at the site but that not the problem at all. The second page should have 4 images,not just the one. Thanks again,but it looks like it will never work correctly.I guess you get what you pay for. $10 for first person to figure out this problem. Paypal waiting.
Well you seem to have fixed it, do you know what the issue was?
Mainly so that anyone else who has a similar prob can see a possible resolution
-
Re: Image Handler 2 Support
Hi all,
i've a big problem on a Zencart 1.3.9e where i tried to install the IH2 rev8.
The admin panel works great: i can upload additional images, the options are all there, i can clean the cache, etc.
The problems are all in the front office. It simply isn't there!
Zencart still works like before i installed it.
It doesn't create the various version on the caches, it doesn't create the scripts on the images...
I swear that i've uploaded all the files in the right paths! :frusty::frusty:
I've tried IH on various website, but i never had any problem before this.
Could anyone help me?
-
Re: Image Handler 2 Support
Which Rev8 release?? The initial release or one of the a, b, c, d incremental releases???
Quote:
Originally Posted by
pjthebest
Hi all,
i've a big problem on a Zencart 1.3.9e where i tried to install the IH2 rev8.
**sigh**
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you posts helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
Quote:
Originally Posted by
pjthebest
The admin panel works great: i can upload additional images, the options are all there, i can clean the cache, etc.
The problems are all in the front office. It simply isn't there!
Zencart still works like before i installed it.
It doesn't create the various version on the caches, it doesn't create the scripts on the images...
I swear that i've uploaded all the files in the right paths! :frusty::frusty:
I've tried IH on various website, but i never had any problem before this.
Could anyone help me?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Scott_C
Thats interesting, ive never used IH2 for additional images, Ive always added the product image and then FTP'd the additional ones. :smile:
And though you can do it this way, IH2 doesn't require you to do all that upfront image renaming.. It renames your additional images based on the main product image name for you..
-
Re: Image Handler 2 Support
Um...oh, dear...
http://akihabaracosplay.com/index.ph...&products_id=1
I installed Image Handler 2 on a 1.3.9 Version of Zen Cart (Brand New Install), made my PNG watermarks, and overwrote (?) the current watermark_LRG.png, watermark_MED.png, and watermark.png, but still no results.
If you look carefully after clicking on the image of the costume, it pops up at the top of my page! Yikes!
What in the world did I do wrong?
http://www.akihabaracosplay.com
Thank you!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
uruharacosplay
Um...oh, dear...
http://akihabaracosplay.com/index.ph...&products_id=1
I installed Image Handler 2 on a 1.3.9 Version of Zen Cart (Brand New Install), made my PNG watermarks, and overwrote (?) the current watermark_LRG.png, watermark_MED.png, and watermark.png, but still no results.
If you look carefully after clicking on the image of the costume, it pops up at the top of my page! Yikes!
What in the world did I do wrong?
http://www.akihabaracosplay.com
Thank you!
you seem to be using the classic template, While this probably wont fix your problem you seem to have forgotten to add the image handler css file from the your template folder to the classic folder, have a look and see if there are any other folders/files you might have missed
-
Re: Image Handler 2 Support
Hello, I have an issue with IH2. I'm using ZC 1.3.9g and i installed IH2, last version. I have some other addons installed (zen lightbox, email archive manager, blank sideboxes, a forum, admin notes advanced, admin profiles, live chat, login box and other stuff). This is the only one who made me sweat a lot.
Everything worked smooth but all the gifs are looking very bad. The dinamic gifs are static, dont move and have a badly glow surrounding them. The other gifs dont have transparent background despite my (various test) settings (255,255,255).
Here is a link to an example - http://diablomall.com/index.php?main...dex&cPath=1_43 - but i deactivated IH2 simply setting "IH resize images" to NO because was looking so bad and I didn't like it even for few hours to stay there. If someone could help me I can reactivate IH2 for showing.
All I want is to be displayed a description on hover, simply put the mouse - not click- on picture and another picture (with/or description) to be displayed on listing products pages. No bigger pictures, no other stuff, just the description.
I don't want to give up IH2 but if there's another addon which can bring description (even in picture, I can handle) and not to crash the pictures then I'll choose that.
Those are my settings:
Small Image Width 100
Small Image Height 80
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 100
Subcategory Image Height 57
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 50
Image - Shopping Cart Height 40
Category Icon Image Width - Product Info Pages 57
Category Icon Image Height - Product Info Pages 40
Top Subcategory Image Width 150
Top Subcategory Image Height 85
Product Info - Image Width 150
Product Info - Image Height 120
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 3
Image - Product Listing Width 100
Image - Product Listing Height 80
Image - Product New Listing Width 100
Image - Product New Listing Height 80
Image - New Products Width 100
Image - New Products Height 80
Image - Featured Products Width 100
Image - Featured Products Height 80
Image - Product All Listing Width 100
Image - Product All Listing Height 80
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images no
IH small image filetype no_change
IH small image background 255:255:255
IH watermark small images no
IH zoom small images yes
IH small image compression quality 100
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no Info
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images no Info
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
Thank you
-
Re: Image Handler 2 Support
The mods are probably not your problem. Nor is IH2.
My vote would go for the Template Monster template doing something to a file that is not normally messed with by Zen or any Mod.
Check your TM template to see if any of the files are common to any of the IH2 files. If so, you will need to VERY carefully merge them to make IH2 work.
Or you could contact TM and see what help you get for your money spent:censored:
On a 12mb connection, your site took 27 seconds to load and the first page has double anchors, open img elements, and empty p tags. Gotta love that TM -- NOT
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Wallachian
Hello, I have an issue with IH2.
I have had to always install (re-install) lightbox over the top of IH whenever I had to re-install or upgrade IH (mainly because lightbox needs to overwrite one of the Additional Images files.
There could be other mods that also need need similar treatment after IH is installed.
-
Re: Image Handler 2 Support
Thank you for response and check. I had an argue with my host who said they put the site on best servers they have. Still, that delay on site navigation has some specific hours to appear which seems strange to me their response that is my fault (template or settings). And has nothing to do with high traffic. Maybe i'll be enough courageous to make a full back up and ask them to reinstall ZC.
The template was free but i made some modifications in it's layout, nothing important, just changing colors, dimensions, logos, pictures etc.
I changed settings from their standard 100 with 80 to 150 with 120 which keep it the proportions but made bigger pictures. This made some (almost all) gifs background become transparent, i guess my pictures are too small. With even bigger settings, around 300 per 200 dinamic gifs starts looking good and moving. Of course, i cannot keep those huge settings, but this can say something to experts of what is wrong there.
I'll start verify if there are common files and compare them if so.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
finlander
I have had to always install (re-install) lightbox over the top of IH whenever I had to re-install or upgrade IH (mainly because lightbox needs to overwrite one of the Additional Images files.
There could be other mods that also need need similar treatment after IH is installed.
This is an incorrect approach.. You should NOT be overwriting these files at all.. Instead using a file merging program (like Winmerge or Beyond Compare) you need to merge BOTH the required lightbox code along with the required IH2 code for any files they share in common.. Otherwise you WILL replace required IH2 code when installing your lightbox and vice versa..
Maybe one day when I have time (and that ain't today:laugh:) I will post the correct code needed for lightbox/IH2 integration since this seems to be the one mistake made most often by shopowners when trying to install Zen Lightbox or Fual Slimbox with IH2..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
dbltoe
The mods are probably not your problem. Nor is IH2.
My vote would go for the Template Monster template doing something to a file that is not normally messed with by Zen or any Mod.
Check your TM template to see if any of the files are common to any of the IH2 files. If so, you will need to VERY carefully merge them to make IH2 work.
Or you could contact TM and see what help you get for your money spent:censored:
On a 12mb connection, your site took 27 seconds to load and the first page has double anchors, open img elements, and empty p tags. Gotta love that TM -- NOT
This was my thought as well.. This is why I've never been a fan of TM.. Their motto seems to be "style over substance", and that's NOT a good thing..
Most of their template code is so badly hacked that it creates NOTHING but issues with other mods..
-
Re: Image Handler 2 Support
My bad... I missed the lightbox. I always prefer Fual Slimbox with IH2.
However, I still vote for TM as the culprit.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
This is an incorrect approach.. You should NOT be overwriting these files at all.. Instead using a file merging program (like Winmerge or Beyond Compare) you need to merge BOTH the required lightbox code along with the required IH2 code for any files they share in common.. Otherwise you WILL replace required IH2 code when installing your lightbox and vice versa..
A pure merge (all data from both the IH and the LB additional_images.php files, merged/incorporated into one file) would cause problems. That's why the LB box code uses the 'handle_image' IF statements to defer to the IH code where needed. There would be inconsistencies in the resulting code if it were a pure merge, with the IH code saying to do one thing and the LB code saying to do something else, in the same spot.
The LB overwrite of the IH additional_images.php file seems to work perfect on my install.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
finlander
A pure merge (all data from both the IH and the LB additional_images.php files, merged/incorporated into one file) would cause problems. That's why the LB box code uses the 'handle_image' IF statements to defer to the IH code where needed. There would be inconsistencies in the resulting code if it were a pure merge, with the IH code saying to do one thing and the LB code saying to do something else, in the same spot.
The LB overwrite of the IH additional_images.php file seems to work perfect on my install.
But it's not a pure merge.. Not even for Fual Slimbox.. There are simply parts of the code that need to be modified for the lightbox, and parts which needs to be merged for IH2.. I'm glad it's working for you, but from what I remember, your suggested approach is the most common reason why most folks have trouble getting both to work together.. Perhaps the writers of Zen Lightbox have already incorporated IH2 code, but the last time I looked they had not and it still required a file merge of some sort to get both to work together..
One of these days when I get some time I'm gonna update the IH2 fileset to include the properly modified files needed for both Fual Slimbox and Zen Lightbox.. This should effectively out an end to the issues and questions surrounding how to merge IH2 with these two popular lightbox contribs..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
dbltoe
My bad... I missed the lightbox. I always prefer Fual Slimbox with IH2.
However, I still vote for TM as the culprit.
** nods in agreement with all of this **
-
Re: Image Handler 2 Support
Hey all,
I tried looking for a solution but nothing came up so here i go.
I just installed the image handler and that all went fine.
When i add a new product everything goes fine and the 3 images appear under the manager in the image handler admin, but when i go to the actuall product info page all i get is a white box that says "larger image" (this should be the product image anyway which isn't showing) and then when i click on the larger image it says it can't be found.
After closer inspection it is looking for pictures in /images/medium/picture_MED.JPG in the smaller one and for the larger one in /images/large/picture_LRG.JPG
Am i missing something here? I hope someone can help me out :)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Zippers
Hey all,
I tried looking for a solution but nothing came up so here i go.
I just installed the image handler and that all went fine.
When i add a new product everything goes fine and the 3 images appear under the manager in the image handler admin, but when i go to the actuall product info page all i get is a white box that says "larger image" (this should be the product image anyway which isn't showing) and then when i click on the larger image it says it can't be found.
After closer inspection it is looking for pictures in /images/medium/picture_MED.JPG in the smaller one and for the larger one in /images/large/picture_LRG.JPG
Am i missing something here? I hope someone can help me out :)
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you posts helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
-
Re: Image Handler 2 Support
Sorry about that! Won't happen again :)
The link http://www.athometextiles.com/index....roducts_id=939
And it's only slightly different on older products (the large image will show when clicked on but not the medium one on the info page)
example of an older product http://www.athometextiles.com/index....roducts_id=262
Image settings: even though i already tried putting the small one the same as all that were needed as was said in a tutorial.
Small Image Width 60
Small Image Height 60
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 60
Subcategory Image Height 60
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 180
Image - Shopping Cart Height 180
Category Icon Image Width - Product Info Pages 0
Category Icon Image Height - Product Info Pages 0
Top Subcategory Image Width 0
Top Subcategory Image Height 0
Product Info - Image Width 180
Product Info - Image Height 180 Info
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 5
Image - Product Listing Width 120
Image - Product Listing Height 120
Image - Product New Listing Width 120
Image - Product New Listing Height 120
Image - New Products Width 120
Image - New Products Height 120
Image - Featured Products Width 180
Image - Featured Products Height 180
Image - Product All Listing Width 120
Image - Product All Listing Height 120
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 0
IH resize images yes
IH small image filetype no_change
IH small image background 255:255:255
IH watermark small images no
IH zoom small images yes
IH small image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images no
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
Hope this is better :)
-
Re: Image Handler 2 Support
I'd check that you correctly merged the files in includes/modules/YOUR_TEMPLATE with your template files.. Looks like the required IH2 code may be missing.. Also given that this is a Template Monster (or one of their affliates) templates, they are know to incorrectly hack Zen Cart code to make their designs work.. It's possible that they have modified their template code using one of their typical non-standard methods which is causing a problem.. Once IH2 is managing your images, they will pull them from the bmz_cache folder not the paths you posted.. Your images are not doing this which is an indication that there is important IH2 code which is missing or being ignored/overwritten by something in your template..
Quote:
Originally Posted by
Zippers
Sorry about that! Won't happen again :)
The link
http://www.athometextiles.com/index....roducts_id=939
And it's only slightly different on older products (the large image will show when clicked on but not the medium one on the info page)
example of an older product
http://www.athometextiles.com/index....roducts_id=262
Image settings: even though i already tried putting the small one the same as all that were needed as was said in a tutorial.
Small Image Width 60
Small Image Height 60
Heading Image Width - Admin 57
Heading Image Height - Admin 40
Subcategory Image Width 60
Subcategory Image Height 60
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 180
Image - Shopping Cart Height 180
Category Icon Image Width - Product Info Pages 0
Category Icon Image Height - Product Info Pages 0
Top Subcategory Image Width 0
Top Subcategory Image Height 0
Product Info - Image Width 180
Product Info - Image Height 180 Info
Product Info - Image Medium Suffix _MED
Product Info - Image Large Suffix _LRG
Product Info - Number of Additional Images per Row 5
Image - Product Listing Width 120
Image - Product Listing Height 120
Image - Product New Listing Width 120
Image - Product New Listing Height 120
Image - New Products Width 120
Image - New Products Height 120
Image - Featured Products Width 180
Image - Featured Products Height 180
Image - Product All Listing Width 120
Image - Product All Listing Height 120
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 0
IH resize images yes
IH small image filetype no_change
IH small image background 255:255:255
IH watermark small images no
IH zoom small images yes
IH small image compression quality 85
IH medium image filetype no_change
IH medium image background 255:255:255
IH watermark medium images no
IH medium image compression quality 85
IH large image filetype no_change
IH large image background 255:255:255
IH watermark large images no
IH large image compression quality 85
IH large image maximum width 750
IH large image maximum height 550
IH watermark gravity Center
Hope this is better :)
-
Re: Image Handler 2 Support
It is a unique template indeed, but not from template monster or anything.
That's quite a shame cause from what i can see all it is apparantly doing is getting the image urls wrong.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Zippers
It is a unique template indeed, but not from template monster or anything.
That's quite a shame cause from what i can see all it is apparantly doing is getting the image urls wrong.
Wherever this template is from, the IH2 code which drives the main product image and the large image popup is clearly not there or has been merged in with your existing templates files in a way that prevents the images from being displayed.. The images clearly are not being pulled from the bmz_cache folder as they should..
Code:
<img src="images/medium/Chillax - Multi_MED.JPG" alt="Chillax single duvet/quilt cover and pillow case" title=" Chillax single duvet/quilt cover and pillow case " width="180" height="180" />
Suggest going over your entire install again and pay special attention to the files I mentioned earlier.. Also do you have any other image mods which might be in conflict??
-
Re: Image Handler 2 Support
Oh my god this is so frustrating.
Yeah i just went over the install again and made sure everything is in. I had a quick look on some template files but couldn't find anything.
No other mods are installed for this zen cart. So there has to be an alteration somewhere.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Zippers
Oh my god this is so frustrating.
Yeah i just went over the install again and made sure everything is in. I had a quick look on some template files but couldn't find anything.
No other mods are installed for this zen cart. So there has to be an alteration somewhere.
and without seeing what you see it's equally frustrating on this end too..:smile:
Can you try posting what your IH2 module files look like (the files I referenced earlier.. Please make sure you enclose the code using the code tags (otherwise it's a NIGHTMARE to read here, and the forum software alters code if not properly enclosed in code tags)
Also just checking you did rename all the YOUR_TEMPLATE folders to match the name of your template's folder when you installed IH2 right???
-
Re: Image Handler 2 Support
Yeah i can understand that :) You can always just pm me and i'll give you a login to check though haha :P
Either way i'm guessing you mean the 2 files that come with the modules and then my template folder (and yes i did change the name :P )
addicitional_images.php
Code:
<?php
/**
* additional_images module
*
* Prepares list of additional product images to be displayed in template
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: additional_images.php 16913 2010-07-16 03:38:06Z ajeh $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (!defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');
$images_array = array();
// do not check for additional images when turned off
if ($products_image != '' && $flag_show_product_info_additional_images != 0) {
// prepare image name
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = str_replace($products_image_extension, '', $products_image);
// if in a subdirectory
if (strrpos($products_image, '/')) {
$products_image_match = substr($products_image, strrpos($products_image, '/')+1);
//echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' - base ' . $products_image_base . '<br>';
$products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
$products_image_base = $products_image_match;
}
$products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
if ($products_image_directory != '') {
$products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";
} else {
$products_image_directory = DIR_WS_IMAGES;
}
// Check for additional matching images
$file_extension = $products_image_extension;
$products_image_match_array = array();
if ($dir = @dir($products_image_directory)) {
while ($file = $dir->read()) {
if (!is_dir($products_image_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
if(preg_match("/" . $products_image_base . "/i", $file) == '1') {
if ($file != $products_image) {
if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {
//echo 'I AM A MATCH ' . $file . '<br />';
$images_array[] = $file;
} else {
// echo 'I AM NOT A MATCH ' . $file . '<br />';
}
}
}
}
}
}
if (sizeof($images_array)) {
sort($images_array);
}
$dir->close();
}
}
// Build output based on images found
$num_images = sizeof($images_array);
$list_box_contents = '';
$title = '';
if ($num_images) {
$row = 0;
$col = 0;
if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
$col_width = floor(100/$num_images);
} else {
$col_width = floor(100/IMAGES_AUTO_ADDED);
}
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
// $flag_has_large = file_exists($products_image_large);
$flag_has_large = true;//file_exists($products_image_large);
// End Image Handler changes 1 of 2
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2 remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
// Link Preparation:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
$noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
// $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
$link = $script_link . "\n " . $noscript_link;
// $link = $alternate_link;
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => "\n " . $link);
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
} // end for loop
} // endif
main_product_image.php
Code:
<?php
/**
* main_product_image module
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: main_product_image.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
* Last modified by DerManoMann 2010-05-31 23:41:53
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
/*
echo
'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' .
'Medium ' . $products_image_medium . '<br><br>' .
'Large ' . $products_image_large . '<br><br>';
*/
// to be built into a single variable string
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
Zippers
Yeah i can understand that :) You can always just pm me and i'll give you a login to check though haha :P
:laugh:
Wish I could, but no can do..:no: Got a BUSY weekend of paid work coming up.. (actually it's started now..) Site launch, begin new site build, site updates for clients, and OVERTIME work for my regular day job to boot.. Gonna be a LONG weekend for moi..:yes:
Quote:
Originally Posted by
Zippers
Either way i'm guessing you mean the 2 files that come with the modules and then my template folder (and yes i did change the name :P )
addicitional_images.php
Code:
<?php
/**
* additional_images module
*
* Prepares list of additional product images to be displayed in template
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: additional_images.php 16913 2010-07-16 03:38:06Z ajeh $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (!defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');
$images_array = array();
// do not check for additional images when turned off
if ($products_image != '' && $flag_show_product_info_additional_images != 0) {
// prepare image name
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = str_replace($products_image_extension, '', $products_image);
// if in a subdirectory
if (strrpos($products_image, '/')) {
$products_image_match = substr($products_image, strrpos($products_image, '/')+1);
//echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' - base ' . $products_image_base . '<br>';
$products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
$products_image_base = $products_image_match;
}
$products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
if ($products_image_directory != '') {
$products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";
} else {
$products_image_directory = DIR_WS_IMAGES;
}
// Check for additional matching images
$file_extension = $products_image_extension;
$products_image_match_array = array();
if ($dir = @dir($products_image_directory)) {
while ($file = $dir->read()) {
if (!is_dir($products_image_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
if(preg_match("/" . $products_image_base . "/i", $file) == '1') {
if ($file != $products_image) {
if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {
//echo 'I AM A MATCH ' . $file . '<br />';
$images_array[] = $file;
} else {
// echo 'I AM NOT A MATCH ' . $file . '<br />';
}
}
}
}
}
}
if (sizeof($images_array)) {
sort($images_array);
}
$dir->close();
}
}
// Build output based on images found
$num_images = sizeof($images_array);
$list_box_contents = '';
$title = '';
if ($num_images) {
$row = 0;
$col = 0;
if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0 ) {
$col_width = floor(100/$num_images);
} else {
$col_width = floor(100/IMAGES_AUTO_ADDED);
}
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
// Begin Image Handler changes 1 of 2
// $flag_has_large = file_exists($products_image_large);
$flag_has_large = true;//file_exists($products_image_large);
// End Image Handler changes 1 of 2
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// Begin Image Handler changes 2 of 2 remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
// End Image Handler changes 2 of 2
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
// Link Preparation:
$script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
$noscript_link = '<noscript>' . ($flag_display_large ? '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large) . '" target="_blank">' . $thumb_regular . '<br /><span class="imgLinkAdditional">' . TEXT_CLICK_TO_ENLARGE . '</span></a>' : $thumb_regular ) . '</noscript>';
// $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';
$link = $script_link . "\n " . $noscript_link;
// $link = $alternate_link;
// List Box array generation:
$list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => "\n " . $link);
$col ++;
if ($col > (IMAGES_AUTO_ADDED -1)) {
$col = 0;
$row ++;
}
} // end for loop
} // endif
main_product_image.php
Code:
<?php
/**
* main_product_image module
*
* @package templateSystem
* @copyright Copyright 2005-2006 Tim Kroeger
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: main_product_image.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
* Last modified by DerManoMann 2010-05-31 23:41:53
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
$products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
$products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
/*
echo
'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' .
'Medium ' . $products_image_medium . '<br><br>' .
'Large ' . $products_image_large . '<br><br>';
*/
// to be built into a single variable string
I don't see anything out of the ordinary, but that that doesn't mean that something is not amiss.. I can't help but wonder if your template is a contributory factor.. Again without seeing the template files, it's hard to guess what might be the source of the issue..:frusty: Hopefully someone else can chime in here..
-
Re: Image Handler 2 Support
I have a problem with the image urls
If i try to use the image handler manager, the picture thumbnails won't work. The url looks like below, they are missing the / after bmz_cache and e
localhost/bmz_cachebbb4f0d7b85341cdd3b06a9156dbae30c.image.80x60.jpg[/url]
this should be
localhost/bmz_cache/b/bb4f0d7b85341cdd3b06a9156dbae30c.image.80x60.jpg[/url]
I have tried to delete the image handler files and replace them and uninstall the database using the image handler admin page. No luck so far.
Im using zencart v1.3.9d and image handler 2.0 Rev 8d
-
Re: Image Handler 2 Support
Not an issue with IH2 at all.. My guess is that your Zen Cart configure.php is not setup correctly and is missing a required "/" somewhere..
Quote:
Originally Posted by
stmonk
I have a problem with the image urls
If i try to use the image handler manager, the picture thumbnails won't work. The url looks like below, they are missing the / after bmz_cache and e
localhost/bmz_cachebbb4f0d7b85341cdd3b06a9156dbae30c.image.80x60.jpg[/url]
this should be
localhost/bmz_cache/b/bb4f0d7b85341cdd3b06a9156dbae30c.image.80x60.jpg[/url]
I have tried to delete the image handler files and replace them and uninstall the database using the image handler admin page. No luck so far.
Im using zencart v1.3.9d and image handler 2.0 Rev 8d
-
Re: Image Handler 2 Support
Hmm, everything else seems to work fine, except the images that point to bmz-cache folder. I checked the configure files and I havent noticed anything wrong in there.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
stmonk
Hmm, everything else seems to work fine, except the images that point to bmz-cache folder. I checked the configure files and I havent noticed anything wrong in there.
The images are supposed to point to the bmz_cache folder.. The missing / after bmz_cache is likely due to a missing slash in your configure.php file.. This isn't anything that IH2 would remove or alter..
and as always when posting issues in this support thread..
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you post helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
However, that said you need to re-check your configure.php file.. I'm pretty sure that you will find that you are indeed missing a / somewhere in there..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
You can see the problem in
http://themustardseedworkshop.com/in...roducts_id=266
Clicking the medium image to show large image will not work. The source code shows invalid url to bmz_cache.
Most other product images on the site does work, as they are connecting into the images/large folder.
i will try to look at the conficure files to see anything.
-
Re: Image Handler 2 Support
The link helps a lot.. (and this is EXACTLY why we ask for links.. helps keep the guessing down to at least more informed guesses:smile:)
So in addition to checking your configure.php file, you also need to check your lightbox file merges.. Part of the problem may be due to the lightbox code not being merged correctly either..
Quote:
Originally Posted by
stmonk
You can see the problem in
http://themustardseedworkshop.com/in...roducts_id=266
Clicking the medium image to show large image will not work. The source code shows invalid url to bmz_cache.
Most other product images on the site does work, as they are connecting into the images/large folder.
i will try to look at the conficure files to see anything.
-
Re: Image Handler 2 Support
I have installed this module on my test site with no problems. I just finished my template on my test site and moved it over to my live site (along with the module.) I can't seem to get the module to work now. I figured that I must have only uploaded bits and pieces of it when I installed my template so I went in and re added the module. But I just can't seem to get it to work. http://www.frompropertorocker.com Thanks in advance!
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
I have installed this module on my test site with no problems. I just finished my template on my test site and moved it over to my live site (along with the module.) I can't seem to get the module to work now. I figured that I must have only uploaded bits and pieces of it when I installed my template so I went in and re added the module. But I just can't seem to get it to work.
http://www.frompropertorocker.com Thanks in advance!
Have you installed it in the admin? as in admin --> tools --> Imagehandler2 --> Install image handler
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nigelt74
Have you installed it in the admin? as in admin --> tools --> Imagehandler2 --> Install image handler
Yeppers
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
Yeppers
I see no trace of Image Handler apart from the CSS & JS files being included
make sure all the files have uploaded from Image handler
that means all of those in the "YOUR Template" folders in the both the modules and templates sections
/includes/modules/alysa_rounded/
&
/includes/templates/alysa_rounded
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Which Rev8 release?? The initial release or one of the a, b, c, d incremental releases???
**sigh**
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you posts helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
Thank you for your interest.
I tried to install the rev8D on this site.
As you can see, the only result i obtained is the problem inside the products pages where the image big is not shown.
These are the IH settings:
- IH resize images yes
- IH small image filetype no_change
- IH small image background 255:255:255
- IH watermark small images no
- IH zoom small images yes
- IH small image compression quality 85
- IH small image hotzone no
- IH medium image filetype no_chang
- IH medium image background 255:255:255
- IH watermark medium images no
- IH medium image compression quality 85
- IH large image filetype no_change
- IH zoom medium images no
- IH medium image hotzone no
- IH large image background 255:255:255
- IH watermark large images no
- IH large image compression quality 85
- IH large image maximum width 750
- IH large image maximum height 550
- IH watermark gravity Center
- IH zoom gravity SouthEast
-
Re: Image Handler 2 Support
P.S. thank you very much! :D
-
Re: Image Handler 2 Support
What are the rest of your image settings.. IH uses them in addition to the IH2 sepecific settings..
From what I can see IH2 is not managing your images at all.
You need to recheck the following:
- Did you turn IH2 on? (as in admin --> tools --> Imagehandler2 --> Install image handler)
- Did you check all your image settings (there are recommended/suggested image settings in the readme)
- Did you correctly install IH2 (renamed template and admin folders to match your store's template and admin folders)
- Did you skip any install steps (sometimes folks decide an install step is silly/unimportant, and that is often a BIG cause of module install failures)
It is likely that one or a combination of these steps is the cause of your IH2 setup not working as it should.
Lastly where did you get your template from?? What I have seen more often than not is theme companies (like Template Monster or their affliate sites) who have created themes which do not use standard Zen Cart code and thus interfere with module installations. If your theme fileset included files modified by IH2 it's highly possible that whatever customizations they made to those files are not properly merged in with IH2's required coding.
Quote:
Originally Posted by
pjthebest
Thank you for your interest.
I tried to install the rev8D on
this site.
As you can see, the only result i obtained is the problem inside the
products pages where the image big is not shown.
These are the IH settings:
- IH resize images yes
- IH small image filetype no_change
- IH small image background 255:255:255
- IH watermark small images no
- IH zoom small images yes
- IH small image compression quality 85
- IH small image hotzone no
- IH medium image filetype no_chang
- IH medium image background 255:255:255
- IH watermark medium images no
- IH medium image compression quality 85
- IH large image filetype no_change
- IH zoom medium images no
- IH medium image hotzone no
- IH large image background 255:255:255
- IH watermark large images no
- IH large image compression quality 85
- IH large image maximum width 750
- IH large image maximum height 550
- IH watermark gravity Center
- IH zoom gravity SouthEast
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nigelt74
I see no trace of Image Handler apart from the CSS & JS files being included
make sure all the files have uploaded from Image handler
that means all of those in the "YOUR Template" folders in the both the modules and templates sections
/includes/modules/alysa_rounded/
&
/includes/templates/alysa_rounded
I have re uploaded the whole thing and made sure it was installed in the admin and it still doesn't work. I noticed that it works great for my additional images like here http://frompropertorocker.com/index....roducts_id=163 but it doesn't seem to work on any small images.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
I have re uploaded the whole thing and made sure it was installed in the admin and it still doesn't work. I noticed that it works great for my additional images like here
http://frompropertorocker.com/index....roducts_id=163 but it doesn't seem to work on any small images.
Check your image settings.. There are suggested settings in the readme file. Right now IH2 is NOT managing your images at all.. The only thing that is working is the image hover.. and that is largely driven by the IH2 settings and the IH2 javascript.. What IH2 is supposed to do (manage your images) is not happening on your site at all..
Same suggestions to you I just asked above..
You need to recheck the following:
- Did you turn IH2 on? (as in admin --> tools --> Imagehandler2 --> Install image handler)
- Did you check all your image settings (there are recommended/suggested image settings in the readme)
- Did you correctly install IH2 (renamed template and admin folders to match your store's template and admin folders)
- Did you skip any install steps (sometimes folks decide an install step is silly/unimportant, and that is often a BIG cause of module install failures)
It is likely that one or a combination of these steps is the cause of your IH2 setup not working as it should.
Lastly where did you get your template from?? What I have seen more often than not is theme companies (like Template Monster or their affliate sites) who have created themes which do not use standard Zen Cart code and thus interfere with module installations. If your theme fileset included files modified by IH2 it's highly possible that whatever customizations they made to those files are not properly merged in with IH2's required coding.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Check your image settings.. There are suggested settings in the readme file. Right now IH2 is NOT managing your images at all.. The only thing that is working is the image hover.. and that is largely driven by the IH2 settings and the IH2 javascript.. What IH2 is supposed to do (manage your images) is not happening on your site at all..
Same suggestions to you I just asked above..
You need to recheck the following:
- Did you turn IH2 on? (as in admin --> tools --> Imagehandler2 --> Install image handler)
- Did you check all your image settings (there are recommended/suggested image settings in the readme)
- Did you correctly install IH2 (renamed template and admin folders to match your store's template and admin folders)
- Did you skip any install steps (sometimes folks decide an install step is silly/unimportant, and that is often a BIG cause of module install failures)
It is likely that one or a combination of these steps is the cause of your IH2 setup not working as it should.
Lastly where did you get your template from?? What I have seen more often than not is theme companies (like Template Monster or their affliate sites) who have created themes which do not use standard Zen Cart code and thus interfere with module installations. If your theme fileset included files modified by IH2 it's highly possible that whatever customizations they made to those files are not properly merged in with IH2's required coding.
Thanks. I will go through the whole checklist again.
I got my template here http://www.zen-cart.com/index.php?ma...oducts_id=1802
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
Okay.. so no worries on the template.. She designs well written templates (none of that hacked up Template Monster crap..:laugh:)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Okay.. so no worries on the template.. She designs well written templates (none of that hacked up Template Monster crap..:laugh:)
Lol! I'm glad on that.
-
Re: Image Handler 2 Support
I got it! Thanks so much! I went through and did the recommend settings for the images. :)
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
I got it! Thanks so much! I went through and did the recommend settings for the images. :)
Are you saying it's fixed?? Because I still do not see your images beig served up from the bmz_cache folder..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Are you saying it's fixed?? Because I still do not see your images beig served up from the bmz_cache folder..
It works for me in Firefox, Chrome and IE with no problems. I have that in my folder. I'm not sure why it's not being served up then.
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
It works for me in Firefox, Chrome and IE with no problems. I have that in my folder. I'm not sure why it's not being served up then.
No it actually doesn't.. On the product example link you previously posted, this is the URL of the main product image:
http://frompropertorocker.com/images...phabetsoup.jpg
this is not being served from the bmz_cache folder as it should..
Also not sure if it's part of the issue, but you need to get out of the practice of having files and folders with spaces in the names.. Browsers choke on this kind of stuff.. Using the examply above, the BETTER way to name your folder is as follows:
define_me_clothing
or
defineMeClothing
or
define-me-clothing
I personally prefer option 2 as it makes the name understandable and saves on the number of characters used in naming files/folders
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
No it actually doesn't.. On the product example link you previously posted, this is the URL of the main product image:
http://frompropertorocker.com/images...phabetsoup.jpg
this is not being served from the bmz_cache folder as it should..
Also not sure if it's part of the issue, but you need to get out of the practice of having files and folders with spaces in the names.. Browsers choke on this kind of stuff.. Using the examply above, the BETTER way to name your folder is as follows:
define_me_clothing
or
defineMeClothing
or
define-me-clothing
I personally prefer option 2 as it makes the name understandable and saves on the number of characters used in naming files/folders
How do I get it so it points to that folder? I have 1100 + products uploaded with pics is there a way I can rename the folders and the pics will still show up without having to re upload them all again?
-
Re: Image Handler 2 Support
I think I have it now. I set the permissions to 777 on the bmz_cache folder instead of the 755.
-
Re: Image Handler 2 Support
My IH2 is not working from product pages... it displays the formatting tables, but no image. The images and MouseOver pop-up are working in other areas of the cart... e.g. "customers who bought this also purchased..."
It has been working, as far as I know. The most recent mod was the better together, and better together admin.
My ZC version is 1.3.9h.
The javascript error on the product page is:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET CLR 1.1.4322)
Timestamp: Tue, 11 Jan 2011 13:17:36 UTC
Message: Expected ')'
Line: 205
Char: 402
Code: 0
URI: http://www.banberryplace.com/index.p...oducts_id=2462
Any help or suggestions would be much appreciated.
-
Image Handler 2 Support BMZ_cache no read
Does anyone know why the images created in the folder with permissions set to 755 bmz_cache not read?
images are created with a path:
www.exemple.com/bmz_cache/4/ksfjsjfjsf44656.jpg
and are read:
www.exemple.com/bmz_cache4ksfjsjfjsf44656.jpg
of course nothing appears on the site, now I set folder creation BMZ to 655 to display images and operate imagehover. thanks
-
Re: Image Handler 2 Support
1.3.9
No Upgrades - very current install.
I have installed the blank sidebox addon yesterday.
I am just tweaking the classic template.
http://www.akihabaracosplay.com
Hi! I just went through this and installed everything again (I didn't even drag and drop via FileZilla, I meticulously went through each file and re-installed it) but it's still not working. :(
It says to install it in the root of my store, but I don't really have a root.
It's pretty much just straight to my www folder.
Is there something that I'm supposed to do that I'm just missing? Thank you.
~Indi
-
Re: Image Handler 2 Support
I feel so stupid. :oops:
I didn't even realize there was anything I needed to do in the Configuration -> Images tab.
It works like a charm! Thank you so VERY much! :clap:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
uruharacosplay
It says to install it in the root of my store, but I don't really have a root.
and the rest of that text says the the root of your store is where the store's index.php file is.. This is text used commonly in Zen Cart modules.. You might want to a little Google homework just to get your self up to speed on some of the terminology you'll see used.. (ie: site root, web root, etc..)
Glad you got it all sorted out..
-
Re: Image Handler 2 Support
ok...when you go to your server files via ftp.....you should see the regular public_html -- www (or whatever yours show, mine just lists all directories in there)
IF you have your store files in a folder of their own then go there otherwise locate the exact name of the folders from the zip--matching yours on your ftp
example:
zip: admin/includes
server side: admin/includes
follow that way of thinking then take the items that are in each respective folder and put them into the same place on the server.
remember that if any folder says something like your_template means you should have a folder on your server in that same section named like your template you are using...in this case classic since you are tweaking it....then drop that file into it. that is your override folder so that any edited file in the main includes folder NOT admin/includes--- is "safe" from being overwritten when another upgrade is done. Otherwise you will need to redo all edits.
so admin/image_handler.php would get placed directly into the admin folder --- or whatever your admin folder has been renamed to
admin/images items goes into the same place on server and so forth
the bmz_cache will be dropped into the area where all the store folders are located and its permissions should be set to either 755 or 777 -- depends on your host, try one if problems then try the other one.
hope this helps...I tend to confuse folks :shocking:
Quote:
Originally Posted by
uruharacosplay
1.3.9
No Upgrades - very current install.
I have installed the blank sidebox addon yesterday.
I am just tweaking the classic template.
http://www.akihabaracosplay.com
Hi! I just went through this and installed everything again (I didn't even drag and drop via FileZilla, I meticulously went through each file and re-installed it) but it's still not working. :(
It says to install it in the root of my store, but I don't really have a root.
It's pretty much just straight to my www folder.
Is there something that I'm supposed to do that I'm just missing? Thank you.
~Indi
-
Re: Image Handler 2 Support
Looks like you do have it all sorted out.. Your small, medium and large images are being served up from the bmz_cache folder as they should be.. Good job!:smile:
Going forward make sure you read the WHOLE readme document before installing any module.. I make this a habit before I even begin any install.. This way if there's anything I need to know outside of the normal install instructions, I'm ready..
Quote:
Originally Posted by
uruharacosplay
I feel so stupid. :oops:
I didn't even realize there was anything I needed to do in the Configuration -> Images tab.
It works like a charm! Thank you so VERY much! :clap:
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
giancalr
A real link to your site would help..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nolsowski
How do I get it so it points to that folder? I have 1100 + products uploaded with pics is there a way I can rename the folders and the pics will still show up without having to re upload them all again?
Quote:
Originally Posted by
nolsowski
I think I have it now. I set the permissions to 777 on the bmz_cache folder instead of the 755.
Nope still not working correctly.. NONE of your medium or large images are being served up from the bmz_cache folder..Re-read the readme document again and go through ALL of the image settings.. It appears that you are missing a setting which is causing IH2 to not properly serve up the images.. (and I don't know which one.. you'll need to compare the suggested settings in the readme against yours to see what got skipped)
BTW you don't have Image Manager installed as well do you?? Because Image Manager and IH2 cannot be installed together.. and I believe the Image Manager readme says as much..
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
DivaVocals
A real link to your site would help..
my site is www.erboristeriabio.com
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
giancalr
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you post helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
DivaVocals
We need the USUAL compliment of information that we always ask for here..
- Link to your site (specifically links DIRECTLY to the products which work correctly AND links to the ones that don't -- please don't ask folks to fish through your site looking for the issue)
- What are your image settings??
Providing this when you post helps cut down on back and forth guess sessions.. Much better if you provide FULL information up front.. Thanks:wink2:
the problem is in all the images, the configurations of HI are standard, the images are read as follows:
http://www.erboristeriabio.com/bmz_c...age.100x56.png
Instead of this:
http://www.erboristeriabio.com/bmz_c...96cc4e96bcfdf8
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
giancalr
It looks like you have IH2 turned off in your store. I'd suggest double checking your file merges between IH2 and your lightbox contribution.. It's possible that something went wrong in that setup.. Otherwise double check you image settings against the suggested settings in the readme, and make sure that soemthing didn't get skipped..
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
DivaVocals
It looks like you have IH2 turned off in your store. I'd suggest double checking your file merges between IH2 and your lightbox contribution.. It's possible that something went wrong in that setup.. Otherwise double check you image settings against the suggested settings in the readme, and make sure that soemthing didn't get skipped..
in my test site is working fine www.erboristeriabio.com/zen139 HI Lightbox who now live on the site Hi I turned off because if you do not see no more pictures.
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
giancalr
in my test site is working fine
www.erboristeriabio.com/zen139 HI Lightbox who now live on the site Hi I turned off because if you do not see no more pictures.
If it's working on your test site then something went wrong when moving it to the live site.. this is not really an IH2 issue at all.. It is more likely that the REAL issue you have is that something went wrong in your transfer of files to your live site which is causing IH2 to not function on your live store.. This is not caused by IH2, rather IH2 is ILLUMINATING another issue you have..
I suggest doing a careful comparison of the files and database in your test store and your live store.. Make sure your configuration file for the live store refelects the correct paths. (for example you may have inadvertetnly skipped a required "/" in your configure.php file).
I wish I could offer more, but at this point I think it's clear that this is NOT an issue with IH2 at all..
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
DivaVocals
If it's working on your test site then something went wrong when moving it to the live site.. this is not really an IH2 issue at all.. It is more likely that the REAL issue you have is that something went wrong in your transfer of files to your live site which is causing IH2 to not function on your live store.. This is not caused by IH2, rather IH2 is ILLUMINATING another issue you have..
I suggest doing a careful comparison of the files and database in your test store and your live store.. Make sure your configuration file for the live store refelects the correct paths. (for example you may have inadvertetnly skipped a required "/" in your configure.php file).
I wish I could offer more, but at this point I think it's clear that this is NOT an issue with IH2 at all..
I deleted all the files, input from the beginning, not working, or something you need to set some configuration file php.ini or server,
in the configure file is ok.
-
Re: Image Handler 2 Support BMZ_cache no read
Quote:
Originally Posted by
giancalr
I deleted all the files, input from the beginning, not working, or something you need to set some configuration file php.ini or server,
in the configure file is ok.
Again I'm not sure what else I can say since this is really not an issue with IH2 and more of an issue with what was different about your live site versus your test store.. Not really an IH2 issue at all.. at this point it's pretty clear that this is not being caused by an IH2 error..
It's not that IH2 doesn't work because there's something wrong with IH2.. IH2 isn't working because there is something different between the your test and live store's configuration and this difference is affecting IH2's behavior.
Since both stores are on the same server the most likely causes are any files which include file path data (.htaccess or configure.php files)
You may need to consider hiring someone to help you get this all straightened out..
-
Re: Image Handler 2 Support
Where do I set the "IH medium image Settings"?
In the readme it say this setting "applies to ... the rollover image displayed when hovering your mouse over the the small images."
I do not find this setting in Configuration -> Images.
I had set both my small image and the product image size to 160px. When I rollover the small image in the listing, I get an hover image that is exactly the same size. I would like the hover image to be like 500px (even larger than the product image).
-
Re: Image Handler 2 Support
Hover size is controlled here:
Product Info - Image Width
Product Info - Image Height
However, these same settings control the size of the image on product info pages, which is known as the 'medium' image. So, to control hover that does not also make your medium image huge, you would have to do something like change the hover code to display the large image before looking for a medium image, as follows:
In your file:
includes/classes/bmz_image_handler.class.php
Find the following (about line 697)
PHP Code:
$zoom_sizetype = ($this->sizetype=='small')?'medium':'large';
and replace it with:
PHP Code:
$zoom_sizetype = ($this->sizetype=='small')?'large':'medium';
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
finlander
In your file:
includes/classes/bmz_image_handler.class.php
Hi,
are you sure about this?
I thought that zoom stuff was something that is broken and not used in the current image handler version.
I thought the hover is controlled by some javascript somewhere, but not in the function you are mentioning, or am i totally incorrect?
I am looking for the code that controls the hover so i can try to fix it into using utf-8 when reading in the title (product name).
If you have any ideas where it could be i am all ears :smile:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
Hi,
are you sure about this?
I thought that zoom stuff was something that is broken and not used in the current image handler version.
Ok,
hate to answer my own questions, but despite the confusing naming conventions this is exactly where the script line for the hover function is prepared.
This is also where the problem with utf-8 originates as alt names with a ' in it get converted in this line (same function)
PHP Code:
//replace apostrophe with fancy quote
$alt = str_replace("'", "‘", $alt);
Does anybody know what good this may do?
The quote is allready escaped in the previous lines so what purpose would it serve to make it a fancy quote?
I found that commenting out this line does solve my problem with the utf-8, but i wonder what i may be breaking?
Any input please?
-
Re: Image Handler 2 Support
Go to Page 575 and follow the discussion about why this was added to the current IH2 release..
Quote:
Originally Posted by
nagelkruid
Ok,
hate to answer my own questions, but despite the confusing naming conventions this is exactly where the script line for the hover function is prepared.
This is also where the problem with utf-8 originates as alt names with a ' in it get converted in this line (same function)
PHP Code:
//replace apostrophe with fancy quote
$alt = str_replace("'", "‘", $alt);
Does anybody know what good this may do?
The quote is allready escaped in the previous lines so what purpose would it serve to make it a fancy quote?
I found that commenting out this line does solve my problem with the utf-8, but i wonder what i may be breaking?
Any input please?
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Go to Page 575 and follow the discussion about why this was added to the current IH2 release..
Ahhh, thank you for this fine example of having a rock solid memory sir, i am impressed :smile:
Now that i understand why it is there i feel much better leaving it commented as is.
thanks!
Jeroen
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
Ahhh, thank you for this fine example of having a rock solid memory sir, i am impressed :smile:
Now that i understand why it is there i feel much better leaving it commented as is.
thanks!
Jeroen
Ahem.. Technically it's ma'am:laugh:..
DIVAVocals
Quote:
diva
Definition
di·va
di·vas Plural
NOUN
1.
woman opera singer: a distinguished woman singer, especially one who sings in operas
2.
successful woman: a successful woman performer
[ Late 19th century. Via Italian < Latin, "goddess" ]
Glad I could help though..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Ahem.. Technically it's ma'am:laugh:..
DIVAVocals
Glad I could help though..
Woops, today turns out to be a learning curve :laugh:
thanks ma'am
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Go to Page 575 and follow the discussion about why this was added to the current IH2 release..
i wonder what result would be achieved with the additional images if the code would be rewritten like this:
PHP Code:
//escape possible quotes if they're not already escapped
//$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
//$alt = str_replace('"', '"', $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
I cant reproduce because i am showing medium images as additionals in my shop, but if someone is willing to take a look i would be interested to hear.
cheers,
jeroen
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
i wonder what result would be achieved with the additional images if the code would be rewritten like this:
PHP Code:
//escape possible quotes if they're not already escapped
//$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
//$alt = str_replace('"', '"', $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
I cant reproduce because i am showing medium images as additionals in my shop, but if someone is willing to take a look i would be interested to hear.
cheers,
jeroen
Okay.. You KNOW I'm code challenged.. :laugh: I could go home, have a glass of wine and figure it out..
or
I can cheat and ask you to 'splain it to me..:laugh:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
Okay.. You KNOW I'm code challenged.. :laugh: I could go home, have a glass of wine and figure it out..
or
I can cheat and ask you to 'splain it to me..:laugh:
As you are throwing a glass of wine into the discussion i would say that option would always win it in my book hehe...
Just can't get my head around why the code would be a problem for the additional images. I might be tempted to run a default cart in my xampp and see for myself, if i wasn't drinking my last can of beer i would have probably allready done so....ahhh...:wacko: i should probably go to bed :yes:
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
i wonder what result would be achieved with the additional images if the code would be rewritten like this:
PHP Code:
//escape possible quotes if they're not already escapped
//$alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
//$alt = str_replace('"', '"', $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
It works fine on my test setup,
Set up a wamp server on your local machine, makes testing a heck of a lot easier
I tried similar with html entities but my knowledge of PHP isn't that great,
hence the hack which I knew would work, as expecting people not to use apostrophes in product names is a bit daft really.
Nice to see my hack replaced with some nice correct code
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
As you are throwing a glass of wine into the discussion i would say that option would always win it in my book hehe...
Just can't get my head around why the code would be a problem for the additional images. I might be tempted to run a default cart in my xampp and see for myself, if i wasn't drinking my last can of beer i would have probably allready done so....ahhh...:wacko: i should probably go to bed :yes:
There's ALWAYS wine in the discussion when I'm working from home!:laugh:
Quote:
Originally Posted by
nigelt74
It works fine on my test setup,
Set up a wamp server on your local machine, makes testing a heck of a lot easier
I tried similar with html entities but my knowledge of PHP isn't that great,
hence the hack which I knew would work, as expecting people not to use apostrophes in product names is a bit daft really.
Nice to see my hack replaced with some nice correct code
So ladies and gentlemen.. Are we convinced that this is the change that should be made to the code?? If so I'll update the files and submit an update... I'll test too of course, but I trust your findings.. I can simply make the change and submit it without having to test myself..
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DivaVocals
So ladies and gentlemen.. Are we convinced that this is the change that should be made to the code?? If so I'll update the files and submit an update... I'll test too of course, but I trust your findings.. I can simply make the change and submit it without having to test myself..
Please make sure you also comment out the fancy quote line so it looks like this when you test it:
PHP Code:
//escape possible quotes if they're not already escapped
// $alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
// $alt = str_replace('"', '"', $alt);
//replace apostrophe with fancy quote
//$alt = str_replace("'", "‘", $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
second:
there is another problem in this function, the filename gets extracted with substr but it is extracted with the / included.
This makes the final path to the hover image have 2 slashes in the path which is incorrect. (you can see it in the page source)
This can be corrected by:
PHP Code:
//old line in this function
//$products_image_filename = substr($src, strrpos($src, '/'), strlen ($src) - strrpos ($src, '/') - strlen ($this->extension));
//corrected
$products_image_filename = substr($src, strrpos($src, '/') + 1, strlen ($src) - (strrpos ($src, '/') + 1) - strlen ($this->extension));
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
nagelkruid
Please make sure you also comment out the fancy quote line so it looks like this when you test it:
Code:
//escape possible quotes if they're not already escapped
// $alt = preg_replace("/([^\\\\])'/", '$1\\\'', $alt);
// $alt = str_replace('"', '"', $alt);
//replace apostrophe with fancy quote
//$alt = str_replace("'", "‘", $alt);
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
Yes I understand.. I actually will probably just make it a clean inclusion and leave out the old commented out sections altogether.. Seems they are obsolete at this point..
Quote:
Originally Posted by
nagelkruid
second:
there is another problem in this function, the filename gets extracted with substr but it is extracted with the / included.
This makes the final path to the hover image have 2 slashes in the path which is incorrect. (you can see it in the page source)
This can be corrected by:
Code:
//old line in this function
//$products_image_filename = substr($src, strrpos($src, '/'), strlen ($src) - strrpos ($src, '/') - strlen ($this->extension));
//corrected
$products_image_filename = substr($src, strrpos($src, '/') + 1, strlen ($src) - (strrpos ($src, '/') + 1) - strlen ($this->extension));
Got it.. will add this to the changes to be made.. (excluding the commented out obsolete sections..)
-
Re: Image Handler 2 Support
Hi guys, I have very few basic questions regarding that. I luckily installed it on my site and looks like its installed correctly.
But the problem is where I can add additional picture for each product that i have on my website?
I read the IH documentation but it does not tell in detail. anyone has any site where these additional pictures are showing?
I thought it will add additional column in main product page where we can browse another picture from computer?
Can you please help me in this regard,
Thanks
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
arty101
Hi guys, I have very few basic questions regarding that. I luckily installed it on my site and looks like its installed correctly.
But the problem is where I can add additional picture for each product that i have on my website?
I read the IH documentation but it does not tell in detail. anyone has any site where these additional pictures are showing?
I thought it will add additional column in main product page where we can browse another picture from computer?
Can you please help me in this regard,
Thanks
when you go to tools/image handler to get its controls---or click the little pink i in the product listing page you will get the place to add your additional images
they must have the same type of image as the primary one...jpg with jpg--png with png --- gif with gif...no mix and match or the additional ones will not show up.
click the ? and it will give you another window where you will see the main image a bit larger and under it 3 buttons...clck the add image (something like that) button to then browse your computer for the next image for this product.
repeat the add image process with each additional image you wish to add.
I cheat though and upload them all to the server...nameing them as such:
mainimagenameherewithnospaces.jpg
mainimagenameherewithnospaces_01.jpg
mainimagenameherewithnospaces_02.jpg
mainimagenameherewithnospaces_03.jpg
for how ever many you are adding, then in the product page where you put the path for the main image the others will automatically show up when you are through---but you won't see them unless you are in image handler control area or the actual product page in your store.
hope that is what you were asking....head full of flu and meds=brainless
-
Re: Image Handler 2 Support
Quote:
Originally Posted by
DarkAngel
I cheat though and upload them all to the server...nameing them as such:
mainimagenameherewithnospaces.jpg
mainimagenameherewithnospaces_01.jpg
mainimagenameherewithnospaces_02.jpg
mainimagenameherewithnospaces_03.jpg
Wanted to add this: for those who don't want to remember HOW to name images so that Zen Cart will recognize them as additional images, if you upload additional images through the IH2 admin controls, IH2 takes care to properly name your additional images so that Zen Cart recognizes them as such..
-
Re: Image Handler 2 Support
hi i am running latest IH2, digital shop template with zencart 1.3.9h
can someone tell me if it is possible to have a hover image in my subcatagories as here "http://thearmysurplusstore.co.uk/shop/index.php?main_page=index&cPath=7" and also on the product listing here "http://thearmysurplusstore.co.uk/shop/index.php?main_page=index&cPath=7_51" i have seen it on a site.
also since installing ih when you click on a catagory the catagory image becomes fuzzy, how can i solve this?
hope this is all clear and thanks in advance for help.