Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
DivaVocals
and for the slightly off topic post.. :laugh:
HEY YOU!!! Long time no chat at!!! **waves**
With apologies to thread readers for being off topic: HEY!!! :smile: How are you feeling?!? Better I hope :smile: I've been reading your replies and thinking....it's so good to see her back! I look forward to your being 100% back whenever you feel up to it :smile:
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
niccol
It is a character encoding issue, which isn't really to do with IH at all.
If your character encoding is set to windows-1250 for your site, which the error suggests, then there is a lot of docmentation out there about issues with htmlentities.
The character encoding is set in the file languages/english.php ( or it's override ). You are looking for a line that looks like this:
Code:
// charset for web pages and emails
define('CHARSET', 'iso-8859-1');
That is the default setting for Zen Cart -- iso-8859-1. It looks like you or someone else has changed this and you need to decide why. Or alternatively other changes have been made to your site that have messed up the character encoding.
As always it is actually a heck of a lot easier for people to help you if you give people a bit more information - like a URL for example.....
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?
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
dee_d_lady
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:
Code:
//escape possible quotes if they're not already escapped
$alt = addslashes(htmlentities($alt, ENT_COMPAT, CHARSET));
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.
I know that doesn't solve your problem, but someone more experienced with php will need to step in here to assist you.
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
ScriptJunkie
I don't know that it's going to be more difficult...but could definitely be time consuming if you have a lot of images.
I don't know of a program that will automatically rename your images for you...but if you've been using extensions on your file names like image1_LRG.jpg (with the _LRG part being the extension)...you're going to want to get rid of the extension anyway. So as long as you're dumping extensions, you can rename the files as you go.
I know that doesn't really help you cut down on the amount of work there is to do, I'm sorry. I'm afraid there's no fast easy way to organize/re-organize a lot of images that have been allowed to pile up in a single folder. That's not a criticism...I've been where you are so I really empathize.
I think you're going to have to take the long road to solve this one. Please don't let that deter you though....the results will be well worth the effort in the long run. The alternative is to leave it as is, and it will only get worse :(
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
Re: Image Handler 3 Support Thread
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:
Code:
<img src="whatever" alt="alt-text"/>
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.
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 comment :smile: Or you could write a bit of a replacement for htmlentities. Something like:
Code:
$alt = addslashes(str_replace('"','',$alt))
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= preg_replace("/[^a-zA-Z0-9\s]/", "", $alt);
None of this is tested so.....
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
Soul39
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
That's awesome! Glad you found what you needed :smile:
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
presh
Hello, I have a question about product images. When I list 4 or so images to come up for a product and list there LRG images too, I get the larger images under the small icon ones at the bottom but cannot navigate around the image. Is there a way that when you go to larger image you can pan through the image as at the momment it just zooms into a particular section of the small image and cannot move around, cheers presh.
v1.3.9h
sorry guys...Wasn't actually using Image Handler 3 when I asked this question I was doing it old school...sorry, I have now uploaded image handler and all is well. Thankyou.
Re: Image Handler 3 Support Thread
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)
Re: Image Handler 3 Support Thread
Quote:
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!
Quote:
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..
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.
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.
Re: Image Handler 3 Support Thread
Quote:
Originally Posted by
Athens Collectibles
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.
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.