Results 1 to 10 of 786

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    65
    Plugin Contributions
    0

    Default Re: AJAX IMAGE Swapper support thread

    Quote Originally Posted by john4 View Post
    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:

    PHP Code:
    $zoom $width $currheight
    and I changed it to this:
    PHP Code:
    $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 )

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

  2. #2
    Join Date
    Jun 2008
    Posts
    2
    Plugin Contributions
    0

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

  3. #3
    Join Date
    May 2008
    Posts
    65
    Plugin Contributions
    0

    Default Re: AJAX IMAGE Swapper support thread

    Quote Originally Posted by iammad View Post
    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

  4. #4
    Join Date
    Jun 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: AJAX IMAGE Swapper support thread

    Hi~~
    I am using 3.12 version.
    I checked. mootools-complete.js is there.
    I use both IE and Firefox, all the same.

    Then, I install a new zen cart and follow the process again.
    Still the same...
    The category still doesn't show up.


    Quote Originally Posted by greydawgjr View Post
    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
    Quote:
    Originally Posted by 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.

  5. #5
    Join Date
    May 2008
    Posts
    65
    Plugin Contributions
    0

    Default Re: AJAX IMAGE Swapper support thread

    Quote Originally Posted by iammad View Post
    Hi~~
    I am using 3.12 version.
    I checked. mootools-complete.js is there.
    I use both IE and Firefox, all the same.

    Then, I install a new zen cart and follow the process again.
    Still the same...
    The category still doesn't show up.
    Does the product dropdown say "Please select a category first"?

  6. #6
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: AJAX IMAGE Swapper support thread

    Quote Originally Posted by greydawgjr View Post
    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:

    PHP Code:
    $zoom $width $currheight
    and I changed it to this:
    PHP Code:
    $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 )

    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...
    Thanks for this Greydawgjr! Could you amend the change and upload the updated module to contribution under our name please!
    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

 

 

Similar Threads

  1. AJAX BANNER Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 19
    Last Post: 11 Oct 2012, 05:55 AM
  2. Any way to import image massively to AJAX Image Swapper ?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 17 Sep 2010, 04:35 PM
  3. Is there any way to massivly upload image to Ajax Image swapper?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jul 2010, 03:38 PM
  4. Error on AJAX IMAGE Swapper
    By easy665 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Aug 2009, 02:38 PM
  5. AJAX Image Swapper Basic Support
    By jaycode in forum All Other Contributions/Addons
    Replies: 34
    Last Post: 31 Dec 2007, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg