NO RIGHT CLICK NO RIGHT CLICK
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.