Page 25 of 39 FirstFirst ... 15232425262735 ... LastLast
Results 241 to 250 of 385
  1. #241
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by niccol View Post
    Honestly I am fitting comments in while a database uploads so ignore me if I am wrong but I seem to remember that if there are three images then there will be the main one and three thumbnails. If there is just one image I think there should be the main one and no thumbnails. I think at the moment it still shows the thumbnail of the one image which is a bit redundant.

    Just needs a change to the logic. I have that somewhere but it is probably just as quick to rewrite as to find it :-)
    doesnt on mine.. :O)
    Phil Rogers
    A problem shared is a problem solved.

  2. #242
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    looks like I need to use the varibale:

    $products_image_directory

    instead of using DIR_WS_IMAGES when checking for the image in the file

    includes/modules/YOUR_TEMPLATE/additional_images.php

    try changing this:

    PHP Code:
    //added image checking image swap and jquery zoom
        
        
    $products_image_extension substr($filestrrpos($file'.'));
        
    $products_image_base str_replace($products_image_extension''$file);
        
    $products_image_medium $products_image_base IMAGE_SUFFIX_MEDIUM $products_image_extension;
        
    $products_image_large $products_image_base IMAGE_SUFFIX_LARGE $products_image_extension;


    //added for additional medium checking
    $second_medium_image_check $products_image_base IMAGE_SUFFIX_MEDIUM $products_image_extension;


    // check for a medium image else use small
    if (!file_exists(DIR_WS_IMAGES 'medium/' $products_image_medium)) {
      
    $products_image_medium DIR_WS_IMAGES $file;
    } else {
      
    $products_image_medium DIR_WS_IMAGES 'medium/' $products_image_medium;
    }


    // check for a large image else use medium else use small

    if (!file_exists(DIR_WS_IMAGES 'large/' $products_image_large)) {
      if (!
    file_exists(DIR_WS_IMAGES 'medium/' $second_medium_image_check)) {
        
    $products_image_large DIR_WS_IMAGES $file;
      } else {
        
    $products_image_large DIR_WS_IMAGES 'medium/' $second_medium_image_check;
      }
    } else {
      
    $products_image_large DIR_WS_IMAGES 'large/' $products_image_large;
    }
        

    //end added image checking 
    to this:

    PHP Code:
    //added image checking image swap and jquery zoom
        
        
    $products_image_extension substr($filestrrpos($file'.'));
        
    $products_image_base str_replace($products_image_extension''$file);
        
    $products_image_medium $products_image_base IMAGE_SUFFIX_MEDIUM $products_image_extension;
        
    $products_image_large $products_image_base IMAGE_SUFFIX_LARGE $products_image_extension;


    //added for additional medium checking
    $second_medium_image_check $products_image_base IMAGE_SUFFIX_MEDIUM $products_image_extension;


    // check for a medium image else use small
    if (!file_exists($products_image_directory 'medium/' $products_image_medium)) {
      
    $products_image_medium $products_image_directory $file;
    } else {
      
    $products_image_medium $products_image_directory 'medium/' $products_image_medium;
    }


    // check for a large image else use medium else use small

    if (!file_exists($products_image_directory 'large/' $products_image_large)) {
      if (!
    file_exists($products_image_directory 'medium/' $second_medium_image_check)) {
        
    $products_image_large $products_image_directory $file;
      } else {
        
    $products_image_large $products_image_directory 'medium/' $second_medium_image_check;
      }
    } else {
      
    $products_image_large $products_image_directory 'large/' $products_image_large;
    }
        

    //end added image checking 
    make sure you create a backup copy, not actually tested this, just off the top of my head..
    Phil Rogers
    A problem shared is a problem solved.

  3. #243
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Jquery Zoom [Support thread]

    Ha ha!

    I found the code!

    Code:
    if(sizeof($images_array))
    {
    	// add in main image
    	$im = explode('/',$products_image);
    	$im = array_reverse($im);
    	
    	$images_array[] = $im[0];
    }
    I must have included that at some point. But there is a weakness there because of the way it uses explode. It will not account for sub-directory use.

    Not sure why I didn't just use $products_image_base. Maybe that doesn't have the extension? Need to go through the logic and check.

  4. #244
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    @chad

    let me know if that ammendemnt above works for you.
    Phil Rogers
    A problem shared is a problem solved.

  5. #245
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    @chad looks like you got it sorted?

    Have you changed the js or css settings? How comes your zoom is set away from the main image?
    Phil Rogers
    A problem shared is a problem solved.

  6. #246
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by philip937 View Post
    @chad

    let me know if that ammendemnt above works for you.
    philip:

    VERY close:

    http://96 .30. 58.67/index.php?main_page=product_info&cPath=6_110&products_id=460

    You'll notice that I the image swaps, and jqzoom works (correctly) , but the base image doesn't resize to the dimensions of the swapped image... did I explain that right?

    Is this a situation where additional images would have to be the same "shape" as the main image?

    -chadd

  7. #247
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Hmm not sure I completely follow.

    I would suggest for it to work properly all images should be to the same scale otherwise some would appear to be zoomed and others not.

    Again not sure why your zoom window is not the main image area as it should be?
    Phil Rogers
    A problem shared is a problem solved.

  8. #248
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    In other words to me it looks like you have set your zoom window to a value you have chosen and your additional images are actually smaller than the window. That make sense?
    Phil Rogers
    A problem shared is a problem solved.

  9. #249
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Jquery Zoom [Support thread]

    he is not using 'innerzoom' in the initialisation.

  10. #250
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    I would suggest that if you don't want a zoom feature to go for image handler if you just want lager images to show when you hover.

    If you really want the zoom effect then use the inner zoom so that it actually appears that you are zooming the in on the image in the main product image position
    Phil Rogers
    A problem shared is a problem solved.

 

 
Page 25 of 39 FirstFirst ... 15232425262735 ... LastLast

Similar Threads

  1. v153 jQuery Scrolling Sideboxes [Support Thread]
    By lat9 in forum Addon Sideboxes
    Replies: 79
    Last Post: 15 Apr 2024, 10:20 PM
  2. v152 Down for Maintenance jQuery Countdown (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Nov 2015, 03:04 PM
  3. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  4. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  5. Is there an add-on combine the functions of AJAX_image_swapper and Jquery Zoom?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jul 2010, 01:57 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR