The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Disabling Right Click

4 posters

Go down

Disabling Right Click Empty Disabling Right Click

Post by redfurrymonster84 March 12th 2006, 3:22 am

I found the following code and I wanted to use it for my forum:

Code:
<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="TYPE HERE";

///////////////////////////////////
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></font></p><p><script language="JavaScript"></script></p>



I tryed putting it on my forum, but it did not work. Will this code work for my forum and if so where the heck would I put it?

- RFM
redfurrymonster84
redfurrymonster84
Forumember

Posts : 99
Reputation : 0
Location : Indiana

Back to top Go down

Disabling Right Click Empty Re: Disabling Right Click

Post by Cornelia March 12th 2006, 5:34 am

This script you showed is really long...

On the French board, I found an anti-right-click script which is much shorter and I tested it on my test forum. It works perfectly!


Here is the code :

Code:
<script language=JavaScript1.2> function ejs_nodroit() { alert('Right-click is forbidden !!!'); return(false); } document.oncontextmenu = ejs_nodroit; </script>


You put this code in Admin Panel > General Admin > Configuration > Site description. (there is enough place for my code)

But beware, the anti-right-click can be easily bypassed by people who have good knowledge in computers.
Cornelia
Cornelia
Hyperactive

Female Posts : 4763
Reputation : 173
Language : I'M NOT A TECHIE OR A MOD, SO QUIT SENDING ME PMS FOR TECHIE STUFF OR LOST PASSWORDS !!!
Location : Absent on weekends until camping season ends

http://ishimaru-design.servhome.org

Back to top Go down

Disabling Right Click Empty Re: Disabling Right Click

Post by redfurrymonster84 March 12th 2006, 7:47 pm

Thank you! Yes, this code is much shorter Very Happy
redfurrymonster84
redfurrymonster84
Forumember

Posts : 99
Reputation : 0
Location : Indiana

Back to top Go down

Disabling Right Click Empty Re: Disabling Right Click

Post by CloverTea April 2nd 2010, 8:42 am

The code works for my forum, but is there a way to limit it to only work on the homepage? (where all the forum categories are?)


My issue is that another forumotion forum stole my category images that my members and I created. Take a look at my forum:

clover.top-forum.net/forum.htm

and now check out his:
http://blaziken33.pokemonlegend.org/forum.htm

He didn't steal ALL of them, but he still stole some....anything I can do?
CloverTea
CloverTea
Forumember

Female Posts : 99
Reputation : 0
Language : English

http://clover.top-forum.net

Back to top Go down

Disabling Right Click Empty Re: Disabling Right Click

Post by latinmoney April 2nd 2010, 9:39 am

you shouldn't worry about it his forum dose not seem to be active nor any good so competing with him is no threat at all for you,your ok i mean compare your amount of members to his Shocked lol fufufu
latinmoney
latinmoney
Forumember

Male Posts : 57
Reputation : 0
Language : English, Spanish learning japanies,learing french
Location : bronx

http://john.forumj.biz

Back to top Go down

Disabling Right Click Empty Re: Disabling Right Click

Post by CloverTea April 2nd 2010, 8:54 pm

It's not about the competition...it's about the fact that they stole the icons my members and I made.


Regardless, they took them down =_= So yaayyy!
CloverTea
CloverTea
Forumember

Female Posts : 99
Reputation : 0
Language : English

http://clover.top-forum.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum