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 clicks?

+2
CatherinaAndrea
JazeonX
6 posters

Go down

Disabling clicks? Empty Disabling clicks?

Post by JazeonX Tue 8 May - 13:11

How do I disable both right and left clicks in my forum?
JazeonX
JazeonX
Forumember

Male Posts : 215
Reputation : 1
Language :  
Location : Philippines

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by CatherinaAndrea Tue 8 May - 13:26

I think you may want to disable only the right-click, cause how else are people gonna be able to click on links. But I wouldn't even suggest disabling the Right-Click ... (speaking from personal experience, had it on my own webby and it was annoying)

Just put this code in a widget and put it on a page you would like to disable the Right-Click:
Code:
<SCRIPT TYPE="text/javascript">
<!--
//Disable right click script
//visit http://www.rainbow.arch.scriptmania.com/scripts/
var message="Sorry, right-click has been disabled";
///////////////////////////////////
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")
// -->
</SCRIPT>
CatherinaAndrea
CatherinaAndrea
Forumember

Female Posts : 230
Reputation : 19
Language : English, Russian, Dutch

http://www.nailphanatic.com/

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by kirk Tue 8 May - 13:29

I dont know anything for left click?
But here is one for right click, Keep in mid if you add this it will not prevent people from seeing source code etc..
Also that you will not be able to right click either.

You will have to put this at the top your over all header template, hit save then go back and publish.

Code:
<script language=Javascript1.2> function ejs_nodroit() { alert('RIGHT CLICK DISABLED FOR THIS SITE');
    return(false); } document.oncontextmenu = ejs_nodroit; </script>

 
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by +Fusion- Tue 8 May - 15:29

CatherinaAndrea wrote:But I wouldn't even suggest disabling the Right-Click ... (speaking from personal experience, had it on my own webby and it was annoying)

ikr, i think the only reason why people use this is to block people from access the scripts and forum images with inspect element
+Fusion-
+Fusion-
Forumember

Male Posts : 252
Reputation : 4
Language : English
Location : Flying

http://www.xcodezz.com

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by nutsonlizards Tue 8 May - 15:59

yeah that is very true i have mine in a widget that way it set just for guests Smile
nutsonlizards
nutsonlizards
Forumember

Posts : 59
Reputation : 14
Language : London

http://www.redneckherpsforum.com/forum

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by LGforum Tue 8 May - 19:03

It never stops people getting the images or scripts or anything... for a start... I can disable javascript in my browser in less than 2 clicks... and many other people can too.

What your adding to your forum is amazingly pointless and amazingly silly.

Not to mention, both those codes are amazingly outdated, where the heck did you get those from? Razz
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by kirk Tue 8 May - 19:15

LGforum wrote:

Not to mention, both those codes are amazingly outdated, where the heck did you get those from? Razz

lol Razz Razz Razz
The code i got was from here probably posted a couple years ago,
I just noticed the code i put up, if you right click twice it comes up with a option to disable it. (silly).. i think it may be something that was added to the new firefox, idk... ???

Anyway whatever the case, To each is own if they want it added or not, Just be sure to give us the heads up so we can mark this as solved and move to archives. Very good

Thanx
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by +Fusion- Tue 8 May - 19:18

LGforum wrote:It never stops people getting the images or scripts or anything... for a start... I can disable javascript in my browser in less than 2 clicks... and many other people can too.

What your adding to your forum is amazingly pointless and amazingly silly.

Not to mention, both those codes are amazingly outdated, where the heck did you get those from? Razz

Lol,

-And Rideem3 i think his problem is solved cuz the disable right clicks code is posted and there is no disable left clicks code. that would be too silly to have that code on your forum
+Fusion-
+Fusion-
Forumember

Male Posts : 252
Reputation : 4
Language : English
Location : Flying

http://www.xcodezz.com

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by JazeonX Wed 9 May - 15:07

Solved
JazeonX
JazeonX
Forumember

Male Posts : 215
Reputation : 1
Language :  
Location : Philippines

Back to top Go down

Disabling clicks? Empty Re: Disabling clicks?

Post by kirk Wed 9 May - 15:29

JazeonX wrote:Solved
Topic Solved & Locked
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Back to top

- Similar topics

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