Full image scroll is off the screen... Full image scroll is off the screen...
 

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

Full image scroll is off the screen...

Started by sgaileach1, April 13, 2004, 06:36:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sgaileach1

Can someone please help me?  All I want is to basically remove the rediculously complicated code for popping up the full size image with a simple new browser window popup so that when it pops up it is rezizeable and not closed by clicking.  As it is it causes all sorts of problems for anyone with pictures in their gallery that are larger then the screen resolution they have set, plus it shows my entire website in the background of the picture.

Joachim Müller

The code is not complicated (only plain JavaScript), the pop-up window is resizable. The code that opens the pop-up can be found in in displayimage.php, look for$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')\">";
If you want to disable the "close pop-up on click", edit displayimage.php and find        echo "<a href=\"javascript: window.close()\"><img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\n" . $lang_fullsize_popup['click_to_close'] . "\"/></a><br />\n";- replace with        echo "<img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\"/><br />\n";

GauGau

P.S. If you want to get friends with people around here, telling them their code is "ridiculously complicated" is not a good thing to start with :? ...

Casper

Having visited your site, I think both your problems are nuke related.

The large windows pop-up right of centre, as they appear to be obeying a command to leave the menu visible, so although they are screen size, they are falling off the right.  Also, you need to adjust the border, as you are getting scroll bars even when the image is smaller than the screen. See this thread for that problem, http://forum.coppermine-gallery.net/index.php?topic=4960

There is also a problem, as you said, with other parts of the page appearing in the pop-up.  This is not normal, but almost certainly nuke related.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

James,

you are right - the code between coppermine standalone and coppermine for nuke differs greatly, so this is indeed the wrong place to look for support on nuke questions. Take a look at the whole <html> block within displayimage.php - you can throw the "surrounding" html code over board if you want to display your pic only. You can as well set the dimensions for the pop-up (at least in coppermine standalone), but I'm not sure how this works with nuked coppermine.
I noticed that there's something strange with registration on the nuke board as well, but there's little I can do about it. Maybe you'll want to contact one of the guys who run the nuke support board (gtroll or DJMaze) over pm on this board (not to ask them for support by pm on your pop-up issue, but on the registration issue on their site). After all, this whole pop-up enchilada makes great use of JavaScript (which is something different than Java btw), and generally speaking JavaScript sucks.

GauGau