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.

Disallowing Right Click

View previous topic View next topic Go down

Disallowing Right Click

Post by MummyM on 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
Forumember

Female Posts : 54
Reputation : 0
Language : English

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

Back to top Go down

Re: Disallowing Right Click

Post by kjmj14 on 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.

kjmj14
Forumember

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

http://kjmj14.com

Back to top Go down

Re: Disallowing Right Click

Post by ParadiseKid on 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
Forumember

Male Posts : 284
Reputation : 0
Language : English

Back to top Go down

Re: Disallowing Right Click

Post by MummyM on 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
Forumember

Female Posts : 54
Reputation : 0
Language : English

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

Back to top Go down

Re: Disallowing Right Click

Post by Base on 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
Forumaster

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

http://forumotionhub.net

Back to top Go down

Re: Disallowing Right Click

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

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

thealbertross
Forumember

Posts : 95
Reputation : 0
Language : english

Back to top Go down

Re: Disallowing Right Click

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

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

Wink

kjmj14
Forumember

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

http://kjmj14.com

Back to top Go down

Re: Disallowing Right Click

Post by goldenfish on 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

goldenfish
Forumember

Male Posts : 32
Reputation : 0

http://thptdoanket.forumotion.com

Back to top Go down

Re: Disallowing Right Click

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

Thank you have added to the forum and it works

Great!

MummyM
Forumember

Female Posts : 54
Reputation : 0
Language : English

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

Back to top Go down

Re: Disallowing Right Click

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

Im confused how?

jackster35
New Member

Male Posts : 22
Reputation : 0
Language : English

Back to top Go down

Re: Disallowing Right Click

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

jackster35, what are you confused about?

Rok
Energetic

Male Posts : 6823
Reputation : 232
Language : idk

Back to top Go down

Re: Disallowing Right Click

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

jackster35 is an idiot. Just looking at his avatar is enough to show that.

Dr Blue Socks
Forumember

Posts : 77
Reputation : 0
Language : english

http://enemyinfantry.forumotion.com/

Back to top Go down

Re: Disallowing Right Click

Post by Guest on 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

Guest
Guest


Back to top Go down

Re: Disallowing Right Click

Post by Rok on 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
Energetic

Male Posts : 6823
Reputation : 232
Language : idk

Back to top Go down

Re: Disallowing Right Click

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

@all in Disallowing Right Click

thanks sir

cewek
New Member

Posts : 18
Reputation : 0
Language : indonesian

Back to top Go down

Re: Disallowing Right Click

Post by Lizzie on 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
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Re: Disallowing Right Click

Post by Sanket on 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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: Disallowing Right Click

Post by Lizzie on 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


Lizzie
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Re: Disallowing Right Click

Post by Sanket on 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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: Disallowing Right Click

Post by Lizzie on 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
Forumember

Posts : 97
Reputation : 0
Language : English

Back to top Go down

Re: Disallowing Right Click

Post by Sanket on 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
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: Disallowing Right Click

Post by mayuramadmin on 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

mayuramadmin
New Member

Male Posts : 11
Reputation : 0
Language : Tamil

Back to top Go down

Re: Disallowing Right Click

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

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

=> Topic Locked

Jophy
ForumGuru

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

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