Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

Maxm
2005-01-01 18:37:30

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

/Max

Whiler
2004-12-27 01:07:03

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}

plg
2004-12-09 20:13:31

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

Maxm
2004-12-09 19:48:20

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

Sephi
2004-12-09 14:42:15

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.

maxm
2004-12-09 14:36:23

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

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013