Forums / All Other Contributions/Addons / Image Swap via Javascript

Image Swap via Javascript

Views: 22,848

Results 1 to 20 of 95
13 Jun 2006, 12:06 AM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Image Swap via Javascript

Has anyone got this mod to work for 1.3?

18 Jun 2006, 6:52 AM
#2
firefly avatar

firefly

New Zenner

Join Date:
Jan 2005
Posts:
19
Plugin Contributions:
0

Re: Image Swap via Javascript

No, but I'll be happy when someone does.

23 Aug 2006, 11:52 PM
#3
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

Any updates on getting this contribution to work? Not that good in programing, but been trying to modify for over a week now, and still can't get it to work. If someone has got this to work please please please share.

Thank you

29 Aug 2006, 12:24 AM
#4
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

So I guess all the people who used to use this contribution just gave up huh? Dr. Byte any news for this contribution update? I have spent almost 2 weeks now trying and trying and still no go. I have been modding 3 files and they are additional_images.php, main_product_image.php, and tpl_module_main_product_image.php. I kept the rollover_defines.php and jscript_multiimage_swap.php unchange in the same old file structure. Any hints on getting this contribution to work? Would like help getting this to work, please help.........

29 Aug 2006, 9:47 PM
#5
firefly avatar

firefly

New Zenner

Join Date:
Jan 2005
Posts:
19
Plugin Contributions:
0

Re: Image Swap via Javascript

I tried updating the contribution but it's a bit complicated and beyond my abilities. So I'm waiting to see if anyone else will do it before I upgrade to 1.3. I've installed 1.3 and played around with it, but will probably wait for 1.4 or beyond to upgrade unless this contribution is available.

29 Aug 2006, 11:24 PM
#6
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

I agree with you, but I like 1.3 the coding looks cleaner. Im just playing around with the coding, I hope someone can point me to the right direction to get it to work.

2 Oct 2006, 1:05 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Image Swap via Javascript

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Oct 2006, 12:48 AM
#9
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

Thank you thank you.... But fiddling it for weeks and could not get it to work... thank you Dr. byte.....

3 Oct 2006, 3:47 AM
#10
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Re: Image Swap via Javascript

not sure what i did wrong when i installed this module, but i'm getting an error in both IE and Firefox saying that document.imageSwap is null or not an object. anyone have an ideas? i'm using v 1.3.5

3 Oct 2006, 6:31 PM
#11
firefly avatar

firefly

New Zenner

Join Date:
Jan 2005
Posts:
19
Plugin Contributions:
0

Re: Image Swap via Javascript

Arigatou gozaimasu Byte sensei! Thanks Dr Byte!

5 Oct 2006, 9:29 PM
#12
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Re: Image Swap via Javascript

Thanks for updating this contribution!

Unfortunately, I'm having a bit of trouble. It's not working for me and I expect it's a conflict with Image Handler.

Cart version: 1.3.5

I first tried merging the Image Handler code into the image swap files and uploading, then I just uploaded the image swap files as-is with no adjustments.

In both cases, images behaved in the same way as before: mousing over them does nothing, and clicking them brings the pop up window.

Has anyone gotten this working with a 1.3 site using Image Handler? Any tips? Thanks!

6 Oct 2006, 12:52 AM
#13
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

Yes I agree with you that its not working with Image Handler, I am tyring to compare the two files additional_images.php and main_image.php. I think this is the caused of the problem. For now its one or the other, I know that on the older contributions, both work together with ease.

6 Oct 2006, 12:53 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Image Swap via Javascript

I didn't make an Image-Handler-Compatible edition as yet ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Oct 2006, 2:25 AM
#15
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

Re: Image Swap via Javascript

ok..i think that's my problem too. didn't know it wasn't compatible with IH, yet..

6 Oct 2006, 4:57 AM
#16
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Re: Image Swap via Javascript

Originally they didn't. But after I tried and failed to merge the two, Dr. Byte so kindly updated the mod. Unfortunately again I'm at a crossroads and image handler is more important than this mod.

Blitz49:

Yes I agree with you that its not working with Image Handler, I am tyring to compare the two files additional_images.php and main_image.php. I think this is the caused of the problem. For now its one or the other, I know that on the older contributions, both work together with ease.

6 Oct 2006, 7:30 PM
#17
blitz49 avatar

blitz49

New Zenner

Join Date:
Apr 2005
Posts:
99
Plugin Contributions:
0

Re: Image Swap via Javascript

Didn't realize that it was not compatible to began with. I guess by the time I downloaded Image Swap, Dr. Byte kind as he is, already made it compatible. Yea im trying to merge it too, but not too good with php. I looked at the old conribution and the new and it looks the same to me, dont' know where to start to get both of these working. I think both contributions are important, cause I really don't like popups, since some people like me disable popups.

14 Nov 2006, 3:56 PM
#18
zulurose avatar

zulurose

New Zenner

Join Date:
Sep 2006
Posts:
92
Plugin Contributions:
0

Re: Image Swap via Javascript

Hi, I installed the latest version of the Swap Images plugin, and I am having a couple of problems.

  1. The original image loads properly, but the additional images are the small version of the art being scaled up. (why won't the plug-in see *_MED.jpg?)

  2. The rollover images(not the thumbnails) are being stretched without regard to original image proportion. (is this a admin->images setting?)

Here is my site:
www.zulurose.com

15 Nov 2006, 9:35 AM
#19
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Image Swap via Javascript

You probably have "use proportional images" set in the admin > images area check...

On another note; Your images are differing sizes and this is one of the reasons they are distorting. If you use photoshop(maybe similar in other packages) you can create a matt for a specific size pic i.e. 200x160, then create an action in PS to place all your images into this matt. You end up with all pics the same size. Some might have a white border either l&r or Top & bottom, but this will not be evident as your back ground is white. Do this for each pic size you have defined in the admin > images area(actually only 2 product listing & product info) as the remainder a mirrors of these. Also insure that the proportions between sizes remain the same, i.e. 100x80 is 4x5 as is 200x160.

Lastly, most of your images are 35+k in file size and if you are using the normal med & larg defaults these are large for a 100x80 image that only requires 4k or less to look good and for 200x160 around 6k is all that is required. This will also keep your site load time at the lowest possible.

Zen-Venom Get Bitten

15 Nov 2006, 3:09 PM
#20
zulurose avatar

zulurose

New Zenner

Join Date:
Sep 2006
Posts:
92
Plugin Contributions:
0

Re: Image Swap via Javascript

ADMIN > IMAGES > Use Proportional Images on Products and Categories = 0

I will take your advice on using a standard image size.
But that still does not explain why the small image is being used and not *****_#_MED.jpg