hello all, i have looked everywhere in the forums but cant seem to find a updated fix to this issue, i need to disable the right click feature on the site.
i have found fixes for past dolphin versions but nothing that works for version 7.9
Help please!!
Thanks
You Creature!! |
Point out a url to one of those fixes, perhaps we can adapt it.
But before you decide to do it, read this. http://www.sitepoint.com/dont-disable-right-click/ disabling right-click does not really protect you, and it will hurt current and future browser features.
https://www.deanbassett.com |
Point out a url to one of those fixes, perhaps we can adapt it.
But before you decide to do it, read this. http://www.sitepoint.com/dont-disable-right-click/ disabling right-click does not really protect you, and it will hurt current and future browser features.
one of the ones i found was:
Put it right below <base href="<bx_url_root />" /> in your _header.html file
<script language=JavaScript>
var message="You can put a custom message here."; function click(e) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; </script>
You Creature!! |
I fully support deano on this, its not a good idea at all. But if you really want that here is a jquery code put this in your _header.html before <body>
<script type="text/javascript">
$(document).ready(function(){ $(document).bind("contextmenu",function(e){ alert('Blocking right click is not a good idea. :P'); e.preventDefault(); }); });
</script>
http://jsfiddle.net/Q3LMD/1/
Good luck :D
so much to do.... |
Cheers for that mate, yeah i know blocking the right click is not a good idea but it's what members want so there you go :(
where abouts do i put this bit of code? in the base header.html file of my custom template header.html? and when you say put it just before <body> but cant find <body> in the header files :s
Cheers.
I fully support deano on this, its not a good idea at all. But if you really want that here is a jquery code put this in your _header.html before <body>
<script type="text/javascript">
$(document).ready(function(){ $(document).bind("contextmenu",function(e){ alert('Blocking right click is not a good idea. :P'); e.preventDefault(); }); });
</script>
http://jsfiddle.net/Q3LMD/1/
Good luck :D
You Creature!! |
sorry i done a mistake. i was working on many things together. Put it before the closing </head> tag if you are using your custom template than custom template's _header.html. so much to do.... |
cheers mate, ok so its worked on one of my sites but not the other :(
is there anywhere else i could put the code and not in header.html ? because i have put it everywhere in the header files on the one website and its just not working :(
cheers
sorry i done a mistake. i was working on many things together. Put it before the closing </head> tag if you are using your custom template than custom template's _header.html.
You Creature!! |
yeah you can put it somewhere else to test if it works. Can i have the other site url. so much to do.... |
sent it in a pm :)
cheers
yeah you can put it somewhere else to test if it works. Can i have the other site url.
You Creature!! |