Forums / All Other Contributions/Addons / AJAX IMAGE Swapper support thread

AJAX IMAGE Swapper support thread

Results 1 to 20 of 786
07 Jan 2008, 22:50
#2
wilkesy avatar

wilkesy

Zen Follower

Join Date:
Jul 2004
Posts:
198
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi,

Ive just installed this module and it will be a great advantage to have on my website, once i can get it working. At present i have everything installed but i dont get any product images show up unless i have already been into the AJAX manager in the admin and setup a product image for each product?

Does this mod not do any checking to see if an image exists first, if not it uses the satcdard image? I currently have over 2000 products on my website and theres no way i can go through quickly and get all these images updated.

Many thanks

Paul
08 Jan 2008, 05:19
#3
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Hi Paul,

Yes, another user had also the same problem with you. Here is how to swap between AIS and standard view (if there are no images found).

http://www.zen-cart.com/forum/showthread.php?p=486161#post486161
08 Jan 2008, 06:43
#4
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

By the way,

if you have this module installed, but it is not working - if you go to admin & select a category, the name doesn't show up - please check the following:

1. Have you set up your image attributes?
2. Do you use PHP 5.1 or higher version?
3. Have you shaved today? (kidding)
08 Jan 2008, 21:47
#5
marcelo63 avatar

marcelo63

Zen Follower

Join Date:
Dec 2007
Posts:
125
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi I Installed now but I have the following SQL error

1146 Table 'ysbase.zen_configuration_group' doesn't exist
in:
[SELECT @last_id :=last_insert_id() FROM zen_configuration_group;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

What can it be?
09 Jan 2008, 06:39
#6
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

marcelo63:

Hi I Installed now but I have the following SQL error

1146 Table 'ysbase.zen_configuration_group' doesn't exist
in:
[SELECT @last_id :=last_insert_id() FROM zen_configuration_group;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

What can it be?


Whoops.

Change zen_configuration_group to configuration_group and re-install.

Beforehand, to uninstall the already inputted configuration group put this inside your Install SQL Patches:

DELETE FROM configuration_group WHERE configuration_group_title = 'AJAX Image Swapper'

Fixed the bug in 2.0.1
11 Jan 2008, 15:21
#7
randallpga avatar

randallpga

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

I just downloaded the application - when I go to unzip the file it says:

"The file "AJAX_image_swapper_v2.0.1.zip" does not appear to be compressed or encoded. It is advised that you obtain further information about the contents of this file from the sender or provider of the file."

This is on a MAC.

I can open other zips etc fine - so it looks like something might be up with the file?

Thank you!

-Randall
11 Jan 2008, 19:00
#8
randallpga avatar

randallpga

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Figured it out - if you open up the ZIP file with something like "textedit" on the mac.

You'll notice at the beginning of the file there is a PHP warning message that talks about "headers already being sent" and the output buffer.

This sits right above all the encoded ASCII character stuff.

Delete the portions that say:

<br />
<b>Warning</b>: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied in <b>/home/webextre/public_html/includes/modules/pages/download/header_php.php</b> on line <b>132</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/webextre/public_html/includes/modules/pages/download/header_php.php:132) in <b>/home/webextre/public_html/includes/modules/pages/download/header_php.php</b> on line <b>146</b><br />



Delete those lines and make sure there are no blank spaces at the top of the file.
The first column of the first row should start with the encoded characters.

Once this is done - save the file... don't do "save as" - just do "save" - quit TextEdit - now the ZIP file will behave correctly.

To the Developer:

On your download page or somewhere in the header even you need to put:

<? ob_start(); ?>

This starts output buffering and allows multiple headers to be requested. For example your website sends out header information and then when you click download it uses header information again to initiate the file download... this sometimes causes a warning to trip in PHP as described in the block of code that I said to remove from the ZIP file.
12 Jan 2008, 11:13
#9
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

randallpga:



To the Developer:

On your download page or somewhere in the header even you need to put:

<? ob_start(); ?>

This starts output buffering and allows multiple headers to be requested. For example your website sends out header information and then when you click download it uses header information again to initiate the file download... this sometimes causes a warning to trip in PHP as described in the block of code that I said to remove from the ZIP file.


Hey, Thanks a lot! I have been looking for the solution to that with no luck til now. I'll try it, thanks again in advance! ;)
12 Jan 2008, 11:26
#10
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Great!

Turns out I deleted the pub/ folder (or make it unwritable) which resulted on the error. I have now fixed the problem by create a new pub folder with write permission.

Thanks a lot for pointing me the error message randall :D

Let me know if you find the module useful

Jay
13 Jan 2008, 09:13
#11
wilkesy avatar

wilkesy

Zen Follower

Join Date:
Jul 2004
Posts:
198
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi Jaycode,

Thanks for this module. Works really well. However is it possible for this module to be used in the large image popup window rather than on the product info display page? I have some large, detailed images that would be great to use with this module but ideally i would want to display the images at upto 500 or 600px in size, maybe even bigger if peoples browsers will take it. Doing this on the product info page will obvioulsy make the rest of the site distort and look stupid.

Just wondered if its a possibility?

Many thanks

Paul
14 Jan 2008, 10:09
#12
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Wilkesy:

Hi Jaycode,

Thanks for this module. Works really well. However is it possible for this module to be used in the large image popup window rather than on the product info display page? I have some large, detailed images that would be great to use with this module but ideally i would want to display the images at upto 500 or 600px in size, maybe even bigger if peoples browsers will take it. Doing this on the product info page will obvioulsy make the rest of the site distort and look stupid.

Just wondered if its a possibility?

Many thanks

Paul

Hmm, at this moment, one of the main goals of this module is to avoid using slow-showing popup windows, but yeah, I am actually thinking of the possibility of leaving that to zen slimbox module thus let users choose whether to display them on popup windows or slimbox.

That way, rather than trying to be one-solution-fits-all I can focus on the main reasons people use this module - to display several sets of pictures by attributes...

Am still busy with some projects though, and my exams at uni are coming, so I don't think I am able to do anything with this module until March (going to take a whole month off without computer - replace that with surfboard & diving equipments - in Bali on Feb :D)

Thanks for the suggestion Paul.
18 Jan 2008, 21:14
#13
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

Hi, I was about to install this very useful plugin. But then I saw this in one of the posts on this thread:

"Do you use PHP 5.1 or higher version?"

Does that mean that if i have PHP4.x , it wont work?
I have 1.3.7 Zen Cart installed and my Host (godaddy.com) only installs it with PHP4.1..

I looked everywhere on your site, but couldnt find any kind of requirements for the installation. Please let me know if your plugin will still work with PHP 4.1

Thank you in advance
19 Jan 2008, 02:11
#14
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

greenhat:

Hi, I was about to install this very useful plugin. But then I saw this in one of the posts on this thread:

"Do you use PHP 5.1 or higher version?"

Does that mean that if i have PHP4.x , it wont work?
I have 1.3.7 Zen Cart installed and my Host (godaddy.com) only installs it with PHP4.1..

I looked everywhere on your site, but couldnt find any kind of requirements for the installation. Please let me know if your plugin will still work with PHP 4.1

Thank you in advance


ok.. i figured it out the hard way.. installed it and it didnt work :)
upgraded to PHP5.1 and all is good - was a bit scared that my 1.3.7 zen cart will not work right - but it did just fine..
now the plugin still does not work for some reason..
what exactly do you mean, when you say:

" 1. Have you set up your image attributes?"

which ones?

thanks
19 Jan 2008, 05:20
#15
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

Image Attributes can be set up from admin - catalog - ajax image swapper manager, these are the images you set up for your attributes, and after I read that again, it really should write attribute images :p
19 Jan 2008, 05:31
#16
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaycode:

Image Attributes can be set up from admin - catalog - ajax image swapper manager, these are the images you set up for your attributes, and after I read that again, it really should write attribute images :p



well.. i finally got these things to work looking at your demo site.
i must say, although a very good idea and i appreciate your donation to the zen community, i wish your plugin's limitations were clear. It appears that it's only useful when you have an item with attributes and you'd like to have different pictures for different attributes. In my shop, my attributes are just different sizes of the same item, so i dont need different pictures for attributes. and sometimes i dont have attributes at all.. it would be really useful to know this before i went into installing it.
"Can work multiple attributes, having multiple images." is listed as one of the features, but can it work with no attributes? or independent of attributes?

thx.
24 Jan 2008, 12:06
#17
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

greenhat:

well.. i finally got these things to work looking at your demo site.
i must say, although a very good idea and i appreciate your donation to the zen community, i wish your plugin's limitations were clear. It appears that it's only useful when you have an item with attributes and you'd like to have different pictures for different attributes. In my shop, my attributes are just different sizes of the same item, so i dont need different pictures for attributes. and sometimes i dont have attributes at all.. it would be really useful to know this before i went into installing it.
"Can work multiple attributes, having multiple images." is listed as one of the features, but can it work with no attributes? or independent of attributes?

thx.

Good point. Should've wrote that on the readme file heh.
24 Jan 2008, 18:43
#18
william_c avatar

william_c

New Zenner

Join Date:
Aug 2006
Posts:
31
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

How long will the code can be working with Image Handler 2?
Thank you jaycode!
25 Jan 2008, 19:07
#19
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: AJAX IMAGE Swapper support thread

jaycode:

Good point. Should've wrote that on the readme file heh.



hmm.. yes :)
im going to try to remove the attributes dependency from the code.. shouldnt be too hard. any suggestions?

thx
26 Jan 2008, 06:39
#20
jaycode avatar

jaycode

Zen Follower

Join Date:
Jun 2007
Posts:
306
Plugin Contributions:
1

Re: AJAX IMAGE Swapper support thread

william_c:

How long will the code can be working with Image Handler 2?
Thank you jaycode!


Let's see, I am going to have a holiday this february, so might start working on it on march?