News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Disable Right Click (v4.0 Released!)

Started by Chas Large, May 07, 2008, 07:10:11 PM

Previous topic - Next topic

Kenny01

#240
Please i don't know what's wrong, i'm using 1.1.11 the installation goes fine without error, i set permission disable for guests and regular members, but it never work for me.

The mod only work in my register, gallery, register pages etc... but do not work in the boards which is where i need it.

Can someone tell me what's wrong.

Thanks.

EDIT:
I noticed that it only work in urls ending with "action="
example index.php?action=help

can someone help to make it work in my index?

Thanks,
Ken.

Liam.

Kenny, are you still logged in as an admin? Admins will never have right-click disabled...

Kenny01

Quote from: Liam. on June 17, 2010, 05:11:40 PM
Kenny, are you still logged in as an admin? Admins will never have right-click disabled...
No Liam, i logout to do the test as a guest. Still no joy.

adbrad

how have you got the right click permission set

Kenny01

Quote from: adbrad on June 18, 2010, 10:48:12 AM
how have you got the right click permission set
I set permission to disallow right click for both guests and regular members,
i'm not new with smf, i know how to install mods both manually and auto install.

adbrad

i think that is your problem if you have the permission checked then it allows right click not dis-allows it have you enabled in admin also

Kenny01

Quote from: adbrad on June 18, 2010, 02:37:23 PM
i think that is your problem if you have the permission checked then it allows right click not dis-allows it have you enabled in admin also
Sorry for the confussion, i did not check the permission, but the problem is not from there as another member here have the same problem and no one is capable of answering him.

Liam.

Well, did the mod install without any errors?

Kenny01

Quote from: Liam. on June 19, 2010, 05:15:41 AM
Well, did the mod install without any errors?
Yes it install without error,
I decide to uninstall it, bcos i believe there's more disadvantages to it.
I only hate people stealing my contents without linking back to my site.

gory1963

Hi I have a problem with no errors install the mod on SMF 1.1.11 , active Mod.
If it works on the home page of the forum, but does not post in the interior, nor in the portal.
The Spanish language is latin forum, but changed it to English and continue the error.
Please if anyone knows a solution, I will be very happy, thanks.

faeriedust

I'm trying to install this mod in SMF 1.1.11 but when I click apply and it does the tests, it tells me: 
Execute Modification ./Sources/ManagePermissions.php Test failed
Can someone tell me what the problem might be?

faeriedust

Seems this place has been abandoned. Guess the author had better things to do then support this. It doesn't work so I'm
uninstalling it. Too bad, it sounded like it was a good mod.

R.Bourne

Quote from: Kenny01 on June 17, 2010, 02:04:30 PM
Please i don't know what's wrong, i'm using 1.1.11 the installation goes fine without error, i set permission disable for guests and regular members, but it never work for me.

The mod only work in my register, gallery, register pages etc... but do not work in the boards which is where i need it.

Can someone tell me what's wrong.

Thanks.

EDIT:
I noticed that it only work in urls ending with "action="
example index.php?action=help

can someone help to make it work in my index?

Thanks,
Ken.


Exact same problem as yours. No error message during installation and the only one it works are those with "action"!

yakyakyak

This will work globally for Simple Portal users - make a Custom HTML block - you may add your own pop-up message.

Add:


<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus ([email protected]) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
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>



Use Advanced Permissions in the Block to pick which areas of the forum you want to apply

Remember to enable - no title, no body, no collapse

;)

Sabre™

That's a very old piece of code, and I believe it was in the original version of this mod aswell, before the author streamlined the function.
It's on page 5, but thank you anyways for your share :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


R.Bourne

yakyakyak, thanks for suggestion. As I understand, this code would disable the right click for everyone and not just guest. I was hopping to do it for guests only. But appreciate your time :)

yakyakyak

Sorry, i am not a programmer merely a hoarder of snippets <g>

forfun

Nice try, but this mod is NOT working with Firefox.  As many users have mentioned, right, click then left to the "error" message, then a "right" window will appear for you to copy anything you like.:)

Oya

Quote from: forfun on September 01, 2010, 05:25:00 AM
Nice try, but this mod is NOT working with Firefox.  As many users have mentioned, right, click then left to the "error" message, then a "right" window will appear for you to copy anything you like.:)

and since its possible in ff to override anything in a client script like this it sort of makes the entire idea pointless

tazgal

I am using 1.1.11 with Firefox.  If I am in the forum as a guest, I can right click to my hearts content.  The same goes for admin.  The members cannot.  How do I disable it for guests?

Advertisement: