How to edit popup size How to edit popup size
 

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]

Main Menu

How to edit popup size

Started by thebign, November 29, 2003, 12:19:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thebign

In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.

I use CalskinV6 and the popup window don't fit exactly to the the picture.

I have to edit the theme file, but where to edit.
Take Care And Have Fun

DaMysterious

Quote from: "thebign"In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.

I use CalskinV6 and the popup window don't fit exactly to the the picture.

I have to edit the theme file, but where to edit.

As I remember the popup behave is ruled by scripts.js in your cpg root dir. Look at 'function adjust_popup()'.
DaMysterious.

thebign

Quote from: "DaMysterious"
Quote from: "thebign"In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.

I use CalskinV6 and the popup window don't fit exactly to the the picture.

I have to edit the theme file, but where to edit.

As I remember the popup behave is ruled by scripts.js in your cpg root dir. Look at 'function adjust_popup()'.

But all the themes are using the same script
Take Care And Have Fun

DaMysterious

Quote from: "thebign"But all the themes are using the same script

Maybe there are little differences between EyeBall and the other themes. CaliScinV6 is based on the default theme.php and styel.css as all my other themes. Sorry that I could'nt help.
DaMysterious.

Joachim Müller

take a look at displayimage.php and look for    if (isset($image_size['reduced'])) {
        $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
        $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
Play around with the value that is added to $winsizeX and $wnisizeY

GauGau

thebign

Quote from: "gaugau"take a look at displayimage.php and look for    if (isset($image_size['reduced'])) {
        $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
        $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
Play around with the value that is added to $winsizeX and $wnisizeY

GauGau

Thanks Gau Gau

I made my settings like this and now it works great:

if (isset($image_size['reduced'])) {
        $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 38;
        $winsizeY = $CURRENT_PIC_DATA['pheight'] + 36;
Take Care And Have Fun