Back to vBulletin 3.6 Template Modifications

Disable Right Click On Everything
Mod Version: 1.00, by Stunner

This modification is in the archives.
vB Version: 3.6.4 Rating: (2 votes - 4.50 average) Installs: 12
Released: 21 Jan 2007 Last Update: Never Downloads: 3
Not Supported  

I was searching DynamicDrive.com and came across this nifty little code. It will disable ANYONE from saving images from your site and will COMPLETELY disable ALL right clicks. So it has Pro's & Cons. I use this mostly on html pages I make off the forum. Just searching in the html for </head> and pasting below it the code provided.

Simply go to
ForumDisplay Templates>Forum Display>Search for "</head>"
&
ForumHome Templates>Forum Home> Search for "</head>"
&
ShowThread Templates>Showthread>Search for "</head>"
and below it paste

Code:
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (email) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="The Stunner Says: Nice Try!";
///////////////////////////////////
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>
Save

Do the same for Forum Home and Show Thread templates.

Thanks to http://www.dynamicdrive.com/dynamicindex9/noright.htm for the code.

To edit the message simply search for "var message" and edit my custom message.

This is my first time posting a mod so go easy on me.

Download

No files for download.

Screenshots

Click image for larger version
Name:	Right Click.jpg
Views:	504
Size:	10.2 KB
ID:	59346  

Similar Mods

Miscellaneous Hacks Disable Right Click on your Forum vBulletin 3.6 Add-ons
Forum Display Enhancements Disable Select and Right click vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024