One of the features of my gallery is Wallpapers, and it's a problem that right-clicking on those images close the window, as people can't save the pics to desktop.
How can I allow people to save the full-size pictures?
If I can allow this for only one Album in the gallery, it would be perfect :)
That's interesting... when I right-click on my full-sized photo, the shortcut menu pops up and I have the option to save the file. In fact, I can even set the image as a wallpaper, or background as IE calls it.
However, left (regular) clicking would indeed close the window. Perhaps that is what your visitors are doing.
If you still have a problem, please post a link to your wallpaper album.
I get the same behavior in Mozilla Firefox... left click closes the window, right click opens a shortcut menu. Isn't the behavior of the full-sized picture window controlled by script.js?
if you want to disable left click closing the pop-up, edit displayimage.php, find echo "<a href=\"javascript: window.close()\"><img src=\"" . $pic_url . "\" $geom class=\"image\" border=\"0\" alt=\"\" title=\"" . htmlspecialchars($row['filename']) . "\n" . $lang_fullsize_popup['click_to_close'] . "\"></a><br />\n";
and replace with echo "<img src=\"" . $pic_url . "\" $geom class=\"image\" border=\"0\" alt=\"\" title=\"" . htmlspecialchars($row['filename']) . "\n" . $lang_fullsize_popup['click_to_close'] . "\"><br />\n";
However, right-click will not close the pop-up, unless you're running a very outdated beta of coppermine, or you applied a no-right-click mod. Post a link to your page.
Joachim
Thanks for your replies.
I'm a Firefox-user, and I forgot to test in IE before I posted this.
In IE it doesn't close on right-click, so it works like I wanted it to.
I'll check out that code-modification tho, so my more intelligent users can save pics too (meaning the ones not using IE) :p
Quote from: Endre on September 23, 2004, 03:38:00 PM
I'm a Firefox-user, and I forgot to test in IE before I posted this.
In IE it doesn't close on right-click, so it works like I wanted it to.
What do you mean? I use FF, too, and it behaves the same way as IE. That is, it doesn't close on right-click.
Go to http://www.sandandmercury.com
Go to Photo PRomo ...
and try with right click to save the pic :)
When you click on it, window closes automatically
The best solution, no ?
What's that got to do with the price of fish ???
It worked fine with me, using firefox.
but if that is coppermine, it's not one I recognise, and if it is, it has no copyright notice
And next time you give a link, please give the full url, it took me a little while to find the link you were refering to.
Quote from: Rodinou on September 23, 2004, 05:47:58 PM
Go to http://www.sandandmercury.com
Go to Photo PRomo ...
and try with right click to save the pic :)
When you click on it, window closes automatically
The best solution, no ?
No, because Endre does
not want it to close when right-clicking on the pic. Also, I found a photo on that site you posted and when I left- or right-clicked it, it did not close. However, the context menu that popped up when right-clicking did not have the save option, which Endre wants to have so his visitors can save his wallpaper images.