coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: thebign on November 29, 2003, 12:19:55 AM

Title: How to edit popup size
Post by: thebign on November 29, 2003, 12:19:55 AM
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.
Title: Re: How to edit popup size
Post by: DaMysterious on November 29, 2003, 12:26:43 AM
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()'.
Title: Re: How to edit popup size
Post by: thebign on November 29, 2003, 12:33:10 AM
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
Title: Re: How to edit popup size
Post by: DaMysterious on November 29, 2003, 12:42:45 AM
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.
Title: How to edit popup size
Post by: Joachim Müller on November 29, 2003, 09:25:39 AM
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
Title: How to edit popup size
Post by: thebign on November 29, 2003, 10:48:33 AM
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;