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 <?PHP2nd goto your selected them in GALLERY/THEMES/******* and open the template.htmland place the same code in @ the
BOTTOM BETWEEN THE */ and the </body>Quotegood luck peeps
8)
thanks for sharing, it has been done before i think
It is not a good idea to blindly post code into php files, this can cause problems with cookies and other headers.
No right-click scripts are just plain silly. Please search the board to find out why.