Education (depraced!) > No Right Click (Data Life Engine)

No Right Click (Data Life Engine)


Date: 27 July 2010 | Posted by: jeeni2009
No Right Click (Data Life Engine)


No Right Click (Data Life Engine)


No Right Click
Hack or simple modification by which prevent the use of the right button in the Datalife Engine, which keeps you on some privacy and do not copy subjects, images, and any content on the Website.
Guests cant use the right click in your website


1. open main.tpl and search for:

<head>


add after it:

[group=5]

<script language=javascript>
<!--

//Disable right mouse click Script

var message="Sorry Only Registers Can Copy";

///////////////////////////////////
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>[/group]


And No Right Click For All. Just delete this form the start and the end of the code above

[group=5]

[/group]


Demo:



If found difficult to configure Please PM me!
See full article