remove intermediate pictures remove intermediate pictures
 

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

remove intermediate pictures

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

Previous topic - Next topic

0 Members and 1 Guest 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