Announcement

  •  » Extensions
  •  » Disable right click on photos?

#1 2004-12-09 14:36:23

maxm
Guest

Disable right click on photos?

It would be nice to incorporate a disable right click feature to slow up those who like to snitch photos from our sites!

Max Marcus

 

#2 2004-12-09 14:42:15

Sephi
Former Piwigo Team
Suisse
2004-11-28
430

Re: Disable right click on photos?

It's futile because you can download the picture even if the right click is disabled. You can simply access the Edit -> View source feature to get the picture's path and then download it.
There are also many faster tricks to bypass the "disabling right click" feature... so I think it's futile.

Last edited by Sephi (2004-12-09 14:42:45)

Offline

 

#3 2004-12-09 19:48:20

Maxm
Guest

Re: Disable right click on photos?

I agree there are lots of ways of copying photos, screen capture being one of the easiest. But there are also some pretty nifty javascript right click disablers that affect only pictures and can also display a copyright reminder message. That makes the thief duly warned at the very least! I'm just not sure how to work it into the .php pages...

Max

 

#4 2004-12-09 20:13:31

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Disable right click on photos?

the best solution I see is to add a watermark to your pictures

Offline

 

#5 2004-12-27 01:07:03

Whiler
Member
Clichy
2004-12-24
24

Re: Disable right click on photos?

Maxm wrote:

I agree there are lots of ways of copying photos, screen capture being one of the easiest. But there are also some pretty nifty javascript right click disablers that affect only pictures and can also display a copyright reminder message. That makes the thief duly warned at the very least! I'm just not sure how to work it into the .php pages...
Max

I'm agreed with all the answers... but if you really wanna some code to do it...

Just replace or modify the header.vtp of the template you use.
Successfully tested with PhpWebGallery 1.3.4 with IE 6 and Firefox 1.0 !

##############################################################
## MOD Title: Disable right click
## MOD Author: Whiler
## MOD Description: Disable Right Click
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: <1 Minutes
## Files To Edit: header.vtp of each used template
## Included Files: (n/a, or list of included/required files)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Just to reply to Maxm
##
##############################################################
## MOD History:
##
##   2004-12-27 - Version 1.0.0
##      - Disable Right Click
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={#charset}"  />
<meta http-equiv="Content-Style-Type" content="text/css" />
<!--VTP_refresh-->
<meta http-equiv="refresh" content="{#time};url={#url}">
<!--/VTP_refresh-->
<title>{#title}</title>
<link rel="stylesheet" href="{#style}" type="text/css" />

<script language="JavaScript">
    <!-- Hide

      // replace the message by yours...
      var copyrightMessage = 'Do not steal my stuff !';


        function ClearStatusBar() {
                        // Hide the path from the statusbar if you use IE
            window.status="{#title}";
            setTimeout("ClearStatusBar()",1);
        }

                 // Diseable the Right Click
        function droit(e)
         {
          if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
           {
            alert(copyrightMessage);
            return false;
           }
          else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
           {
            alert(copyrightMessage);
            return false;
           }
          return true;
         }
       
        document.onmousedown=droit;
    // -->
</script>


</head>
<body  onLoad=ClearStatusBar()>
{#header}

Last edited by Whiler (2004-12-27 01:13:17)

Offline

 

#6 2005-01-01 18:37:30

Maxm
Guest

Re: Disable right click on photos?

I haven't tried this yet, but it looks good. Thanks for the comeback!

/Max

 
  •  » Extensions
  •  » Disable right click on photos?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact