The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Code for "No Right Click" on Forums
Hi;
I am running an image-hosting forum and would be interested in a hack that I could protect images displayed on showthread.php (forum display thread default) from a right-click save. The following javascripting isn't working: Code:
$("#vfIMG_main_pic").bind("mousedown", MainPicMouseDown); $("#slideshow_pic").bind("mousedown", MainPicMouseDown); function MainPicMouseDown(event) { switch(event.which) { case 3: alert("This image is protected by legal copyright and is the property of its owner."); break; default: // do nothing } } Would be grateful for any input, Jack |
#2
|
|||
|
|||
<a href="http://ozzmodz.com/showthread.php/7021-OzzModz-Disable-Right-Click-%28vB4%29-%28vB3-8%29-v1-0-1" target="_blank">http://ozzmodz.com/showthread.php/70...B3-8%29-v1-0-1</a>
|
#3
|
|||
|
|||
Thank you. It works perfectly for the photos ... unfortunately, it also disables right-clicking on TEXT too in the Edt text section
--------------- Added [DATE]1429233278[/DATE] at [TIME]1429233278[/TIME] --------------- Any other ideas? |
#4
|
|||
|
|||
talk to ozzy on his site see if he will add in what option you need
|
#5
|
||||
|
||||
Add this at the end of your footer Template.
Code:
<script> document.oncontextmenu = function(e){ var target = (typeof e !="undefined")? e.target: event.srcElement if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) return false } </script> |
Благодарность от: | ||
ForceHSS |
#6
|
|||
|
|||
I appreciate this, thank you ... where can I place the following verbiage:
"This image is protected by legal copyright and is the property of its owner." ? |
#7
|
|||
|
|||
You can't in the above it you need to be rewritten
|
#8
|
||||
|
||||
Quote:
Code:
<script> document.oncontextmenu = function(e){ var target = (typeof e !="undefined")? e.target: event.srcElement if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) alert('This image is protected by legal copyright and is the property of its owner'); } </script> |
#9
|
|||
|
|||
Thank you very much!
If you can't right-click, how do you employ inspect element? --------------- Added [DATE]1429291728[/DATE] at [TIME]1429291728[/TIME] --------------- This works perfectly, thank you. --------------- Added [DATE]1429291840[/DATE] at [TIME]1429291840[/TIME] --------------- BTW, I see what you're saying on the inspect element. But at least it's a cursory deterrent. Thanks again. --------------- Added [DATE]1429301092[/DATE] at [TIME]1429301092[/TIME] --------------- Actually, there is a problem. I get the "No right click" message ... however, when I click-away the error message, then my right-click menu pops up, so I can do the same thing anyway How do I get rid of that second-appearance of my full right-click menu? Thanks again, Jack |
#10
|
||||
|
||||
You realize that if the user is viewing the image using a browser, the image is already downloaded to their computer, right?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|