remove intermediate pictures remove intermediate pictures
 

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

remove intermediate pictures

Started by .andy, April 26, 2004, 01:44:50 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

.andy

Hi Guys,

I have coppermine installed and working fine, and I was wondering if you could remove the intermediate pic, and change the way that the thumbnail behaves when clicked...

Normal operation goes something like - click thumbnail, open intermediate in _parent window, click intermediate, open full pic in popup window.

I realise that you can remove the intermediate pic in the config, but when you click on the thumbnail, the full pic is then opened in the _parent window. I was wondering if you could make it so that when you click on the thumbnail, it openes the pic in the popup window?

Sorry if this has been covered before, but I honestly didnt know what keywords to search for =( hehe

cheers,
.andy

Joachim Müller


.andy

Im not too sure, but this post does not really answer my question. It appears to be talking about bbcode, and linking thumbnails in phpbb to popup in a full size window? Anyway, I dont want to do it in forum, just in the gallery program. Also, it doesn't look like anyone ever accomplished it on that post.

It looks pretty simple, Im sure I saw the code in the displayimage.php that made the popup, so I would assume that you need to replace something in thumbnails.php with that code so it popped from there.

   if (isset($image_size['reduced'])) {
       $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
       $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
       $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";     <-------
       $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
       $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
       $pic_html .= "</a>\n";


The problem is that i'm not sure what code needs to be replaced. Maybe its not even that simple.

Anyways, if anyone can help out, I would really appreciate it.

Cheers,
.andy