Advanced search  

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]

Pages: [1]   Go Down

Author Topic: allowing download / saving of full size images?  (Read 4682 times)

0 Members and 1 Guest are viewing this topic.

Endre

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
allowing download / saving of full size images?
« on: September 21, 2004, 11:27:05 am »

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 :)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: allowing download / saving of full size images?
« Reply #1 on: September 21, 2004, 11:47:02 am »

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.
Logged

cryogenic

  • Tester
  • Coppermine regular visitor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 79
    • the cynic says...
Re: allowing download / saving of full size images?
« Reply #2 on: September 22, 2004, 12:03:25 am »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: allowing download / saving of full size images?
« Reply #3 on: September 22, 2004, 07:31:13 am »

if you want to disable left click closing the pop-up, edit displayimage.php, find
Code: [Select]
        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
Code: [Select]
        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
Logged

Endre

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: allowing download / saving of full size images?
« Reply #4 on: September 23, 2004, 03:38:00 pm »

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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: allowing download / saving of full size images?
« Reply #5 on: September 23, 2004, 03:42:27 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.
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: allowing download / saving of full size images?
« Reply #6 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 ?

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: allowing download / saving of full size images?
« Reply #7 on: September 23, 2004, 06:18:01 pm »

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.
Logged
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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: allowing download / saving of full size images?
« Reply #8 on: September 23, 2004, 07:52:00 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 19 queries.