The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable Right-Click in threads!
I would like to see a hack to disable right-clicking,but only in posts. I found a hack for phpbb that does it which i will give the code now...
Code:
<!-- Start add - No copy MOD --> <script language="javascript"> <!-- var previous_key ; function clickIE4(){ if (event.button==2){ alert('No Right Click Is Allowed'); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert('No Right Click Is Allowed'); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } function handleKeyDown() { if (previous_key==17 ) { switch (window.event.keyCode) { case 45 : case 46: case 67: case 88: alert('Copy Is Not Allowed'); event.keyCode=0; previous_key=window.event.keyCode; event.returnValue=false; break; } } else if (previous_key==16) { switch (window.event.keyCode) { case 45 : case 46: alert('Copy Is Not Allowed'+window.event.keyCode); event.keyCode=0; previous_key=window.event.keyCode; event.returnValue=false; break; } } previous_key=window.event.keyCode; } function handleKeyUp() { previous_key=0; } if ( 1 ) { document.oncontextmenu=new Function("alert('No Right Click Is Allowed');return false") document.onkeyup = handleKeyUp; document.onkeydown = handleKeyDown; } //--> </script> <!-- End add - No copy MOD --> |
#2
|
|||
|
|||
Hmm.... should work if go to AdminCP -> Style Manager -> Edit Templates.
Find and open the template "SHOWTHREAD" and paste the above code right at the beginning. That should add this "mod" into every threadview. Not tested, but should work. |
#3
|
|||
|
|||
easy just them in header in common templates
|
#4
|
||||
|
||||
it could actually be added to the header template, just by wrapping it in
Code:
<if condition="THIS_SCRIPT == 'showthread'">Place code here...</if> |
#5
|
||||
|
||||
umm idea isn't bad at all...but how to disable right ckick on images including avtar,posted image ....
Suggestion pls... Thanks |
#6
|
|||
|
|||
Quote:
It only makes people mad at you |
#7
|
||||
|
||||
Right-click blockers never work and are just annoying.
|
#8
|
||||
|
||||
Thankx..
|
#9
|
|||
|
|||
The best way around it is:
CTRL + C |
#10
|
||||
|
||||
That's why i want a hack to be made to download a Attachment like a url instead. If that can be done it will be extremely hard for people to get the actual link to the file, but nobody is interested in making a hack like that i guess. Like a certain .url file in which customer's can simply edit and put their real links in there and upload as a attachment,when people download it,they don't download it but get redirected to the files instead. Of course my only concern would be people using Download Managers as their default downloading software,then they would be able to see the download links. I just want it to be as hard as possible is all for them.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|