Advertise Here

Author Topic: Disable "Right-clicking"?  (Read 8569 times)

0 Members and 1 Guest are viewing this topic.

Offline Crystalman

  • SMF For Free Full Member
  • *
  • Posts: 152
  • Crystalman.EXE
    • View Profile
    • Buster Cannon Forums

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Disable "Right-clicking"?
« on: May 11, 2007, 09:41:56 pm »
Forum Url: http://bcfcomics.smfforfree.com
I've got a forum that has Comics hosted on it, and I was wondering if someone could give me a code to disable right-clicking on the site, to avoid copyright infringement, or have someone steal comics.


Buster Cannon Forums, and BCF-Comics.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Disable "Right-clicking"?
« Reply #1 on: May 11, 2007, 09:43:23 pm »
sure, let me find one...I know there is a code for it.


EDIT:
I would recomend you to put this in a Forum Description or you will not be able to edit your Admin CP.

Place this in your footers:
Code: [Select]
<script
language="JavaScript">
<!--

//Disable right click script III- By Muzaffer Mohammad (muzzu@muzzu.ca.tc)
//For full source code, visit http://www.muzzu.ca.tc

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(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")
// -->
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
« Last Edit: May 11, 2007, 10:02:48 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline Crystalman

  • SMF For Free Full Member
  • *
  • Posts: 152
  • Crystalman.EXE
    • View Profile
    • Buster Cannon Forums

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Disable "Right-clicking"?
« Reply #2 on: May 11, 2007, 11:23:32 pm »
Thanks! It worked!


Buster Cannon Forums, and BCF-Comics.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Disable "Right-clicking"?
« Reply #3 on: May 11, 2007, 11:32:28 pm »
No Problem
Check out Revolution X's Brand new Code Index!

Offline nitsua

  • SMF For Free Member
  • *
  • Posts: 30
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Disable "Right-clicking"?
« Reply #4 on: May 18, 2007, 01:32:19 pm »
that doesn't mean they can't get you pics all they have to do is click file save page and hit save and then they  got your pics and everything else on your page

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Disable "Right-clicking"?
« Reply #5 on: May 20, 2007, 07:24:40 am »
Ouch, Moose, I goofed on this and now I am stuck. Do you have any suggestions?

I need my Admin CP back.


(bangs head slowly and with great vigor against desk)


And I Play:  Mafia-Mandemz

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Disable "Right-clicking"?
« Reply #6 on: May 20, 2007, 07:29:12 am »
All you did was put the code into your admin CP right?
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Disable "Right-clicking"?
« Reply #7 on: May 20, 2007, 07:43:29 am »
Ok, nm.  I bit the bullet and cleared my footers.  Guess I won't make that mistake again.  Luckily I wrote down everything I had in there, won't take very long to put it back.


And I Play:  Mafia-Mandemz

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: Disable "Right-clicking"?
« Reply #8 on: May 20, 2007, 12:09:27 pm »
You could probably put the code into the description of a forum, mabe it will not effect the ACP.
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: Disable "Right-clicking"?
« Reply #9 on: May 20, 2007, 12:55:54 pm »
Maybe I will try that another time.  I had enough of Mr Toad's wild ride for one day.


And I Play:  Mafia-Mandemz

Offline Crystalman

  • SMF For Free Full Member
  • *
  • Posts: 152
  • Crystalman.EXE
    • View Profile
    • Buster Cannon Forums

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Disable "Right-clicking"?
« Reply #10 on: May 24, 2007, 12:00:03 pm »
that doesn't mean they can't get you pics all they have to do is click file save page and hit save and then they  got your pics and everything else on your page

I don't need 100% security. Anyone who can think of that, is probably smart enough to not steal pictures.

And there's an error, when I use it, I can't enter in the feilds that allow me to add pics to the gallery.


Buster Cannon Forums, and BCF-Comics.

Offline glennn8

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Disable "Right-clicking"?
« Reply #11 on: May 24, 2007, 02:15:28 pm »
nice! :)
now the cant steal pic's ;)

Offline LAzArUs ™

  • SMF For Free Member
  • *
  • Posts: 63
    • View Profile
    • AFP Alliance Forum

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Disable "Right-clicking"?
« Reply #12 on: May 24, 2007, 02:58:27 pm »
i add that code it some minor problem in the forum, like you cant copy text when you are in your admin panel.

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Disable "Right-clicking"?
« Reply #13 on: May 24, 2007, 03:33:47 pm »
If the code is causing problems within the Admin CP I would recommend not using it. There is really only one way to secure your images and thats to include a watermark on them (and even thats not totally secure).

People can use programs such as FastStone Capture, where there is no "right clicking" or clicking on "File/Save Page As" needed to get peoples images. If someone wants them bad enough they can get them.

Pretty much all you can do is place an image copyright disclaimer on your site and hope that noone takes them.
« Last Edit: May 24, 2007, 03:35:20 pm by Kimmie »

Offline Sassy Šiva™

  • SMF For Free Sr. Member
  • *
  • Posts: 292
    • View Profile

  • Total Badges: 17
    Badges: (View All)
    Level 4 Windows User Topic Starter Combination Level 3
Re: Disable "Right-clicking"?
« Reply #14 on: May 24, 2007, 09:48:06 pm »
Code: [Select]
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

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>

I use that one in my header section  :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
755 Views
Last post June 24, 2007, 01:06:01 am
by Kimmie
3 Replies
3262 Views
Last post July 27, 2007, 05:10:31 pm
by doggiedoo86
2 Replies
2290 Views
Last post November 14, 2007, 08:31:34 pm
by Nick_LRG
0 Replies
1630 Views
Last post May 15, 2008, 06:47:08 pm
by Lucas A33
2 Replies
863 Views
Last post March 07, 2009, 08:20:16 pm
by Jade