Forum

Questions and discussions

disable right-mouse save image?

Script's setup and configuration

disable right-mouse save image?

Postby mdarcangelo » Mon Oct 01, 2012 2:09 pm

I cannot remember if there's a way to disable the right-mouse "save as.." any tips?
mdarcangelo
 
Posts: 3
Joined: Wed May 02, 2012 11:55 am

Re: disable right-mouse save image?

Postby admin » Tue Oct 02, 2012 7:29 am

This is unnecessary feature. The visitors are able to download only 120px and 400px watermarked previews.
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: disable right-mouse save image?

Postby thynksheraze » Tue Oct 23, 2012 7:54 am

Add this to /members/content_photo_preview.php

-----------------




<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>
thynksheraze
 
Posts: 156
Joined: Wed Nov 24, 2010 1:04 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.