Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default "larger image" opens in tiny window

    Hi -

    As the title says, when I click on the "larger image" text below my image, I indeed get a larger image...in a really tiny new window. Can I control the size of the new window? It's kind of silly that it opens a new window that's smaller than the original image.

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: "larger image" opens in tiny window

    Looks OK to me. When you first click on 'larger image' a little box opens, but if you wait for the image to load, it's big.

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

    Default Re: "larger image" opens in tiny window

    Hmm...not for me. I'm running FireFox on a Mac; what's your environment?

  4. #4
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: "larger image" opens in tiny window

    And, in Chrome, it works fine, just as you said.

    So, I guess the question is, is there a way to "force" the desired behavior? Or, is this even a good idea to try?

    Thanks.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: "larger image" opens in tiny window

    I use XP, and it works OK for me in IE6, 7 and 8 and Firefox, Chrome and Safari.

    I'm thinking it works the way it does because Zencart doesn't know how big the window needs to be until the image loads.

    If all your large images are the same size, you could probably change some code to open the window to that size. I'll study on it.

  6. #6
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: "larger image" opens in tiny window

    I'd appreciate that. I can play with it, too, if you can point me to the file that contains the new window directive.

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: "larger image" opens in tiny window

    Actually, I'm just stalling until Glenn shows up and tells us how to do it .

  8. #8
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: "larger image" opens in tiny window

    Ahem..."stalling" is a tactic confined to politicians and other vermin. We developers merely engage in "creative procrastination."

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: "larger image" opens in tiny window

    First Are all of your large images matted to exactly the same size?
    If not do that
    Then in a copy of /includes/templates/template_default/popup_image_additional/tpl_main_page for your template change
    Code:
    <body id="popupAdditionalImage" class="centeredContent" onload="resize();">
    To
    Code:
    <body id="popupAdditionalImage" class="centeredContent" onload="">
    Than - and this is not overridable so maintain an original
    /includes/modules/pages/product_info/jscript_main.php file change the sizes to the size of your large image
    Code:
    function popupWindow(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
    Zen-Venom Get Bitten

  10. #10
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: "larger image" opens in tiny window

    Thanks, Kobra. Can I safely assume that if my images aren't all the same size, I can pick values that are fairly close and live with it?

    (I'm just asking out of academic curiosity; I can make all my images the same size.)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. "Larger image" window is too small
    By FastEddie in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 May 2011, 12:56 AM
  2. ZC isn't using "_LRG" image for "larger image" pop-up (??)
    By whiteleyweb in forum Customization from the Admin
    Replies: 6
    Last Post: 14 Oct 2010, 08:43 PM
  3. Can I replace "larger image" text with a .gif image button?
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 24 Oct 2009, 10:11 AM
  4. Replies: 0
    Last Post: 31 Dec 2008, 07:39 PM
  5. Larger image link opens image in same window.
    By this side up in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Apr 2007, 11:36 AM

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