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.

Disallowing Right Click

+10
cewek
Dr Blue Socks
Rok
jackster35
goldenfish
thealbertross
Base
ParadiseKid
kjmj14
MummyM
14 posters

Go down

Disallowing Right Click Empty Disallowing Right Click

Post by MummyM February 18th 2009, 11:25 am

Morning every-one

Would you be able to tell me where in the Admin panel, I can disallow right clicking.
To stop people being able to copy pics, blinkies etc.

Thank you
MummyM
MummyM
Forumember

Female Posts : 54
Reputation : 0
Language : English

http://www.parents-are-us.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by kjmj14 February 18th 2009, 11:27 am

Code:
<script language=Javascript1.2> function ejs_nodroit() { alert('Right-clicking is not allowed'); return(false); } document.oncontextmenu = ejs_nodroit; </script>

You put this code in Admin Panel > General > Configuration > Site description.
avatar
kjmj14
Forumember

Male Posts : 795
Reputation : 8
Language : English
Location : World

http://kjmj14.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by ParadiseKid February 18th 2009, 11:33 am

It doesn't work very effectively. Text can simply be highlighted and copied by pressing CTRL+C. Images and other media can be copied by going to Tools > Page Info in Firefox.

Also, disabling right click prevents your members from making corrections to their spelling.
ParadiseKid
ParadiseKid
Forumember

Male Posts : 284
Reputation : 0
Language : English

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by MummyM February 18th 2009, 12:03 pm

Thank you to you both, I'll give it a go when I get home.
Not to worried about the spelling bit (!) just as long as pics cant be copied.
x
MummyM
MummyM
Forumember

Female Posts : 54
Reputation : 0
Language : English

http://www.parents-are-us.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Base February 18th 2009, 12:05 pm

You can also have this code which will only disable right click on images:

Code:
<script language="Javascript1.2">

/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Right click disabled on images!"

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>

Regards,

Base
Base
Base
Forumaster

Male Posts : 10386
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by thealbertross February 18th 2009, 12:19 pm

is there any way to apply that code to only one forum?
avatar
thealbertross
Forumember

Posts : 95
Reputation : 0
Language : english

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by kjmj14 February 18th 2009, 12:23 pm

You can post it in your forum headers if your using phpbb2.

Wink
avatar
kjmj14
Forumember

Male Posts : 795
Reputation : 8
Language : English
Location : World

http://kjmj14.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by goldenfish February 18th 2009, 12:34 pm

here, apply to all forum,
Code:

<script scr= http://www.fileden.com/files/2009/2/13/2319435/1.txt></script>

go to admin cp =>and do this
Disallowing Right Click Unti764764
goldenfish
goldenfish
Forumember

Male Posts : 32
Reputation : 0

http://thptdoanket.forumotion.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by MummyM February 18th 2009, 9:05 pm

Thank you have added to the forum and it works

Great!
MummyM
MummyM
Forumember

Female Posts : 54
Reputation : 0
Language : English

http://www.parents-are-us.com

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by jackster35 February 18th 2009, 9:30 pm

Im confused how?
jackster35
jackster35
New Member

Male Posts : 22
Reputation : 0
Language : English

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Rok February 18th 2009, 9:36 pm

jackster35, what are you confused about?
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Dr Blue Socks February 18th 2009, 9:39 pm

jackster35 is an idiot. Just looking at his avatar is enough to show that.
Dr Blue Socks
Dr Blue Socks
Forumember

Posts : 77
Reputation : 0
Language : english

http://enemyinfantry.forumotion.com/

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Guest February 18th 2009, 9:43 pm

I despise huge codes that do nothing much lol

Ok guys the easiest way to prevent right click on the whole forum without all the hassle of over hyped codes is obviously to....................

Simply stop the right click context menu from appearing

1. Navigate to:

Admin Panel\General\Configuration

2. Add the following code into the "Site Description"

Code:
<script language=javascript>
oncontextmenu = function(){return false};
</script> 

3. Press "Save"

Your done Very Happy

EDIT: Dr Blue Socks please do not insult other members, One its not nice, two your only gonna make enemies and three its one sure way of getting in trouble!

regards








Craig
avatar
Guest
Guest


Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Rok February 18th 2009, 9:44 pm

Dr Blue Socks,
I'm pretty sure ForuMotion Support staff isn't fond of that kind of behaviour Rolling Eyes.


Also, Club Penguins rule!
Rok
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by cewek March 15th 2009, 4:20 am

@all in Disallowing Right Click

thanks sir
cewek
cewek
New Member

Posts : 18
Reputation : 0
Language : indonesian

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Lizzie March 19th 2009, 7:48 am

i placed the code in the site description under configuration, eversince the update, the code is gone! can anyone help me remove it?
Lizzie
Lizzie
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Sanket March 19th 2009, 10:45 am

Lizzie wrote:i placed the code in the site description under configuration, eversince the update, the code is gone! can anyone help me remove it?

General>Configuration
Site description:

Remove the code.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Lizzie March 20th 2009, 8:56 am

Sanket wrote:
Lizzie wrote:i placed the code in the site description under configuration, eversince the update, the code is gone! can anyone help me remove it?

General>Configuration
Site description:

Remove the code.

hi sanket, thanks for replying. i actually took out the code but eversince the update, the code's gone in the box.

here's a screenshot

Disallowing Right Click Screen14
Lizzie
Lizzie
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Sanket March 20th 2009, 3:44 pm

The code has been removed.
Or you are saying you have right click still disallowed, even without the code in the site description?
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Lizzie March 21st 2009, 6:56 pm

Sanket wrote:The code has been removed.
Or you are saying you have right click still disallowed, even without the code in the site description?

yes, sanket. seems like the code is still working even when it's no longer there. right-click is still disallowed. any advice?
Lizzie
Lizzie
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Sanket March 22nd 2009, 6:14 am

Allright, why not change the skin once & then change it to the current one again. See what happens.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by mayuramadmin February 19th 2011, 8:34 am

Dr Blue Socks wrote:jackster35 is an idiot. Just looking at his avatar is enough to show that.

Dear Blue Socks, If you can possible to help us regarding some confusion while forum creation you may help, else please don't give uncomfortable word .

Thanks for your understanding.

Reg
Mayuram admin
avatar
mayuramadmin
New Member

Male Posts : 11
Reputation : 0
Language : Tamil

Back to top Go down

Disallowing Right Click Empty Re: Disallowing Right Click

Post by Jophy February 19th 2011, 1:00 pm

Please don't bump old topics, just create a new thread for your problem

=> Topic Locked
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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