Yes, my site www.poncik.eu is using windows-1250 charset. I understand now that htmlentities doesn't support this charset. But is there any other way to escape quotes without using htmlentities so I don't get the warning? Or is this line 690 that important for IH3?
All lines in the code are important. Typically speaking..software (well...good software) files don't carry extraneous or unnecessary code. All code that is written is code that is necessary.
Line 689 & 690 of this file: /includes/classes/bmz_image_handler.class.php contains the following code:
While I can't explain what this means exactly (someone more knowledgable about the inner workings of IH3 will need to answer that one) I can say it is necessary code.Code://escape possible quotes if they're not already escapped $alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
I know that doesn't solve your problem, but someone more experienced with php will need to step in here to assist you.
Hi, Thanks, for the support! I am already on it. As suggested by the man, i found a program by typing in "free renaming.. in the big G, that seems to do what i want. I have about 500 images to rename and i have already whittled that down to 350 images with spaces.
I just need to rename twice; once to add the _ and once to remove the _LRG. I am on my way to doing it correctly.
BTW; great readme file!
Thanks, guys and gals
Soul39
While I agree entirely with what scriptjunkie says about extraneous code there are perhaps a few exceptions.
I haven't looked at this really closely but the line of code is 'sanitising' the alt tag before it is output. What that means effectively is that it is removing the double quotes from the alt tag if they are there. Why? Well if you think of an image tag:
you can see that if the alt-text contains a double quote like this ( alt"-"text ) then you are going to end up with poorly formed html. Something like:Code:<img src="whatever" alt="alt-text"/>
which means that the double quotes in the image tag are messed up.Code:<img src="whatever" alt="alt"-"text"/>
That is just an example, htmlentities turns a list of characters into their html entities. It is often used for sanitising user input before it is sent to a web page both for practical and security reasons. Have a read of http://php.net/manual/en/function.htmlentities.php to find out more about what it does.
Personally, I think it would be fine to make sure that all your image names do not contain any strange characters and then just comment out this line. But I am probably going to get seriously criticised for that commentOr you could write a bit of a replacement for htmlentities. Something like:
Which just removes any double quotes but doesn't do anything else so is not nearly as complete a solution. So, you could write a much more complete bit of code that, for instance removed any characters that were not a-z or 1-9. Something like:Code:$alt = addslashes(str_replace('"','',$alt))
None of this is tested so.....Code:$alt= preg_replace("/[^a-zA-Z0-9\s]/", "", $alt);
Nick
iszent.com
installed this today, problem free and works really well.
One thing I would like to do is control is the position of the pop up on hover, to be more central to the screen instead of the left or right of the image (depending on where the mouse is hovering)
Quote:
Originally Posted by Athens Collectibles
Thanks for your comments Dark Angel,
As I said in my previous post, I will go to IH3 after carefully reading the excellent documentation. As for the multiple images: I sometimes have a medium or large image different from the thumbnail but I may change the policy now.
I will see you in the IH3 support thread if everything doesn't go well, although I'm sure it will. I like your site by the way!Thanks for the above reply to the IH2 Support Thread. I have now installed IH3 and use 3 different images (small, medium, large) for each item.A Image Handler has always supported this ability.. Most folks don't use it so they don't know this ability exists.. In the IH3 documentation we included ALL of Tim's original excellent documentation because there are a NUMBER of functions that Image Handler supports that other similar image manage modules for Zen Cart DO NOT support that most people are not aware of..
I don't have any problem but as long as I don't load one image only through IH3, all three images are not served from the cache but from their respective url. IH3 creates its own small images, for example the tiny image appearing in the shopping cart and loads it from the cache folder. I'm not very sure if this is because of improper configuration or it's the normal way it works. In any case, it's not causing problems but I just wonder.
George
Athens Collectibles
ok, yes you upload the largest sized image only and IH3 takes care of resizing them all according to how you have your sizes set in images settings.
you can upload more than one image for your product -- like to show a different angle if needed, or color for instance -- just upload the additional images with the same name as the first but appending the _01 with consecutive numbers for each additional image then they will all show up on the product page.
You can upload all images to the main Images folder or sub folder them your own way in the main images folder.
If it is showing you the link from the bmz_cache folder then yes it is working as it should...those are the optimized ones that IH3 created to cut down on render time for the page.
I hope that is what you are asking.
Bookmarks