The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
I think I see what is going on here. Rename this file by removing _test and placing it in your admin/includes/functions/extra_functions/ directory. Be sure to save the original but I think this one should work for you. If it works be sure to let Jay know.
Jay: commented out line 38 and added line 39. Looks like it was an error in calculating the zoom ratio. (Just checked attachment, and commented out the line I changed without changing it back to the original! It's late, I'm going to bed!
(Oops, just need the one file in that zip, not sure how I got the directory in there again. Either one, both are identical!)
Last edited by greydawgjr; 27 Jun 2008 at 08:47 AM. Reason: attachment screw up
Thank you man. After I replace the file,the following error message appear.I use AJAX Image Swapper v.3.1.1.
Fatal error: Cannot redeclare upload_resized_image() in /usr/ide/webs/e08050901/ROOT/admin/includes/functions/extra_functions/ais_image_functions.php on line 14
Hmmm, we aren't redeclaring anything here, although the file I edited came from 3.1.2 but I believe they are the same between versions. I dropped the new file in my install with 3.1.1 and had no issues. Where are you getting that error; admin, frontend, after trying to add an image?
All I did was change how the ratio was calculated. Originally it was this:
and I changed it to this:PHP Code:
$zoom = $width / $currheight;
You might open you original file and replace line 38 with the second line above and try it that way. It does work (at least for mePHP Code:
$zoom = $height / $currheight;
)
Look at your images though... Your large size is 440 x 514 for a (w:h) ratio of .85, however your medium is 308 x 420 for a ratio of .73.
So what we have is 420/514 = .81 and .81 * 440 for 359. 359/420 = .85 just like 440/514. Maybe I'm missing something, (I think this does assume that your AIS config has 359 and 420 as your medium image dimensions). Especially since landscape images are calculated by taking $width / $currwidth and that's working, which is what I believe Jay meant to do for portrait images.
Give it a shot and let us know what happens...
HI Jay,
After I installed everything followed by the instruction, there is still some bugs:
I go to Admin-> Catalog-> AJAX Image Swapper v.3.1.2
I choose "Select category" but the product on "Product name:" won't show up.
Please kindly help!
Once I get everything fixed up I will definiately donate to your website.
Cheer!![]()
Jay can probably provide more specific help but in the meantime can you verify that there is a file called mootools-complete.js in your admin/includes/javascript/ directory? This file is found in the mootoolsonadmin directory of the install package. See this post for further discussion:
http://www.zen-cart.com/forum/showpo...&postcount=214
Hi John,
I realized my original configurations were for landscape so the edit I did was never actually being called. I changed it to portrait and tried again and have been unable to produce any error. Furthermore, it's working PERFECTLY!
Maybe if you had AIS up when you swapped out that file it was complaining? Give it another shot, let me know if you need help...
Bookmarks