NO RIGHT CLICK NO RIGHT CLICK
 

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]

Main Menu

NO RIGHT CLICK

Started by Master-D, July 03, 2006, 10:59:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Master-D

hey i just did this and it works a treat, it stops anybody right clicking to copy your pictures, not just in the gallery but the external picture viewer, ;) ok heres how you do it.
1st go into your gallery folder and open the displayimage.php and add : -
Quote<script language="JavaScript">
<!--
/*
*/

var message="Hey YOU!\nStop Stealing my pictures or\nFACE THE PUNISHMENT!"



function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->

</script>
place this code directly @ the top b4 the <?PHP

2nd goto your selected them in GALLERY/THEMES/*******
and open the template.html
and place the same code in @ the BOTTOM
BETWEEN THE */     and the </body>
Quotegood luck peeps
8)

Vargha

thanks for sharing, it has been done before i think
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

Nibbler

It is not a good idea to blindly post code into php files, this can cause problems with cookies and other headers.

Joachim Müller

No right-click scripts are just plain silly. Please search the board to find out why.