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: Script to prevent right click printing  (Read 3623 times)

0 Members and 1 Guest are viewing this topic.

CGPhotos

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Script to prevent right click printing
« on: September 27, 2006, 07:02:15 pm »

I have received a script to prevent people from right click printing of photos.  How and where can I install it to coppermine?  Also, will you check to make sure it is really what it says it is (it's alien to me ;D):

<script language=JavaScript>
var message="";
////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Script to prevent right click printing
« Reply #1 on: September 27, 2006, 07:21:43 pm »

I'm no friend of disabling the right mouse button. It just annoys people and you easily can go around that protection by simply disabling script support in your browser. There are better ways to trick newbs

If you relly want to have that, then place it in themes/yourtheme/template.html somewhere within the document head section

CGPhotos

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Re: Script to prevent right click printing
« Reply #2 on: September 27, 2006, 08:09:17 pm »

What do you reccomend, basically I have kids copying my pictures to facebook and a few moms like to print them for themselves, I sell my pictures and dont want this ability.  I am not thinking my problems are really spend the time to get around the right click disable but if you have a better idea I am all ears
Logged

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Script to prevent right click printing
« Reply #3 on: September 27, 2006, 08:17:38 pm »

Essentially, if you can see an image online, it's printable - plain and simple.  You "may" stop total novices, but I personally can get a hold of any image if it's in my browser.  Just the nature of the Internet.

Watermarking is an option or try to reduce the resolution so that even if they print it, it won't be pretty.  They would still be able to save it somewhere, though.  Everyone thinks that the "prevent right-click" is the way to go. Tis not !

CGPhotos

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Re: Script to prevent right click printing
« Reply #4 on: September 27, 2006, 08:20:00 pm »

I have a gigantic © on every picture but this has not prevented the kids from adding them to their facebooks and blogs.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Script to prevent right click printing
« Reply #5 on: September 27, 2006, 10:15:21 pm »

in my opinion better than disablingh the RMB http://forum.coppermine-gallery.net/index.php?topic=33782.0
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.