Just found out the new forums are in effect ;-) Here's the new support thread for Image Handler 2 picking up where the old support thread left. I assume you have read the IH2 documentation already.
Cheers,
Tim
Printable View
Just found out the new forums are in effect ;-) Here's the new support thread for Image Handler 2 picking up where the old support thread left. I assume you have read the IH2 documentation already.
Cheers,
Tim
Heeelp Tim!!:cry:
I just installed your last version of IH for ZenCart 1.2.7 and I cannot access my admin site.
When I try to enter my ZC admin, I receive this error.
When I enter my front end, I receive this orror:Code:Fatal error: Cannot redeclare zen_get_small_image() (previously declared in /home/mysite/public_html/shop/includes/functions/extra_functions/functions_images.php:302) in /home/mysite/public_html/shop/includes/functions/extra_functions/functions_bmz_image_handler.php on line 86
Can you help me out with this one?Code:Fatal error: Cannot redeclare zen_get_large_image() (previously declared in /home/mango05/public_html/compras/includes/functions/extra_functions/functions_bmz_image_handler.php:95) in /home/mango05/public_html/compras/includes/functions/extra_functions/functions_images.php on line 226
Thanks!
Mike
I downloaded the IH2 with a few promblems but was able to go back through and fix them (I had a previous version installed)...
I have been able to add photos (super quick thank you)...However, I haven't figured out how to add additional images. If I add them like I do the base images, it renames them correctly base_01....but they aren't showing up ???? I searched but couldn't find an answer via the forum or your site....
thank you
I also added this to the IH forums, just to cover my bases.
Quote:
Thanks for the terrific addon. I won't waste your time. I have B'd-up my site as suggested and have read carefully about not overwriting files. But before I push the IH files to my site via FTP, I wanted to be get some clarity on a something.
If within the IH install .zip, there are files, (.gif's, .jpg's, .php files, css', etc.) that have the very same file name as files currently housed in identical directories on the site, I should move ONLY those files that are different in the IH install .zip to my site?
Naturally, moving identical files over will overwrite what is currently on the site, but I see under the admin/includes/... (purely for example) even images in the IH install .zip are duplicate files names - in some cases - to those on the site.
For instance, does IH need me to upload "icon_xxx.gif" to my site if I already have, in the very same directory, a file named, "icon_xxx.gif?"
This question applies to all duplicate files names I am seeing - not just images. As a matter of fact, icon images are my last concern.
I just don't want to replace even a single file that has a special purpose within my existing site that could be replaced by an IH file that, though named the same, has an entirely different IH-specific function and is thus intended to impact an entirely different string of events.
Thank you in advance.
Thanks anyways, I found the answer in the old thread. I pasted it here so anyone who has the same problem, could be helped.
I had the old release of Image handler (I didnt even know that). So I just deleted the files indicated above and everything is perfect now.Quote:
"You seem to have an old Image Handler 1.x installation before installing IH2. You need to delete the old includes/functions/extra_functions/functions_images.php and admin/includes/functions/extra_functions/functions_images.php."
Mike:smile:
Why did I open my mouth? Lol!
Problem here:
Images in my site have dissapeared! In my homepage, they are gone, they just appear if I enter a category and not all of them. In the products info pages, I have lost my images too.
In the admin, Im receiving this error when I enter to Catalog/ Categories / Products/ Product:
Any ideas?Code:Fatal error: Call to undefined function: zen_calculate_image_size() in /admin/includes/modules/product/collect_info.php on line 474
Thanks for your help!
Mike
I'm sorry there is no easier way to update from an old image handler installation to the new one. Some files are not needed anymore and since the resizing went from admin side to the catalog side (on page request), some files in the admin section need to be replaced by their stock zen-cart equivalents.
The most generic way to update from a previous image handler installation would be as follows (I suppose):
Have a look at the old image handler zip. If you don't have it anymore, you should be able to retrieve the latest of the old 1.x releases on the breakmyzencart attic page. Replace every file on your server which matches the ones found inside the zip with it's stock zen-cart version. If there are no stock equivalents, delete them. (Pretty much a deinstallation). You shouldn't need to replace your template files as some functions have been added for backwards compatibility. Then go ahead and install the IH2 release.
I know, this is quite tedious and you might not need to replace all the files but as I said there is no easy way and I just can't know every possible problem that might surface since the possibilities of customizations are many. So apply the steps above with caution and backup your system before you start!
@Scott:There is just one additional icon which image handler needs, the other icons are modified to provide a more consistent look. All other binaries are needed. You can safely skip the duplicate icons and you can safely overwrite those icons, it's your choice. You should check your php files though, if they are already on your server. Image Handler 2 won't work if you miss a file provided in the zip, so you need to either overwrite or merge the matching php files. You can't just upload a part of it.
Kind regards,
Tim
I'm a dope. Forgot to ask a followup question. With IH for v1.3, I can display multiple images for each product and have each have hover enlargement behavior?
(I need 4 per product in most cases) It's a sports memorabilia frameshop and the client wants the frame and matting choices (4 per product) to have a hover effect. This is doable?
You can have as many additional images as you want. It is just like stock Zen Cart with server side resizing and a convenient interface to add the additional images.
Cheers,
Tim
Thanks for being johnny on the spot with the replies. Yeah, I haven't gotten my head around how this stock multi-image thing works, but it appears I need to name them with the same suffix and put them in respctive folders named, med and lrg. This is my guess anyhow. Hopefully, your UI is money in this area and helps this grasshopper find his way. DANKE!Quote:
Originally Posted by timkroeger
Have a look at this section of the documentation It features a partial screenshot of the manager page. The first row is the base image (various sizes), the second and third row are the additional images. If you click the add button (the one to the right which is cut off, so you can't actually see it), you are able to specify another additional image. You can delete the images, too or upload a different image instead of it.
Cheers,
Tim
edit: You can provide custom suffixes or have them automatically created. No need to rename your files prior to uploading them as additional images.
edit: As long as you don't want images with different content to show for medium and large images, you needn't worry about _MED and _LRG extensions.
The written word is being lost on me here. I'll try to simplify my explanation. I have more than one image uploaded to the site via IH for this product: http://legendsgallery.net/ecomm/cata...roducts_id=180
Yet, I see only one displayed and I only see the hover behavior from the general products listing page - not when I visit a single product page, which is where I would like to have multiple images displayed, with each having the hover behavior.
This way I don't need to define framing and matting attributes for every last product I put up here.
I'm trying to understand, so please be patient with me. Thanks in advance.
I got it! Took 3-wks to achieve this result, but I got it! Thanks Tim. Feel free to see the result of my toil and your headache dealing with me.
http://legendsgallery.net/ecomm/catalog
Not much there yet, and the css needs some love, but it's getting there.
Thanks Tim! you are very good explaining things :smile:
I messed up my cart three times this week, trying to install IH, lol. Luckily I had previous backups so it was not a major problem. I will try what you say and report back.
Cheers,
Mike
Just thought I'd share my success with IH2. Sometimes it is nice to hear the good.
I just downloaded it today, backed up everything, followed the directions, and had it up and running on the first try. Great job!
Thanks, and will send a donation when the store goes active.
-Wayne
is anyone else having issues with IH2 & getting html area to activate?
related post:
http://www.zen-cart.com/forum/showthread.php?t=36094
it is possibly an issue with html_ouput file???
Please look at my site www.musicplace.com.au/catalogue
Can anyone enlighten me as to why the no_picture.gif will not show on the index page but it does show on the product page?
I have my no_picture.gif in the root of the image directory.
Just refresh your screen until you find a product without an image. I have left the image field blank for products without an image and have set up IH2 correctly...I think.
Thanks, Rob
I have two hopefully simple questions for IH2.
1. Can you, and if so how do you change the size of the medium image ? My small image hoover displays a medium image popup nearly identical to the small image's size.
2. The hoover popup displays the product name also (this looks great) but another product name popup is overlaid on top of it. Can I somehow turn the second popup with just the product name off ?
Adv<thanks>ance
If I have 'IH zoom small images' set to Yes - my whole site jumps and down.
Also - I have a product here http://www.jtsmotosports.com/zenshop...roducts_id=723
with 2 addditional images loaded. If you click on the 'larger image' link for those images - they display the large image for the primary product image not their own larger image.
Thanks
I've installed IH2 and everything seemed OK - got the message it had installed OK, etc. However, the only thing that appears to be working is the automatic re-sizing of images when I upload them. [My php does have the GD libraries.]
I don't see the small icon between the copy and the attributes icon to access the manager page of Image Handler for any product via Admin → Catalog → Categories/Products.
Also, watermarks don't show up on any image size and none of the hover effects appear to be working. [I've checked that I have the relevant feature selected via Zen Cart Admin Panel Configuration → Images.]
I'm a newbie to Zen Cart so I may have overlooked something really simple.
Can anyone advise, please?
I can't get the additional pics to show up...They are listed under the IH2 manager but they aren't showing up in the catalog...Any ideas???
well i got IH2 working with no problems. Only thing I notice is on the Product Info page, It shows the little "+" icon on the picture, which I assume is the "medium" size, since thats the only one i checked yes for ZOOM. But it doesn't autozoom. The small images auto zoom on hover just fine. but when i click on a product and hover over that image, it does nothing.
Also, the rollover doesn't seem to work in Opera. This could of course be an Opera thing.
Check out the IH2 thread in the "contributions" forum archives. I reported the same issue and Tim responded the zoom function for medium to large images is not finished (but works for small to medium images).Quote:
Originally Posted by qhome
Until IH2 is updated you can turn off the med to large zoom icon in IH2 admin.
See http://www.zen-cart.com/forum/showthread.php?t=33373
Woody
Oh drat. I thought that that would have been much better than click to open a larger image...Quote:
Originally Posted by Woodymon
Perhaps someone knows if it is possible to have the image hover/zoom turned on *only* on the product page...
I'd like to have it turned on for the "additional image" on the product page but not all over the shop. This would be my "workaround" option for not knowing how to set up image swap on a v1.3.0.1 shop.
TIA!
Oh ok thanks.Quote:
Originally Posted by Woodymon
Also, there needs to be an update to the Whats New scrolling sidebox contrib to work with this, and most likely the Specials scrolling sidebox, in case the author of those contribs ever reads this.
For anyone who encounters the issues I reported - page jumping up and down and the wrong larger image being displayed when you add multiple images to a product - this is caused when you use - as you always should - your own custom template.
You need to copy from the Image Handler 2 /includes/templates/template_default/css folder : the css, jscript and popup_image_additional folders to your custom template.
Hi there,
I've got a problem where the admin tools for Image Handler 2 just won't show up if the product has a positive quantity.
Basically I've installed the module and it works fine and lets me upload images etc for products that are sold out. But when I go to the image handler page for those that are not sold out. I just get blank space after the
Image Name | Default Size | Medium Size | Large Size | Action
table headers.
I've looked through the code and all I can find is that the getCacheName() in get_resized_image() function of ih_image class doesn't return a file that exists. Now I haven't deleted anything and yet somehow the images don't exist in the bmz_cache folder.
Hope this makes sense, any help would be appreciated.
Have fun,
Graeme
Tim (or anyone else that might know...)
I have scanned thru some of the old threads and am going blind trying to read thru all the threads so I will ask the questions:
1) has there been a resolution found for the click for larger image not working? (I am running Mac OS X/Safari)
2) can someone go over the structure for how the small/medium/large images are being stored
a) in a couple of threads I saw a conversation saying images are stored:
images/yourfolder/original.jpg
images/yourfolder/medium/original.jpg
images/yourfolder/large/original.jpg
b)in other threads I saw conversations about different structures, some using the bmz_cache folder, and some using other structures
can someone please go over how the 3 images are being stored please....
TIA
Tim,
A note to say thanks for this contrib. It is wonderful.
I am migrating to 1.3+ and have installed an Algozone template (groan). It seems Algo has some special functions for image handling that do not play well with IH2. I would be happy to pm or email the two html_output files if you think that would help. Kuroi and Merlin have given very helpful input on this but no total solution yet.
Not urgent but thought you would want to know of the conflict.
I we get it resolved I will gladly post the solution for all to see.
@anyone having the jumping page syndrom, you need to copy javascript and css files from the template_default folder of this contrib to your custom template. Actually there's a part about it in the documentation. I guess I should have made it more prominent and include a template_custom folder as Woodymon suggested earlier. Maybe it's time to start the IH2 FAQ, too. I've placed it into my public wiki, so everyone is invited to contribute!
@jeff: Have a look at my first post on page 14 of the old IH2 support thread. The first three paragraphs should contain the information you're looking for.
@sermonzone: I have never heard of that template. Can you give some links to threads, showcases, etc...? Generally it might boil down to merging the two conflicting files but I don't have much time to do this. Send them to tim AT breakmyzencart DOT com and I'll have a look at them as time permits. Are you still on 1.2.7 or are you on 1.3 already?
@hutting: So getCachename returns a hashed image name that is physically missing in the folder? Maybe it can't be created due to wrong permissions? It sounds a bit strange as the method should return at least the uploaded image if everything else fails (fallback).
@prellis: If you are running 1.2.7 with a custom template, you need to update the additional_images php files according to the ones in template_default. If you are running 1.3, the additional_images code on the catalog side can be found in one place and should have been replaced by the file provided by IH2. Maybe you missed that file?
@Graham: Sounds to me you're missing some files. Make sure you uploaded all files. Have a look at the documentation again.
@Woodymon: Thanks for stopping by and helping out as a human search engine :wink2:
Cheers,
Tim
Tim> Thanks for the response. I've had a further check and the quantity thing appears to have been a red herring. The problem is that the images that have a file size of more than 700k are being uploaded to Zen Cart but not to the bmw_cache directory. Is there a limit on file size set anywhere that I can increase?
It's just a problem because we were trying to upload photos direct from a digital camera where the files are like 1.2MB for a JPG without needing to edit all of them to make them smaller.
Is this possible?
Tim,
Sent files by email. Algozone is an OSC site that edits graphics to work in ZC. I aksed many pointed questions about the template working with 1.3+. Purchased based on answers. Turns out Algo was misleading.
Thanks again for a very good contrib.
Does anyone know if there is an imaging solution that uses the conventional 'prefix'.'suffix' naming convention. That is, use the DB ID# for each product as its prefix, and the suffix being _small.jpg, _medium.jpg, or _large.jpg. It seems to me that this way of image handling would be more beneficial to Zen-Store owners who do not know much about ftping images, as images would be replaced automatically and thumbnails would be created on the fly. Tried IH2's latest release, and it is everything one could hope for except being friendly to the average middle-aged store owner.
Zen-Cart has revolutionized the way business is done online, and I am truly grateful to the people involved.
Jobi
@hutting: How large a file you can upload depends on yours server configuration. It's more the dimensions than the size of the image that imposes restrictions. I suppose you're using GD (you are if you don't have ImageMagick installed). The only way to make IH2 resize the larger files is to increase the amount of ram, the php-interpreter is allowed to address. If you don't own your server or at least have rented a root server, you may be out of luck here since you won't have the permissions to change the php configuration.
@jobiwankinobi: I don't know what you mean. It is a good thing you don't have to learn about _MED and _LRG image suffixes, isn't it? Those things are only important if you want to FTP your images to the server. And even with IH2 you can still do that and it will behave just like you expect from Zen-Cart.
So please explain, why is it more beneficial to Store-Owners, who don't know much about FTPing files to the server, to have files created with conventions you only need to care about IF you are FTPing files?
The manager page takes care of prefixing for additional images. It takes care of suffixing for medium and large images, too, if you want different images there. You can even FTP files with the right prefix/suffix combination and IH2 will pick them up. Essentially IH2 moves image resizing from your browser to the server. It doesn't mess with your files. It's just like a pimped-up browser cache, only it is located on the server.
I explained before, how IH2 works, you might want to have a look at that thread. It's inner workings are quite complicated, that's why it is so easy to use. So far I have only found it to confuse people who know about how stock Zen-Cart imaging is supposed to work :wink2:
Cheers,
Tim
Quote:
Originally Posted by timkroeger
Tim
thanks for clearing it up for me and saving me time from scanning the other threads...
now lets see if we can figure out whats going on with the popup image - I am digging into code as we speak....
never mind...
deleted post....
I replaced the includes/modules/pages/popup_image folder and now popups are working correctly...
I dont think I changed anything in that folder for any mods I am using so its very strange.....
go figure...
Tim,
Thanks for your patience with computer caveman (me). I was in left field about image handler 2, it is truly a valued contribution.
Joe
Im install this mod,
i dont see old pictures ... IH dosnt show me product images for start work with it
I need add all this pictures agane ?
Damn , I cant edit my previous post
I will say - I cant see categories images...
Im must be ?
Image Handler dosnt work with categories pictures ?
Hi, got the following Problem and need a helping hand. Image Handler installed successfully. But get fatal Error when starting the manager:
Fatal error: Call to undefined function: imagecolorallocatealpha() in /home/www/htdocs/tightfun.de/shop/includes/classes/bmz_image_handler.class.php on line 506
Thanks fo any Help
D.C.
After installing a new cart and installing IH2, I added lots of products and started to use the IH to add images and additional images, the first few went on OK but now I get the following error.
Error!
Unable to determine the page link!
Function used:
zen_href_link('', '', 'NONSSL')
I find this strage as it was working OK, but then just stopped, I have tried clearing the image cache. - Any ideas?
Tim,
When I hoover over an image on the Product Listing Page I get the medium size popup just fine - and then it is popped over again with just the item name popup. Do you know how I can stop the second popup?
Thanks
Good thing I read the other thread, too. Otherwise I wouldn't have known what you're talking about :wink2:
I know, the looks might not be appealing, but the alt attribute is a functional attribute and should be present in every image, so people, who for whatever reason are not able to view an image (or have it displayed), get the alt attribute instead. Popular browsers interpret this as an additional popup-hint. Have that in mind when you strip it from your site.
If you nevertheless want to remove the attribute, there are several ways to achieve this:
- keep your mouse moving :wink2: ok, not really a solution...
- edit the zen_image() calls in your template to not pass the alt-attribute (2nd parameter)
- edit includes/functions/extra_functions/functions_bmz_image_handler.php
- edit includes/functions/html_output.php
I'd prefer editing the template files and passing an empty string instead of a variable to the zen_image() call. This way you have complete control over where the alt tag is should be missing and where not (medium images for example).
You could also edit line 78 of includes/functions/extra_functions/functions_bmz_image_handler.php (line number may be different for you) to pass an empty string for alt:
This way you don't have to change a lot of zen_image() calls, and you're done with one simple code change. However, the alt tag will be missing in each and every image.Code:return array($src, '', intval($width), intval($height), $parameters);
I wouldn't suggest editing the includes/functions/html_output.php file since it's a core file and more likely to change in new versions of Zen-Cart and Image Handler than functions_bmz_image_handler.php.
Cheers,
Tim
Just to let you know, the error I was getting has cleared it's self up.
Unable to determine the page link!
Function used:
zen_href_link('', '', 'NONSSL')
I have no idea what caused the error, I hope I never see it again.
Tim,
Thank you for the detailed post. Works perfectly.:thumbsup:
hey,
I installed IH2 and it was working perfectly (except it mixed up some pix - but that's fine and fixed)...when i installed the SEFU, IH2stopped working (no popup pic -wrong links ?)
I'm not sure why it's happening, in the Admin it shows as installed and works fine, but only in the admin...Help
thanks.
I suppose you're using Zen-Cart 1.2.7 because SEFU is not yet compatible with Zen-Cart 1.3.x. The problem is because both SEFU and IH2 modify includes/functions/html_output.php. The next release of SEFU will work along with IH2, I'm working on it right now but it'll still be a while before it's out. For the time being, you could just merge the two files. Take the IH2 version and replace the complete zen_href_link() function with the one from SEFU. That should solve the problem.
Cheers,
Tim
I still have issues with the IH2. I have found some products in my cart will not allow the IH to add additional images to them. The screen refreshes and I get an error at the top saying -
File exists! Please alter the base name or suffix.
This happens when I select an image that has never been uploaded before.
Any ideas?
THANX !Quote:
Originally Posted by timkroeger
everything works fine now !looking forward for the new release of SEFU.
Thanks again.
Just got a quick question. Found the question on the breakmyzencart forum but no reply.
"qoute of other forum"
I am just about to install this module and I am conerned about overwriting existing PHP files. In the past, addons that simply overwrite existing files, usually break the code. I have noticed that the following files will be overwritten:
admin/includes/modules/category_product_listing.php
includes/functions/html_output.php
includes/modules/additional_images.php
includes/modules/main_product_image.php
includes/modules/pages/popup_image/header_php.php
includes/modules/pages/popup_image_additional/header_php.php
includes/template_default/popup_image_additional/tpl_main_page.php
Is it safe to overwrite these files? How can I be sure that a more recent update to Zen-Cart did not change any of these files (and would therefore be broken if I overwite them)?
just wondering it would still work if i pur them in template folder (as in the locations they need to be tho)
sorry bout the n00b question... but gotta b dumb to get smart :)
I am still getting the error, it seems to be intermittant. Can anyone help me work out why I am getting this error. I am using zen-cart 1.3.0.1
Error!
Unable to determine the page link!
Function used:
zen_href_link('', '', 'NONSSL')
Looking more and more at this issue I have found that the IH cannot find it's preview images, the gif, jpg,png images are all broken images
Looking that the path the IH has added a directory that is not there.
http://skintightrubber.myzen.co.uk/s...es/ih-test.png
This should read like this.
http://skintightrubber.myzen.co.uk/s...es/ih-test.png
Can anyone advise why i'm getting this behavour?
I have found out the following inform########.
<?php echo HTTP_SERVER . DIR_WS_CATALOG . $images['gifsource']?>
<?php echo $ihConf['dir']['admin']?>
When I place these two statements into the the about bit of the IH code I get the following output
http://skintightrubber.myzen.co.uk/str/
str/admin/
There the site will be moved from the /str folder when the site goes live. At the moment though I think it's causing issues. I does anyone else had any problems when the IH is not the the root of the site?
hi,
i had the same problem.
It seems to be a minor issue since it only affects the admin-preview on a shop below the root directory.
You can solve by editing the file .../admin/includes/functions/extra_functions/functions_bmz_image_handler.php
Just replace
withCode:$ihConf['dir']['admin'] = preg_replace('/^\/(.*)/', '$1', (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN));
The code extracts only the last path and should work on all shops.Code:$ihConf['dir']['admin'] = end(explode("/", trim( (($request_type == 'SSL') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) ,"/") ))."/";
ciao
Once again I think I found what was causing errors with my installation of IH.
The image file name was:
rubber_latex_arm_band(1_stripe)7578_01
the image file name was renamed to:
rubber_latex_arm_band_1_stripe_7578_01
Notice the new file name does not have the ()
Can anyone else try an image with () in the filename and try to add additional images and see what behavour happens.
cant use template overrides with this??? im sure im doing it right... any1 got any hints
(it all installs etc and in admin section it shows pictures exactly just doesnt in the catalog side)
I just installed Image handler 2 and it is looking for the sample images in a double directory. the directory that my zencart is installed is called shopcart... when i saw all the red x's for the sample .png's and .jpg i right clicked and went to properties and it says shopcart/shopcart/ihtest-gif
what could have gone wrong?
hi teebee2e,Quote:
Originally Posted by teebee2e
thats exactly why i posted that bit of code some lines above ^^
Maybe i didnt express myself adequate.
When installing zen in a sub directory of your apache-root the path in "$ihConf['dir']['admin']" is not set correct. But as far as i could see it only affects the preview in admin-section.
You can use the code i suggested OR if you are regex-maniac change the regular expression.
The idea was to cut only the last path from the variable (thats "admin/" on most installations).
Don't worry, ample images just contain some pattern - not so exciting :laugh:
IH2 works just great for me - thanks for that great contrib.
I'm receiving an error when viewing my shop in IE.
This does not happen in Firefox.
I believe it's tied to having the zoom turned on for small images - and the zoom is not functioning on IE (though it works great in Firefox)
The IE error is:
Line: 125
Char: 7
Error: 'pageY' is null or not an object
Code: 0
URL: http://spritelygoods.com/zencart1301...ndex&cPath=2_8
I'm running Zencart 1.3.0.1
and Image Handler 2.
Thanks for your help!
In don't know if anyone's aware, but PHP5 seems to break the png aspect of IH2.
I got an error with png images, and found this thread: which appears to be the fix, but I can't find the right code in IH2.
Perhaps someone else with da skillz might take a look!
I got round it by switching back to php4 in .htaccess, but I'd rather run 5 as it seems quicker.
hi guys,
I need some help here:
I've installed image handler, both in zencart on my box and the one that's going to be the production server.
However, when I upload an image, the resized versions are diplayed only in image handler section in admin, not elsewhere (and not in the catalog). The original images are shown instead.
Now, I think I've seen a post with a solution to this or a post linking to a solution, but I wasn't able to find it so far :(
safe_mode off, btw.
Thanks for any help on this :)
FIRST BACKUP!Quote:
Originally Posted by GazLuvsStace
No overides in admin. So overwrite.
Same with includes/functions
Theory says you should be able to override /includes/modules by using /includes/modules/YOUR_TEMPLATE.
But that does not always work. So for IH2 Final I suggest overwriting files in /includes/modules (that's what I did).
And also overwrite the two files in 'pages' subdirs. Did I say backup first?
But use overrides for all templates.
includes/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php
IH2 Final was released AFTER Zen Cart 1.3.0.1. Tim always uses latest Zen Cart files in his updates. But you should always compare files with a compare utility to before overwriting. (e.g. Beyond Compare or WinMerge). To ensure you will not be overwrite your own customizations and ensure you have correct Zen Cart code revision.
Woody
Bzzt! Warning!Quote:
Originally Posted by Woodymon
html_output not only gets over-written, but it is a core file which several other (I can think of at least 3) plugins modify.
I've seen certain contribs lately that have renamed copies of the file in the folder, so the cart owner can make the choice to rename and wipe the original, or merge it in.
(Another reason for full over-rides!)
Hi Tim & others,
i just noticed that one of the fuctions i used on the previous version of image handler seems to be missing on 2.0
when added a new product / editing on i no longer have the ability to indicate that the image i am uploading is an additional product - is this functionality removed?
Thanks,
Kevin
>> i can't seem to figure out how to upload an additional image at all
did i miss a file upload?
Off the top-of-your-head which three mods modify html_output.php?Quote:
Originally Posted by kelvyn
Yes full overrides is the eventual goal. Until that time...
BACKUP and always run the files through a compare utility. And when testing mods of course this should not be done on a production shop. Hello. If having troubles with mods working correctly then a good testing method is to NOT include ANY code from other customizations/mods. I recommend creating a clean image of a pre-configured Zen Cart installation (fresh db too) which can be uploaded and quickly updated to test a specific mod. This is best scenario when having issues. Then you can install other needed mods to test if for negative interactions/reactions.
Yes renaming a file rather than overriding can sometimes be a safeguard but does not work all the time. You do not want to leave non-working files in some directories as that will cause havoc.
Most folks who ask questions on the mod forums should understand if they have previously installed/uploaded mods or customized their code. And they would know this if following the golden rule of documenting all modifications. Then overwriting (again after backing up) should be a low risk issue.
But again as a rule I run a compare before over writing.
I maintain a spreadsheet documenting files uploaded by each contribution or patch I install and document each time I customize a,file including core files. Then I check against this document whenever installing or updating mods or when modifying code, including official Zen Cart patches.
Would be cool if a "community DB" could be maintained documenting the core files modified by third party mods. Of course checking in changes, keeping it up-to-date and correct could be a daunting mangement task.
Woody
Of the ones I've just installed, and off the top of my head:Quote:
Originally Posted by Woodymon
IH2, any of the SEO / SEFU contribs and "ask a product question".
So in fact, 25% of all the mods I've installed mess with html_output.
Completely agree with your points, there, too!
I don't see that file gets modified very often in 1.3x. Ask a question (Marge) does not modify html_output. You may be referring to another similarly named mod?Quote:
Originally Posted by kelvyn
On one shop I have 25 mods installed and many other customizations. Of these mods IH2 is the only one to modify /includes/functions/html_output.php
Woody
Ask A Question for Zen-Cart v1.3.0Quote:
Originally Posted by Woodymon
Created by: Marg Davison marg AT marg-art DOT com
Yes, you're right, I must be looking at the OTHER ask a question contrib by the other marge ;)Code:====[ ALTER FILES ]===================================================================
Open - includes\functions\html_output.php - Add the following to the end before the ?>
/*
* Output a ASK-A-QUESTION form input field
*/
function zen_draw_input_field_ask_a_question($name, $value = '', $parameters = '', $type = 'text', $size = '22',
$reinsert_value = true) {
$field = '<input type="' . zen_output_string($type) . '" size="' . zen_output_string($size) . '" name="' .
zen_output_string($name) . '"';
if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= ' value="' . zen_output_string(stripslashes($GLOBALS[$name])) . '"';
} elseif (zen_not_null($value)) {
$field .= ' value="' . zen_output_string($value) . '"';
}
if (zen_not_null($parameters)) $field .= ' ' . $parameters;
$field .= ' />';
return $field;
}
I'd be interested to know what you use for your URL rewrites!Quote:
Originally Posted by Woodymon
Been running the Ask A Question for 1.30 from same author. The readme says version 1.0 and is dated 04-06-06. Does not mention anything of editing html_output.php. Strange. And I did not see announcment of updated version. This I just re-downloaded ask_a_question_v1.3.0.zip and the mod readme still shows version 1.0. However the template file and the readme in the latest package are indeed diff from my version and readme now suggests editing html_output as you quoted. But no new features are indications the mod was updated is in readme. The previous v1.0 mod I downloaded works fine for me. Thanks for the update. Wonder what is different in the new version and why Marg did not announce anywhere?Quote:
Originally Posted by kelvyn
No URL rewriting implemented. I have quality search rankings/PR's and don't want to mess them up, even if for the short term.[/QUOTE]Quote:
I'd be interested to know what you use for your URL rewrites!
@Tim - Apologies for hijacking the IH2 thread. Moving the Ask A Question discussion to http://www.zen-cart.com/forum/showthread.php?p=206085
Woody
Damn,
Im turn on SSL for admin zone and cant select Image Handler in tool smenu - Im alway redirected to admin login page...
so zen-cart +chemo SEFU+ IH2 + SSL dosnt worked..
Just a short notice, as I'm very busy: MM has posted a few quick fixes for IH2 which will be in the next bugfix release (which is still a bit out) at the breakmyzencart forums. You might want to check it out as it fixes the IE javascript error and the wrong referenced images in admin/preview. The tip with the png-compression should be
though (intead of 100), I think. (No guarantee, not tested).Code:$quality = (int)$quality/10;
Cheers,
Tim
Tim :) You're fantastic.
Thanks!
Tim replied:
"@prellis: If you are running 1.2.7 with a custom template, you need to update the additional_images php files according to the ones in template_default. "
Promblem:
I'm running 1.2.7...I have the additional pics loaded into H2...they are showing up in admin but they are not on the catalog end...
I took the tpl_main_page.php, which is located in /includes/templates/template_default/popup_image_additional... and FTP'd it over to my custom folder (includes/templates/custom/popup_image_additional)..This didn't work... I couldn't find any other additional_images php files in the template_default folder... Am I missing a file? Or could there be another solution...
Thank you for all your help...
prellis
Just a thought, but are you actually USING the template named "custom"? You can make a template, but until you go into admin and activate it, it won't do anything.Quote:
Originally Posted by prellis
Strangest problem!
Running: 1.27
IH2 was working perfectly.
Problem: I get an error on some products or categories when I click on them to add additional pictures. But some are fine and I can add pictures. Very strange.
error message:
Code:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Images too big for the server to handle?You shouldn't go higher than 2 Megapixels if you are on a shared server.
Kind regards,
Tim
My images are not very big. They are around 50KB each picture.
I investigated into the Error log and all it says is this:
I get error on some products and I get the error when i tried to display one of my categories! I'm just wondering whether the problem could be something to do with my server or the MySQL database?Code:File does not exist: /home/kookoot/public_html/500.shtml
Premature end of script headers: /home/kookoot/public_html/store/admin/image_handler.php
so clarify the radio button for upload as an additional image is missing on the product edit screenQuote:
Originally Posted by sgflowers
any ideas?
I have image handler 2 working fine with the exeption that the larger image pop ups don't work. Nothing happens when you click on the image on the groduct page. Well normally it doesn't .....sometimes the first couple of larger images appear but then nothing.
It is very frustrating as I want to go live with my site and this is holding me back.
Any ideas please...
www.samandsebastian.co.uk
Just downloaded the latest version for zen 1.3...
\includes\modules\additional_images.php
\includes\modules\main_product_image.php
seem to be missing closing ?>
actually most of the php files are missing the closing tag...?
OK, so I did some searches and see this has been discussed before. PHP sucks if it is so sensitive to whitespace after the tag. Yes I've spent hours wondering why a mod didn't work and then noticed some bogus whitespace. Actually I totally gave up on oscommerce partly because an image handler mod wasn't working for that exact reason... lol. Also the mods were full of old potentially unsecure code.
So, then why does html_output have a closing tag and an extra blank line?
http://www.zen-cart.com/forum/images/smilies/wacko.gif
:wacko:
Ok, I've got a really screwy problem and I can't figure out what is causing it, but as best I can tell it has something to do with Image Handler 2, probably related to specific server settings.
We're setting up a ZC install for a client. The whole install works great on my localhost dev server (Windows), and it works great on the live demo site (Linux) which we've been letting him use and play with. We finally got the go-ahead to upload to his real server (also Linux) so I did that this morning - straight copy of the files and database from our demo site (with fixed configure.php file, obviously, for the new locations and what-not). Got all the CHMOD folders and files set up correctly, at least according to the ZC and Image Handler install docs.
Everything on ZC works fine, EXCEPT the catalog pages or any other page where product images have to be displayed. These are now completely blank. In the admin site, everything works EXCEPT Image Handler's manager section. In the Manager section of this, it displays down to "Please donate. Why? One time gift of <textbox>" and then stops. The rest of the page is blank, and View Source confirms that the "don-amount" textbox is the last thing on the page.
Manually adding "error_reporting(E_ALL)" to /admin/includes/ih_manager.php does bring up a bunch of notices about undefined variables and properties, but none of them seem to be show-stoppers and they all also show up on my localhost server (which does work).
The real server does have gd. The rest of the specs are Apache 2.0.50, PHP 4.3.10, and MySQL 3.23.58. It does have Zend Debugger and Zend Optimizer running, which is the only major difference I can tell between the client's live server and our live demo server. Does IH2 have an issue with Zend Optimizer, perhaps? I can't imagine why, but it's the only thing I can think of at this point.
Any help would be much appreciated. Thanks so much!!!
---Jamin
is this a zencart 1.3 thing i can't figureout why this option isn't showing anymoreQuote:
Originally Posted by sgflowers
Nevermind my above post. I deleted the entire ZC directory on the final site and re-uploaded everything, and now it's working. I'd tried that once before to no avail, but it seemed to work the second time. Silly me.
Anyhoo, yeah, disregard my above post. Sorry.
---Jamin
I'm having this exact problem as well. I modified the jscript_imagehover.js file as recommended on the breakmyzencart forums, but the problem is still there. The only instances of 'pageY' in my file are as follows:Quote:
Originally Posted by woodlandsprite
Any suggestions? Thanks so much - I'm totally new to all this...Code:if (docheight - e.pageY < zoomimg_h + (2 * padding)){
ycoord += e.pageY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
} else {
ycoord += e.pageY;
exact same pageY problem here...i tried to figure out what is going wrong but cannot seem to get any closer to a solution.
Help would be highly appreciated!!!
change the pageY's to clientYs and see if that fixes your issue.
Yes! That seems to have worked! Thanks woodlandsprite!Quote:
Originally Posted by woodlandsprite
i found 3 or 4 PageY's in tje .js file and changed them to ClientY.... no errors no more.. yet ;-) for before it also seemed to not always occur.
THANKS for the tip!
Someone please... ?!
I'm trying to use IH2 on Z126, everything seems perfect except additional images not working, any clues? I haven't switched to Z130 cause the payment module I'm still using only works on Z126.
TIA!
Hi all....I just downloaded this contribution and it seems great, but I am getting a ton of errors.
I am getting the following:
Fatal error: Call to a member function on a non-object in /homepages/44/d107892304/htdocs/modernhq/includes/modules/pages/popup_image/header_php.php on line 18
I am guessing this is in the extra definitions file and I actually copied those definitions into the english language file but it still does not work.
Does anyone have any ideas or recieved a large number of these errors???
Thank you in advance
Rob
Quote:
Originally Posted by zenist
i posted on this before - was this functionality removed from IH2?
I too am having tourbles with IH2. I've just upgraded to 1.3.0.1 and had been using the previous version in 1.2.7. Since the upgrade, I'm getting inconsistent results, which is even harder to pin down. Some of my previous additional images are showing up, and some are not. When I go into IH2 to adjust the images, on some of my products the application aborts and I actually have to unplug my router and cable modem to get IE to work again.
Plus, on the new product entry screen, the functionality is no longer there to add multiple images, so the only apparant way to do it is with the admin interface, which is a bummer if that's the "new and improved" method. I haven't found documentation on the "search for old ih 1.x images." Could that fix the problem?
Quote:
Originally Posted by Slapo
I also have this problem. Running 1.3.0.2. When I was testing it'd show images in the admin section under (Tools/IH2) although clicking to preview them or whatever would show nothing. I also got pictures when viewing the categories, but no pictures on the actual product pages. Just the links that would result in no picture also. I was seeing some encoded .jpg being created under the bmzcache folder, but the links on the product pages were to the _MED, etc.
If you added IH2 THEN upgraded to 1.3.0.2 you would have overwritten some catalog files (ie not admin) that are needed to show the images.
You need to compare the html_output.php file that is overwritten and make the changes to the file.
From memory there are 2 lines that are different :wink2:
Your memory is correct - first line in the comments, 2nd line # 36 - changed to:
if ($connection == 'SSL' && ENABLE_SSL == 'true') {
Not sure who you were responding too, but I was trying to install IH2 after upgrading to 1.3.0.2. Not sure really what is causing images to not display on product pages, but in the category views.Quote:
Originally Posted by Reesy
What I am kind of understanding from this thread is that I should install IH1.3.0.2 and then upgrade to IH2....I am so confused.
Webrob and others:
You should use WinMerge or some other file comparison utility to check the files included in the v 1.3.2 patch to those that are affected by the IH2. Make the appropriate adjustments to the IH2 files (or vice versa depending on how many changes need to be made) and install them.