Block Right-Clicking in Clip-Bucket v2

Hello,

Have you seen some websites blocking mouse right clicks? They do it to block certain content from being either downloaded or shared (can be still downloaded, though). Learn how to do it in your Clip-Bucket v2 powered website by following these simple instructions. Cross-browser.

1. Open ./styles/{YOURTEMPLATE}/global_header.html

2. Find

</head>

and before that line, paste

{literal}
<script type="text/javascript">
var message="Right Clicking Has Been Disabled.";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;

} else {

document.onmouseup=clickNS;document.oncontextmenu=clickIE;

}
document.oncontextmenu=new Function("return false");
</script>
{/literal}

3. Save & Upload.

Now go to your site and notice that whenever you right click, an alert will pop up saying the function has been disabled. If you cannot get it working or you get stuck at any step, please do not hesitate to can’t me ASAP so I can assist you. If you’d like me to cover a specific topic, I’m up for suggestions, just let me know!

Best Regards,

Richi

Looking for quality Clip-Bucket hosting? Try out Arvixe and you won’t be disappointed.
Tags: , , , , , , , , , , , , | Posted under ClipBucket | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *


− 4 = 2

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>