how do i disable right click for 1.4.3 how do i disable right click for 1.4.3
 

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

how do i disable right click for 1.4.3

Started by allright, January 18, 2006, 08:37:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allright

i have the codes i think but what file do i put the scripts at? themes.php? index.php? so i just need to be pointed in the rigt direction thank you.

Joachim Müller

depends on how your codes work. I suggest putting it into themes/yourtheme/template.html

mrand

What is the code? I would love to add this to galleries as well. Thanks.

allright

i need to find the code as well. i don't know if i should use a javascript or just an html code? i tried putting a couple of codes in the theme.html. thank you

netfalls

Hi,

Just add this code in your template.html just before the  </head> tag  <script language=JavaScript>
<!--


var message="copyright protected!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>


In my view you cannot claim to have seen something until you have photographed it

Joachim Müller

thanks for sharing, but let me say that the coppermine dev team considers no right click scripts silly and useless. Please search the board for detailed explanations why.