View Full Version : Forum Display Enhancements - Disable Select and Right click
Silver Boy
05-02-2008, 10:00 PM
somebody doesn't like to someone copy text and picture of their forum.
this codes help them to solve this problem
Disable Select in board
add this code in header of style:
<!------ disable Select ------->
<head>
<meta http-equiv="Content-Language" content="en-us">
</head>
<script language="JavaScript1.2">
<!--
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>
<!------ /disable Select ------->
Disable mouse right click in IE and Firefox (I didn't check for othere explorer, maybe work)
add this code in header of style:
<!------ disable right click ------->
<script language="JavaScript">
<!--
var message="";
///////////////////////////////////
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>
<!------ /disable right click ------->
Update : Deleted "disable right click in IE" for no confusion
koolfire
05-03-2008, 09:21 PM
Disabling Right click code thing doesn't wokr
Tried this on 3.6.8
Silver Boy
05-04-2008, 06:26 AM
work in IE,
but I was update anothere code that work correctly in 3.7.x with IE and Firefox browser (maybe work with othere browser)
enjoy https://vborg.vbsupport.ru/external/2008/05/60.gif
beduino
05-04-2008, 03:39 PM
hi
i install to test and ...
[last code]
works in iexplorer 7
don't work in ffox
tks
beduino
Silver Boy
05-04-2008, 07:26 PM
hi
i install to test and ...
[last code]
works in iexplorer 7
don't work in ffox
tks
beduino
did you use Disable mouse right click in IE and Firefox ? (I think u used disable right click only in IE)
I was Delete "disable right click in IE" for no confusion
just use first code for disable selecting
and use seconde code for disable right click
sure that work correctly https://vborg.vbsupport.ru/external/2008/05/60.gif
Jase2
05-04-2008, 08:52 PM
Seen too many of these. Simply turning javascript off in your browser makes this completely useless, unfortunately.
Guest210212002
05-04-2008, 11:49 PM
This is just plain old JS, not really a vB mod at all.
Mike-D
05-08-2008, 06:46 PM
To be honest: Disabling right clicking makes no sense and does not really protect. It's really simple to avoid this. Anyone who's determined to copy your content or code will do so regardless of his or her ability to bring up a browser context menu. If they want your source code then it's as simple as selecting 'View Source' from the main menu. The needed or searched text can be highlighted and copied. Also images and media presentations can be retrieved from the cache and streaming media can be recorded. Disabling right-click will only make people more determined to learn exactly what it is you're hiding. And this could end up being counter-productive, as your images and source code attract unwanted attention. Not only that, but you can only disable right-click on browsers that have JavaScript enabled! This means: A visitor only has to turn off JavaScript in their browser's options to be able to ignore the script altogether!
Don't forget: Firefox provides users an easy way to stop these common Javascript annoyances! Also most Firefox users does have the Firebug Addon installed. Using this makes the cracking Javascript code more easier! Only a well meant advice :) -Mike
thanks for the code... I need this in some parts of the board.
Hostboard
08-25-2008, 01:10 PM
To be honest: Disabling right clicking makes no sense and does not really protect. It's really simple to avoid this. Anyone who's determined to copy your content or code will do so regardless of his or her ability to bring up a browser context menu. If they want your source code then it's as simple as selecting 'View Source' from the main menu. The needed or searched text can be highlighted and copied. Also images and media presentations can be retrieved from the cache and streaming media can be recorded. Disabling right-click will only make people more determined to learn exactly what it is you're hiding. And this could end up being counter-productive, as your images and source code attract unwanted attention. Not only that, but you can only disable right-click on browsers that have JavaScript enabled! This means: A visitor only has to turn off JavaScript in their browser's options to be able to ignore the script altogether!
Don't forget: Firefox provides users an easy way to stop these common Javascript annoyances! Also most Firefox users does have the Firebug Addon installed. Using this makes the cracking Javascript code more easier! Only a well meant advice :) -Mike
This is just meant to make someone work for it instead of making it easier.
raja811
11-20-2008, 10:45 PM
Thanks Worked 3.7.3
LyleS
11-26-2008, 10:23 PM
This is the best thing since crunchy peanut butter!
Michael.A
05-05-2009, 09:49 PM
CTRL A to Select THEN CTRL C to copy
does not work if u think this can stop member for copying you post's
nomoreturn
05-06-2009, 08:29 AM
I add both code in head 3.8.2
merkaz
05-06-2009, 02:39 PM
So Nice ..
lm3a.net
05-20-2009, 08:45 AM
Does it work with opera ?
thanks,
nomoreturn
05-27-2009, 02:43 AM
How i can disable this code in Posting area or in edit area i can't copy paste in posting area ( where we right our post ) or in edit area please help ti fix it thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.