Disable Right Click On Everything
This modification is in the archives.
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> 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 |
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 |