Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Scroll bars in pop-up window-How to get rid of?  (Read 3156 times)

0 Members and 1 Guest are viewing this topic.

ckleiman

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Scroll bars in pop-up window-How to get rid of?
« on: October 31, 2005, 04:56:34 am »

Hi all,

Have noticed in some of the themes that when you click on the mid sized image the larger image opens in a centered window that auto sizes to the image (classic and eyeball, for example) and in other themes the centered window opens with the image and scrollbars (Blackbirch, and hardwired, for example. This led me to believe this was a theme issue. However, after going through the template.html, theme.php and style.css I can't find the code.

From reading other threads, I believe it's in a root php file, displayimage.php


So, if the code is in this file, and this file is used by all themes, why the differences in pop up behavior between themes?
« Last Edit: October 31, 2005, 06:43:05 am by GauGau »
Logged

ckleiman

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Scroll bars in pop-up window-How to get rid of?
« Reply #1 on: October 31, 2005, 05:10:21 am »

Well, I found the answer in this post http://forum.coppermine-gallery.net/index.php?topic=9920.0

You have to change the following code in the displayimage.php

$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 18;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 18;

Default is 16 and I changed to 18 and no more scroll bars for the blackbirch.

Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.