Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default How do you increase the large image pop-up window when you have an image border?

    If you have an image border the pop-up window for the large image (my large image is 640x480) is a bit too small. I believe the generated pop-up window is 640x480 and does not expand to compensate for the additional length and width that is added when you place a border around the image.

    The question is: How can we make the large image pop-up window large enough to include the image border?

    Sawhorse

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border

    In a general sense, you would add a number of pixels to the calculated value for both horizontal and vertical window size, in the script which is setting the window parameters. I don't have time at the moment to track that down for you, but that will do the trick I think.

    Rob

  3. #3
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border

    Hi rstevenson,

    Yep, that is what I would like to do. It is my understanding that ZC ADMIN does not have the LARGE image formatting and that the window size is dynamic.

    The file that we may be looking for may be includes/modules/pages/prouduct_info/jscript_main.php but I am not sure. What do you think?

    Sawhorse

  4. #4
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border

    I do not think it is includes/modules/pages/prouduct_info/jscript_main.php I played with it and it did not seem to change anything.

    Sawhorse

  5. #5
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border?

    May be we should look at /includes/templates/template_default/popup_image/tpl_main_page.php but I am not sure how to adjust.

    Sawhorse


  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border

    Quote Originally Posted by Sawhorse View Post
    The file that we may be looking for may be includes/modules/pages/prouduct_info/jscript_main.php but I am not sure. What do you think?
    Close. It's more likely includes/modules/pages/popup_image/jscript_main.php

    That file has code in it ( function resize() ) to calculate various window sizes. So you can add perhaps 25 to each spot where it puts in a value for a particular browser -- if, that is, your border is 25px wide.

    Rob

  7. #7
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border

    Quote Originally Posted by rstevenson View Post
    It's more likely includes/modules/pages/popup_image/jscript_main.phpRob
    Yes, that is it!! Go to about line 40 and you will see:
    PHP Code:
        frameWidth imgWidth;

        
    frameHeight imgHeight+i
    You need to change that to add (as needed) additional window area. I did the following:

    PHP Code:
        frameWidth imgWidth+5;

        
    frameHeight imgHeight+40+i
    Thanks for your help.

    OH - it might be a good idea to do includes/modules/YOUR_TEMPLATE/pages/popup_image/jscript_main.php

    Sawhorse

  8. #8
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: How do you increase the large image pop-up window when you have an image border?

    For some reason the Override System does not seem to function here. I needed to place the correction in the main file.

    Any reason you would know why the Override System is not working here?

    Sawhorse

 

 

Similar Threads

  1. v150 How to add scroll bar to large image pop up window?
    By jonisolis in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 25 Jul 2013, 03:54 AM
  2. Changing the image thats in the 'Have you seen...' side box
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jun 2009, 02:45 PM
  3. How do you watermark a large image?
    By ladybugmom in forum General Questions
    Replies: 10
    Last Post: 2 Dec 2008, 08:15 PM
  4. How do you set that up so when you select the size of an item the price changes?
    By tanyaleann in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 23 Sep 2008, 11:49 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