Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to edit popup size  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

thebign

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • http://thebign.com/userpic/index.php
How to edit popup size
« 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.
Logged
Take Care And Have Fun

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: How to edit popup size
« Reply #1 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()'.
Logged
DaMysterious.

thebign

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • http://thebign.com/userpic/index.php
Re: How to edit popup size
« Reply #2 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
Logged
Take Care And Have Fun

DaMysterious

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • My CPG Recources
    • My CPG Recources
Re: How to edit popup size
« Reply #3 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.
Logged
DaMysterious.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How to edit popup size
« Reply #4 on: November 29, 2003, 09:25:39 am »

take a look at displayimage.php and look for
Code: [Select]
   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
Logged

thebign

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • http://thebign.com/userpic/index.php
How to edit popup size
« Reply #5 on: November 29, 2003, 10:48:33 am »

Quote from: "gaugau"
take a look at displayimage.php and look for
Code: [Select]
   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;
Logged
Take Care And Have Fun
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.