Open a pop-up window for full larger image Open a pop-up window for full larger image
 

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

Open a pop-up window for full larger image

Started by cftranslate, August 01, 2006, 12:41:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cftranslate

Being a php programmer I have been trying to change the code in thumbnails.php when an album pictures are displayed so that when I click on them they don't call displayimage.php but a custom pop-up window opens with the picture.

I think that the proper arrangement for an intuitive gallery would be for a pop-up to open for full screen picture (or at least having that option in configuration). Clicking on a thumbnail to go to other page with the pic requires going back to the album to keep watching pics.

A much better more elegant solution would be a full screen pop-up (800x600 or 1024x768) that's closed to get the the album thumbnails again.

I have not been able to implement this modification because beside the album number, I need the pic name or id instead of pic position currently passed as  displayimage.php?album=xxx&position=xxx.

FEATURE REQUEST:

Thumnails call a javascript function that contains a window.open statement to which album, pic id and possibly pic width and size are passed for the pic to fit exactly into the  pop-up window

If this (to me elegant feature)  is not considered,
How could I change thumbnails.php? My main problem is to know the php variables that contain album number and a inique pic id, or how to handlle pic position to get to a particulat picture. Another problem is increasing total gallery views counter and particular pictures views counter.

Thanks



Sami

‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

Already is in the devel branch of the svn, so I'm marking this thread accordingly.