Post by emilife93 » Tue Jun 07, 2011 8:31 pm

Greeting,

any module or extension for disable right click and disable CTRL + C for copy content from my shop

Thank You

New member

Posts

Joined
Tue Jan 11, 2011 10:21 pm

Post by SXGuy » Wed Jun 08, 2011 12:16 am

not that i know of, you can search the internet for a way to do it via javascript i believe, then you just place the code in your header.tpl

but to be honest with you, its not worth it, you cant stop people pressing "print Screen" button.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by emilife93 » Wed Jun 08, 2011 10:53 am

I get this code but i dont know how to insert in header.tpl
anyone can help me to inset it?

This Code For Disable Select Text

Code: Select all

<SCRIPT TYPE="text/javascript"> 
<!-- 
//Disable select-text script (IE4+, NS6+)
//visit http://www.rainbow.arch.scriptmania.com/scripts/ 
/////////////////////////////////// 
function disableselect(e){
return false
} 
function reEnable(){
return true
} 
//if IE4+
document.onselectstart=new Function ("return false") 
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// -->
</SCRIPT>

This Code For Disable Right Click

Code: Select all

<SCRIPT TYPE="text/javascript"> 
<!-- 
//Disable right click script 
//visit http://www.rainbow.arch.scriptmania.com/scripts/ 
var message="Sorry, right-click has been disabled"; 
/////////////////////////////////// 
function clickIE() {if (document.all) {(message);return false;}} 
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {(message);return false;}}} 
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
// --> 
</SCRIPT> 
Last edited by emilife93 on Wed Jun 08, 2011 11:04 am, edited 3 times in total.

New member

Posts

Joined
Tue Jan 11, 2011 10:21 pm

Post by SapporoGuy » Wed Jun 08, 2011 10:57 am

You can still grap the images from the activity viewer in chrome and safari. ...

Might want to consider a watermark instead ;)

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by emilife93 » Wed Jun 08, 2011 10:58 am

i mean is text..not images

New member

Posts

Joined
Tue Jan 11, 2011 10:21 pm

Post by emilife93 » Wed Jun 08, 2011 11:20 am

please...anyone can help me...

New member

Posts

Joined
Tue Jan 11, 2011 10:21 pm

Post by SXGuy » Wed Jun 08, 2011 2:57 pm

just paste the coder before the final </div> in your header.tpl file. but like everyone is saying, there are ways around it, your really not stopping anything by using it.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by gnhub » Fri Jan 31, 2014 10:58 pm

please past below code before </head> tag

--------------------------------------------------------------------------------------------------------------------

<meta http-equiv="imagetoolbar" content="no">
<script type="text/javascript">
document.body.ondragstart = "return false";
document.body.onselectstart = "return false";
</script>
<script type="text/javascript">
//<!--
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->
</script>
<script type="text/javascript">
$('img').mousedown(function(){return false});
</script>
<script type="text/javascript">
//<!--
document.oncontextmenu = new Function("return false");
//-->
</script>
<script type="text/javascript">
//<!--
$.fn.extend({
disableSelection : function() {
this.each(function() {
this.onselectstart = function() {
return false;
};
this.unselectable = "on";
$(this).css('-moz-user-select', 'none');
$(this).css('-webkit-user-select', 'none');
$(this).css('-webkit-touch-callout', 'none');
});
}
});

$(function() {
$(this).disableSelection();
});
//-->
</script>
<style type="text/css">
body {
-webkit-user-select: none;
user-select:none;
}
</style>

-----------------------------------------------------------------------------------------------------------------------------------------------------------

Newbie

Posts

Joined
Fri Jan 31, 2014 10:56 pm
Who is online

Users browsing this forum: No registered users and 4 guests