forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nikkilou on February 29, 2008, 08:06:44 pm

Title: [Solved]: [Solved]: Full Size Image Popup is Tiny!
Post by: nikkilou on February 29, 2008, 08:06:44 pm
Hi,

I've had a good search here and in the FAQ for this problem.

My site is here: http://moments.misplaced.co.uk/caps/

I've recently moved servers, I uploaded the same files of coppermine as I had before, the database and images and for some reason when you click to view the full size image (which I have set to do directly from the thumbnails) the image opens up in a tiny pop up so you have to enlarge it yourself. This only happens in IE, in FF it's fine.

I've also attached the screenshot of the size it opens.

I've tried a few things, myself but not having much knowledge I'm not comfortable playing around too much. Any help is much appreciated :)

Nikki
Title: Re: Full Size Image Popup is Tiny!
Post by: Nibbler on February 29, 2008, 08:09:19 pm
The width and height parameters in the popup code are empty. Post your code.
Title: Re: Full Size Image Popup is Tiny!
Post by: nikkilou on February 29, 2008, 09:45:05 pm
Which file is the code for that in?

Title: Re: Full Size Image Popup is Tiny!
Post by: Nibbler on February 29, 2008, 09:46:16 pm
It's wherever you added it.
Title: Re: Full Size Image Popup is Tiny!
Post by: nikkilou on February 29, 2008, 10:11:44 pm
Ah sorry, I didn't know it was something I added.

I think it might be this line

Code: [Select]
$detailsLink = $CONFIG['vote_details'] ? ' (<a href="#" onclick="MM_openBrWindow(\'stat_details.php?type=vote&amp;pid='.$CURRENT_PIC_DATA['pid'].'&amp;sort=sdate&amp;dir=&amp;sdate=1&amp;ip=1&amp;rating=1&amp;referer=1&amp;browser=1&amp;os=1\',\'\',\'resizable=yes,width='.$width.',height='.$height.',top=50,left=50,scrollbars=yes\'); return false;">'.$lang_picinfo['details'].'</a>)' : '';

That's from displayimage.php
Title: Re: Full Size Image Popup is Tiny!
Post by: Nibbler on February 29, 2008, 10:18:42 pm
No, that's not it.

You need to update your gallery anyway.
Title: Re: Full Size Image Popup is Tiny!
Post by: nikkilou on February 29, 2008, 10:37:53 pm
This one?

Code: [Select]
'{LINK_TGT}' => "javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid={$thumb['pid']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width={$thumb['pwidth']},height={$thumb['pheight']}')",
I will update it this weekend then :)
Title: Re: Full Size Image Popup is Tiny!
Post by: Nibbler on February 29, 2008, 11:04:20 pm
You need to modify include/functions.inc.php

find

Code: [Select]
$thumb_list[$i]['aid'] = $row['aid'];
after it, add in

Code: [Select]
$thumb_list[$i]['pwidth'] = $row['pwidth'];
$thumb_list[$i]['pheight'] = $row['pheight'];

Edit: fixed typo
Title: Re: Full Size Image Popup is Tiny!
Post by: nikkilou on March 01, 2008, 12:29:28 am
Thank you so much, it's all working now :)

Really grateful for your help.
Title: Re: [Solved]: Full Size Image Popup is Tiny!
Post by: Joachim Müller on March 01, 2008, 01:08:45 am
arking as "solved" then. Remember that you need to upgrade asap!