The Arcive of vBulletin Modifications Site. |
|
Disable Right Click Details »»
|
|||||||||||||||||||||||||||
This script will act as a sort of barrier to prevent people from right clicking on your forum thus offering some sort of protection. There are ways to get round this but think of it as a hurdle which may put some people off.
Add the following code to the header template: Code:
<script type="text/javascript">
<!--
var error="Right click functionality is disabled";
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(error);return false")
// -->
</script>
Editing the Error Message: Changing the message shown is a piece of cake. This can be done by finding this line near the top of the script: Code:
var error="Right click functionality is disabled"; Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Suggestion :
1) Create Template with this code 2) create a hook : in Header_head Template Name : from template 1 then there is no need to edit the template with VB5 alot of use will be aiming towards using template hooks to do all the tasks for use |
| Благодарность от: | ||
| Asterix_ita | ||
|
#3
|
|||
|
|||
|
Good suggestion. Thanks for the tip
|
|
#4
|
||||
|
||||
|
now you can create a mod
|
|
#5
|
|||
|
|||
|
Added an xml file that will automatically add the template changes. You can also edit the error message from the Settings page instead of through the template when using the xml file.
|
| Благодарность от: | ||
| Asterix_ita | ||
|
#6
|
|||
|
|||
|
Have an update for 4.1.10 ?
|
|
#7
|
|||
|
|||
|
this is for VB5 only, you need to request a VB4 version
in this case you would be asking the developer to downgrade the mod VB5 uses a completly new hook system and will not work on VB4 |
|
#8
|
|||
|
|||
|
:up: thanks iwill applied in my forums
|
|
#9
|
||||
|
||||
|
Lock the right button of the mouse has some advantages:
Such as lack of access to the source of the page And do not copy the content of Thread And do not copy URL Thanks
|
|
#10
|
||||
|
||||
|
May seem like a stupid question but this "hook" your talking about how does one go about doing that? I know how to create the template but the hook is something I am not familiar with. Will be glad to read some if I need to learn.
|
![]() |
|
|