The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Disabling clicks?

View previous topic View next topic Go down

Disabling clicks?

Post by JazeonX on May 8th 2012, 6:11 pm

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

JazeonX
Forumember

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

Back to top Go down

Re: Disabling clicks?

Post by CatherinaAndrea on May 8th 2012, 6:26 pm

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
Forumember

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

http://www.nailphanatic.com/

Back to top Go down

Re: Disabling clicks?

Post by kirk on May 8th 2012, 6:29 pm

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
Forumaster

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

Back to top Go down

Re: Disabling clicks?

Post by +Fusion- on May 8th 2012, 8:29 pm

@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-
Forumember

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

http://www.xcodezz.com

Back to top Go down

Re: Disabling clicks?

Post by nutsonlizards on May 8th 2012, 8:59 pm

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

nutsonlizards
Forumember

Posts : 59
Reputation : 14
Language : London

http://www.redneckherpsforum.com/forum

Back to top Go down

Re: Disabling clicks?

Post by LGforum on May 9th 2012, 12:03 am

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
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Disabling clicks?

Post by kirk on May 9th 2012, 12:15 am

@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
Forumaster

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

Back to top Go down

Re: Disabling clicks?

Post by +Fusion- on May 9th 2012, 12:18 am

@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-
Forumember

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

http://www.xcodezz.com

Back to top Go down

Re: Disabling clicks?

Post by JazeonX on May 9th 2012, 8:07 pm

Solved

JazeonX
Forumember

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

Back to top Go down

Re: Disabling clicks?

Post by kirk on May 9th 2012, 8:29 pm

@JazeonX wrote:Solved
Topic Solved & Locked

kirk
Forumaster

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

Back to top Go down

View previous topic View next topic Back to top


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