Zen Cart Logo
Forums / All Other Contributions/Addons / AJAX IMAGE Swapper support thread

AJAX IMAGE Swapper support thread

Views: 172,482

Results 241 to 260 of 786
26 Jun 2008, 14:50
#241
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

AJAX IMAGE Swapper support thread

Hello, I have installed Ajax image swapper and I love the module but I´m having trouble with internet explorer and image sizes.

With firefox everything seems to go allright but with explorer when you go to http://www.piperitahouse.com/menta/index.php?main_page=product_info&cPath=7_10&products_id=6 for example and I click on the images to zoom them, when I return to the page the little thumbnails are huge and the whole page is distorted.

Please help me with this issue.

Thank you very much.

Jacobo.

26 Jun 2008, 19:13
#242
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

xtinexoop:

Nope - I'm definitely dim.

I have now installed it onto a server based demo shop. See
http://cumfybumfy.co.uk/zenshop

PHP is 5.2.6 (Zend 2.2.0) , SQL 5.0.51a-community

I have all the menu options that I think I need on the admin console, but it doesn't seem to be doing anything to the products?

Please tell me I am missing something really stupid in the 'how to use it' stakes.

Christine

Hi Christine,

Did you remember to make the changes to the tpl_product_info_display.php?

26 Jun 2008, 19:23
#243
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

MeltDown:

The verbage in the Readme instructions has my head spinning a bit. :dontgetit

From the readme, what is this referring to?

Secondly, after attemting to install the SQL I am receiving this:

I had already had Faul Slimbox installed on my site prior to installing this module. Also, as I mentioned previously, I do also have IH2 installed. Should I uninstall Faul since it is incorporated into the mod? Or should I not run the SQL for the AJAX mod? :blink:

Any help would be appreciated.

I think that Jay is just saying that if you're already using the mootools library there is no need to install it twice since he hasn't modified the library or taken out what he isn't using.

I can't be much help on the sql thing, but you do need to run the AIS sql patch to get everything else that AIS needs installed, for what that's worth. I don't know AIS's compatibility with IH2

26 Jun 2008, 19:25
#244
xtinexoop avatar

xtinexoop

New Zenner

Join Date:
Mar 2004
Posts:
34
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Arghhh... I did when I first installed it... but I didn't use that install because I got sidetracked with XAMPP probs, and I forgot to do it for the classic template & the new one I was testing!!! arghhhh!

That was it! Thanks

Christine

26 Jun 2008, 21:08
#245
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hello, apart from the size error on microsoft explorer (something to do with the cache, when I access the full image and then return to the product info page, the small pictures os the multiple images are HUGE) now I have this new error:

Note:
Orphaned data example: Image row pointing to empty attribute_id / products_id,
it could happen from for example if you removed a product before removing its attribute_images

AIS is completely blocked.

Any ideas?

Thank you Thank you Thank you.

26 Jun 2008, 21:49
#246
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Sorry for that last extremely stupid post-
AIS wan't working, i re-uploaded the files and now it's ok.
I posted the note, the perennial note, as an error, must be tired and having allucinations.

I still have the same problem with explorer:

if you go to http://www.piperitahouse.com/menta/index.php?main_page=product_info&cPath=9_19&products_id=21

and you play with the two images you will see what im talking about...

Ohhh the pain, the terrible pain...

26 Jun 2008, 21:56
#247
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Arquetipo:

Hello, apart from the size error on microsoft explorer (something to do with the cache, when I access the full image and then return to the product info page, the small pictures os the multiple images are HUGE) now I have this new error:

Note:
Orphaned data example: Image row pointing to empty attribute_id / products_id,
it could happen from for example if you removed a product before removing its attribute_images

AIS is completely blocked.

Any ideas?

Thank you Thank you Thank you.

Where are you seeing that error?

Also I looked at the page source of your site, your thumbnail images are actually 640 by 427 pixels. I can't say why that is because it's obviously resized the medium one. So it's not that IE is messing up somehow, it's that other browsers are just paying attention to the height and width rules and cramming the large image into those dimensions and IE isn't. If that is a production site and you need a quick fix I'd resize the images manually and overwrite the ones on your server (use the same file name of course). I think that'll leave the browsers that are working alone and fix your IE issue. Are you uploading the largest image you have to the small image field in AIS? If you do that it should be making a thumbnail (keeping the original file name), a medium image in your medium directory (appends _MED to file name) and large image in your large directory (appends _LRG to file name).

26 Jun 2008, 22:23
#248
arquetipo avatar

arquetipo

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hello,

I´ve tried introducing the images with AIS in http://www.piperitahouse.com/menta/index.php?main_page=product_info&cPath=9_19&products_id=22
and allthough the jpeg compression is a bit low the resizing problems are solved, but new problems appear on the produc listing

The image os the product appear smaller.

There seems to be some kind of incompatibility between file-names.
When i use zen cart catalog or Image Handler a lot of incompatibilities appear...

What am I doig wrong?
Why firefox works with my last page and explorer messes things up?

Thank you.
Jacobo

27 Jun 2008, 04:37
#249
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

john4:

the images!:D

Hey you're right! That's weird... I'll take a look over the weekend.

Thanks very much for letting me know :)

27 Jun 2008, 04:41
#250
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

MeltDown:

Back-to-back-to-back posts! I know, I hate me too!!

Just noticed: After installation there is, as should be, a Admin - Catalog - AJAX Image Swapper Manager. However, there is not a Admin - Configurations - AJAX Image Swapper where there should be. Also, if you look at a product page, there is no main image, just the annoying spinning thing.

That's connected to the sql error you just got when installing. Try running the sql installer from line 93 to bottom.

Yeah thats sorta annoying isnt it heh

27 Jun 2008, 04:49
#251
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

xtinexoop:

Nope - I'm definitely dim.

I have now installed it onto a server based demo shop. See
http://cumfybumfy.co.uk/zenshop

PHP is 5.2.6 (Zend 2.2.0) , SQL 5.0.51a-community

I have all the menu options that I think I need on the admin console, but it doesn't seem to be doing anything to the products?

Please tell me I am missing something really stupid in the 'how to use it' stakes.

Christine

Hi Christine, the link's not working? Think it works fine with stock by attributes module.

Have you made the changes to tpl_product_info_page.php?

27 Jun 2008, 04:52
#252
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

xtinexoop:

Arghhh... I did when I first installed it... but I didn't use that install because I got sidetracked with XAMPP probs, and I forgot to do it for the classic template & the new one I was testing!!! arghhhh!

That was it! Thanks

Christine

Whoops didn't read this one, case closed! Well done for getting this right:clap:

27 Jun 2008, 05:16
#253
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

greydawgjr:

Where are you seeing that error?

Also I looked at the page source of your site, your thumbnail images are actually 640 by 427 pixels. I can't say why that is because it's obviously resized the medium one. So it's not that IE is messing up somehow, it's that other browsers are just paying attention to the height and width rules and cramming the large image into those dimensions and IE isn't. If that is a production site and you need a quick fix I'd resize the images manually and overwrite the ones on your server (use the same file name of course). I think that'll leave the browsers that are working alone and fix your IE issue. Are you uploading the largest image you have to the small image field in AIS? If you do that it should be making a thumbnail (keeping the original file name), a medium image in your medium directory (appends _MED to file name) and large image in your large directory (appends _LRG to file name).

Exactly! Good luck in getting that done

27 Jun 2008, 05:23
#254
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Location:
Australia - Melbourne
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Arquetipo:

Hello,

I´ve tried introducing the images with AIS in http://www.piperitahouse.com/menta/index.php?main_page=product_info&cPath=9_19&products_id=22
and allthough the jpeg compression is a bit low the resizing problems are solved, but new problems appear on the produc listing

The image os the product appear smaller.

There seems to be some kind of incompatibility between file-names.
When i use zen cart catalog or Image Handler a lot of incompatibilities appear...

What am I doig wrong?
Why firefox works with my last page and explorer messes things up?

Thank you.
Jacobo

Thats the weirdest problem I've ever seen with AIS!

Looks like the javascript for AIS crashes with those of other module's. Try disabling the other modules' javascript and see if thats working. If you need me to debug it for you, let me know via pm.

27 Jun 2008, 07:43
#255
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

john4:

thank you for the clear explanation.I know the logic now.
My configuration:
Small w75* h88
Medium w360h420
Large w514
h600
*all the three proportion is 75:88=360:420=514:600=6:7

the image original size w600700.
After it is uploaded by AIS, the 3 sizes are below:
Small w64
h88
Medium w308h420
Large w514
h600

now we should know the problem. the proportion cannt be kept at smal size and medium size.:blush:

You can click here to see the wrong operation now :
http://www.he15.com/index.php?main_page=product_info&cPath=6&products_id=76

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!)

27 Jun 2008, 08:56
#256
john4 avatar

john4

New Zenner

Join Date:
Jun 2008
Posts:
18
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

greydawgjr:

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!)

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

27 Jun 2008, 16:14
#257
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

john4:

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:

$zoom = $width / $currheight; 

and I changed it to this:

$zoom = $height / $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 me :D)

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...

27 Jun 2008, 19:37
#258
iammad avatar

iammad

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

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!:smile:

27 Jun 2008, 19:50
#259
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

iammad:

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!:smile:

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/showpost.php?p=568949&postcount=214

27 Jun 2008, 20:22
#260
greydawgjr avatar

greydawgjr

New Zenner

Join Date:
May 2008
Posts:
65
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

john4:

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

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!:clap:

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...