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: Disable right mouse click  (Read 5601 times)

0 Members and 1 Guest are viewing this topic.

football-pics.com

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Disable right mouse click
« on: September 25, 2004, 12:45:06 pm »

How can I disable this to prevent people from randomly downloading my pics? Is there any tool or code I can use or where do I have to install it?
On my old page a friend installed this

<!-- Begin
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
if (ns4up) {document.captureEvents(Event.MOUSEDOWN)}
document.onmousedown=taste
function taste(e) {
if (ns4up) {z=e.which}
if (ie4up) {z=event.button}
if (z>1) {
alert ("(c) Marc Schüler (GAMEDAY MEDIA SERVICES).Bei Interesse an einem Bild: foto@football-pics.com")
return false
}
}
// end -->

to prevent Downloads. But if I add it in displayimage.php it won´t work. HELP!!!
Thanks,
Marc
Logged

poubao

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: la
  • Offline Offline
  • Gender: Male
  • Posts: 277
    • Collections du Laos
Re: Disable right mouse click
« Reply #1 on: September 25, 2004, 12:56:09 pm »

put it in your    ../theme/template.htm   ;)
Logged
L'incohérence de ceux qui nous dirigent, l'incompétence de ceux qui nous commandent,sont un vibrant hommage pour ceux qui exécutent.
                                          **Général Patton**

football-pics.com

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Disable right mouse click
« Reply #2 on: September 25, 2004, 01:04:47 pm »

Got it... Thank you very much...
Marc
Logged

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Disable right mouse click
« Reply #3 on: September 25, 2004, 02:00:32 pm »

Where exactly in the template.html should  it go ??

I can see from your site, Marc, - that's it's working :-) did you do exactly this ??
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Disable right mouse click
« Reply #4 on: September 25, 2004, 02:17:32 pm »

Got it, - think you code is missing a semicolon after : document.onmousedown=taste

It's working now, - thanx.

EDIT : removed the semicolon again, just to check it, - and it still works... must have made something else right :-) Your code contribution is right. Thanx.
« Last Edit: September 25, 2004, 02:23:54 pm by kiig »
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Disable right mouse click
« Reply #5 on: September 25, 2004, 04:45:02 pm »

@ football-pics.com

this is a very often asked, and answered question.  Please use the search facility before starting a new thread.
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

PCGUY112887

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 52
Re: Disable right mouse click
« Reply #6 on: October 04, 2004, 06:11:31 am »

Althougt this is sort of useless to disable right clicks now... in IE you just hovor over the image and usually a toolbar pops up allowing you to hit save.  And other browsers (like Firefox) just ignore it and let you right click anyways.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Disable right mouse click
« Reply #7 on: October 04, 2004, 07:06:34 am »

People like to use right-click for myriads of other things, too, and it would be irritating to cripple such a functionality.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.