• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Disable Right Click For User Groups

Admin

Well-Known Member
Staff member
Administrator
This is a simple modification for your header template.

Not sure if this been posted before but though i would share it.

You can prevent chosen usergroups from using right click or ctrl+c etc

To Install is very simple, open your header template and paste code below at the top.

You must add the usergroups you want to stop using right click, separated by a comer :)

Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
<body style="user-select: none; -khtml-user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -o-user-select: none;">
<script language="javascript" type="text/javascript">

document.oncontextmenu=RightMouseDown;
document.onmousedown = mouseDown; 



function mouseDown(e) {
    if (e.which==3) {//righClick
       
    }
}


function RightMouseDown() { return false; }

</script>

</vb:if>


Tested in Internet Explorer, Firefox and Chrome
 

Facebook Comments

New posts New threads New resources

Back
Top