[Solved]: [Solved]: Full Size Image Popup is Tiny! [Solved]: [Solved]: Full Size Image Popup is Tiny!
 

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

Main Menu

[Solved]: [Solved]: Full Size Image Popup is Tiny!

Started by nikkilou, February 29, 2008, 08:06:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nikkilou

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

Nibbler

The width and height parameters in the popup code are empty. Post your code.

nikkilou


Nibbler


nikkilou

Ah sorry, I didn't know it was something I added.

I think it might be this line

$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

Nibbler

No, that's not it.

You need to update your gallery anyway.

nikkilou

This one?

'{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 :)

Nibbler

#7
You need to modify include/functions.inc.php

find

$thumb_list[$i]['aid'] = $row['aid'];

after it, add in


$thumb_list[$i]['pwidth'] = $row['pwidth'];
$thumb_list[$i]['pheight'] = $row['pheight'];


Edit: fixed typo

nikkilou

Thank you so much, it's all working now :)

Really grateful for your help.

Joachim Müller

arking as "solved" then. Remember that you need to upgrade asap!