No Right Click - add no right click for FREE

There's a mod being sold which is available for FREE.  If you wish not to allow right clicking on your site, here's the solution.

Edit templates/base/_header.html

Find </head>

Before add this code:


<script language=JavaScript> var message="Function Disabled!"; 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>

 

Where you see Function Disabled!you can add what message you like.

Clear the cache

That's it, No right click

Enjoy

Quote · 28 Aug 2015

You do realize that you don't have to right click on a page these days.

Chrome and other browsers have a "view page source" in the tools section.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 28 Aug 2015

Hi Newton27

I placed this here because someone has created a mod with this feature and charging for it when it is FREE throughout the web.

G

Quote · 28 Aug 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.