Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Chas Large on May 07, 2008, 07:10:11 PM

Title: Disable Right Click (v4.0 Released!)
Post by: Chas Large on May 07, 2008, 07:10:11 PM
Disable Right Click v4.1.xx - Chas Large
Disable the right click button for selected membergroups and also protect your images directory.


Support topic (http://www.simplemachines.org/community/index.php?topic=238198.0) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1175) | My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126412)



Author
:
New code - Chas Large
Original Mod- NIBOGO

Features:
o Permission to disable Right Click Button within the SMF Permission system.
o You can use your own text to advise guests that the right click is disabled.
o You can enable or disable the whole Mod in the Mod Settings.
o Automatically installation in all the themes.
o Support for SMF 1.1.xx & 2.0.xx
o English, Spanish_latin, Spanish_es with utf8 support.
o You can Show a Message or not when a user attempts to use the right click button.
o Protect the images directory with an empty index.php.

Languages:
- English/English-utf8
- Spanish Latin/Spanish Latin-utf8
- Spanish Es/Spanish Es-utf8
- Portuguese and Brazilian. Translation by Candidosa2 (Joomlamz)

Compatibility:
- 1.1.X
- 2.0.x



Changelogs:

4.1.1 - 14 Jan 2012

o Portuguese and Brazilian translations added.

4.1.0 - 13 Jan 2012

o Recoded the 1.1.xx Install
o Recoded the Install English Text for better readability.
o Tested with 2.0.xx

4.0.1 - 08 Oct 2009

o Added support for SMF 1.1.10
o Should be working in all the SMF Versions so this is the final unless something big happend

4.0 - 18 May 2009

o Total re-estructure of all the mod
o Maybe this is the final release

3.3 - 17 May 2009

o Added arabic utf8 translation
- Changed the readme file :p

3.2 - 28 March 2009

o Fixed a bug with the xhtml validation and breaking ajax,visaul verification and javascript, PLEASE UPGRADE!
o Changed the ManagePermission for compatibility purpose
o Added translation for Spanish Es and Spanish Es-utf8

3.1 - 01 December 2008

o Re-Build all the mod . I simplify the code and the two bugs in the admin panel are fixed.

3.0.3 - 28 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs with another method thanks to Bulakbol.
o Renamed a function from disable_right_click2 to disable_right_click_mute

3.0.2 - 27 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs.
o Fixed some others little bugs in the code.

3.0.1 - 20 November 2008

o Fixed a little bug in the admin panel.

3.0 - 23 October 2008

o Added support for SMF 2.0 BETA 4.
o Now you can select "Show a Message" or "Dont Show Nothing" when the user make a right click.
o Added the Right Click permission in the SMF Permission system.
o Auto-Template , this mod work in all the themes.
o Added portuguese and spanish with utf8.
o Moved the Right Click Mod settings.
o Fixed some little bugs.
o Now the mod protect the images directory with an empty index.php.

2.0 - 17 June 2008

o Added support for SMF BETA 2.0.
o Now you can disable or enable the right click in your admin panel.
o Added a little window with help
o Now the mod is called "Disable Right Click"

1.0 - 26 April 2008

o Initial release.

1.0 - 20 April 2008

o Initial private release.





I have now taken over responsibility for this mod.

The Mod has been updated and tested. Now works correctly on 1.1.xx (Tested on 1.1.16 but should work with earlier versions). Also works correctly on 2.0.xx (Tested on 2.0.2).

Tested with Firefox, Chrome, Safari, Opera and IE (All current versions) on a Windows PC.

I have changed some of the wording for the English language installs but if anyone wants to amend or add a new language, please post your language file text strings like this:

// Disable Right Click BY: Chas Large
$txt['arrange_drc'] = 'Deshabilita el click derecho para determinados grupos de usuarios';
$txt['drc_msg'] = 'Mostrar un mensaje personalizado como error';
$txt['drc_message2'] = 'Lo Sentimos, pero el click derecho esta desactivado';
$txt['drc_title'] = 'Escribe el mensaje personalizado (Puedes dejar esto vacio)';
$txt['drc_exception'] = 'Selecciona si quieres deshabilitar el mod en determinadas acciones<br /><span class="smalltext">Separa cada accion con comas (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Click Derecho';
$txt['permissionhelp_right_click'] = 'Este permiso determina si los usuarios de este grupo de miembros pueden usar el click derecho.';


and

// Disable Right Click BY: Chas Large
$helptxt['drc_msg'] = 'Activalo para mostrar un mensaje personalizado cuando el usuario haga el click derecho';
$helptxt['drc_title'] = 'Escribe el mensaje personalizado que sera mostrado, solo funciona s&iacute; la opci&oacute;n "Mostrar un mensaje personalizado como error" esta seleccionada';


Enjoy and please let me know if you're happy with the mod or have any problems.
Title: Re: No right click
Post by: Cobra97 on May 07, 2008, 08:49:26 PM
THANK YOU, I have wanted this for a while...............Keeps guests from stealing icon's and avatars.  I had a no right click installed before, but my members couldn't right click either....made using the forum to hard.

Thanks again.....Great Job!
Title: Re: No right click
Post by: Apllicmz on May 07, 2008, 10:00:02 PM
Good Work
translate to portuguese and brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['no_click'] = 'Desculpa , mas esta desativado o botão direito para Visitantes';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['no_click'] = 'Desculpa , mas esta desativado o botão direito para Visitantes';
]]></add>
</operation>
</file>



Support Utf8

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['no_click'] = 'Desculpe, mas o bot&atilde;o direito esta desativado para Visitantes';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['no_click'] = 'Desculpe, mas o bot&atilde;o direito esta desativado para Visitantes';
]]></add>
</operation>
</file>


Title: Re: No right click
Post by: karlbenson on May 07, 2008, 10:20:16 PM
Without meaning to disappoint folk.

I've yet to come across any anti-copy/paste/scraping technique that cannot be defeated.
There are a million ways around it. (not least temporarily disable javascript).
Title: Re: No right click
Post by: Cobra97 on May 07, 2008, 10:21:43 PM
Quote from: karlbenson on May 07, 2008, 10:20:16 PM
Without meaning to disappoint folk.

I've yet to come across any anti-copy/paste/scraping technique that cannot be defeated.
There are a million ways around it. (not least temporarily disable javascript).

I know that, but this will stop the people that don't know much............There's no way to stop it all.
Title: Re: No right click
Post by: FerociousSM on May 08, 2008, 02:54:23 AM
How do I turn it ON?
Title: Re: No right click
Post by: edi67 on May 08, 2008, 06:45:03 AM
intersting
Title: Re: No right click
Post by: chrisb on May 08, 2008, 08:37:20 AM
It would be nice if in admin you can turn on or off as you please ?

How can you change what it says in the script as well?


Title: Re: No right click
Post by: karlbenson on May 08, 2008, 12:27:53 PM
Change the language string that was added to Themes/default/languages/Modifications.english.php
Title: Re: No right click
Post by: Sabre™ on May 09, 2008, 06:12:42 PM
Good mod mate. :)
Ive still got the script from Dynamic Drive installed in my forum  lol
But yours has the pop message, and this I like :)

How would I make this active for a specific member group, aswell as guests?

Thankyou in advance
Title: Re: No right click
Post by: 2pac on May 09, 2008, 06:47:16 PM
hey, how can i make it specific to one certain board?

i know there's gotta be some way to incorporate board id into the if statement, but i dont know. anybody?
Title: Re: No right click
Post by: Nibogo on May 09, 2008, 09:08:36 PM
Thanks for you comments , i gonna try to update to make a better mod :)

Quote from: FerociousSM on May 08, 2008, 02:54:23 AM
How do I turn it ON?

You only need to upload the mod to the package manager and install

after of this you have the mod ON

Quote from: Sabre™ on May 09, 2008, 06:12:42 PM
Good mod mate. :)
Ive still got the script from Dynamic Drive installed in my forum  lol
But yours has the pop message, and this I like :)

How would I make this active for a specific member group, aswell as guests?

Thankyou in advance

i am making some test to have the option of block the Right Clicks of a group

Quote from: karlbenson on May 07, 2008, 10:20:16 PM
Without meaning to disappoint folk.

I've yet to come across any anti-copy/paste/scraping technique that cannot be defeated.
There are a million ways around it. (not least temporarily disable javascript).

Is true but this method is a nice option to block a lot of Right Clicks
Title: Re: No right click
Post by: xrunner on May 09, 2008, 09:17:40 PM
I'm running Firefox under Ubuntu Linux. When you right-click as a guest, the denial message comes up but after that the regular right-click menu is still accessible after the first dialog box goes away.
Title: Re: No right click
Post by: Sabre™ on May 09, 2008, 09:22:04 PM
Quote from: NIBOGO on May 09, 2008, 09:08:36 PM
i am making some test to have the option of block the Right Clicks of a group

Thanks mate, look forward to seeing your result :)


EDIT
try this
global $context, $user_info;
$groups = array(ADD MEMBER GROUPS HERE eg.  1,2,5);

if ($context['user']['is_guest'] || array_intersect($groups, $user_info['groups']))
echo '


The membergroup number, MUST be the group number, NOT the post count group number.

Thanks to the TP community for their guidance!!
Title: Re: No right click
Post by: Bulakbol on May 10, 2008, 01:58:55 AM
I am using a single line "no right click" for guests. No message that will popup though.

<body ', $context['user']['is_guest'] ? 'oncontextmenu="return false;"' : '', '>';
Title: Re: No right click
Post by: Nibogo on May 10, 2008, 04:13:44 PM
Quote from: xrunner on May 09, 2008, 09:17:40 PM
I'm running Firefox under Ubuntu Linux. When you right-click as a guest, the denial message comes up but after that the regular right-click menu is still accessible after the first dialog box goes away.

I am in ubuntu with firefox and when i go to:

http://www.nibogo.my-place.us (http://www.nibogo.my-place.us)

and make the right click appear the message and after of this i make another right click an the pop-up window appear again :)

Also i visit:

http://www.atheistthinktank.net/thinktank/index.php

and a make a right click an appear the pop-up window after of this i make another right click and appear again  ;D
Title: Re: No right click
Post by: xrunner on May 10, 2008, 06:30:28 PM
Quote from: NIBOGO on May 10, 2008, 04:13:44 PM
I am in ubuntu with firefox and when i go to:

http://www.nibogo.my-place.us (http://www.nibogo.my-place.us)

Nope, does exactly the same thing at your site.
I'm running ubuntu hardy heron. The problem does not happen on my windows machine, only on linux using firefox v3.0b5
Title: Re: No right click
Post by: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.
Title: Re: No right click
Post by: Sabre™ on May 11, 2008, 01:26:04 AM
Tell that to the staff here at the site you cherish soo much, that gave it the thumbs up.

Some of us use it to play jokes with our users(because we have a sense of humour), and others as a door to other opportunities.

Common sense states, that if you have nothing nice to say, then shut your trap!!
Title: Re: No right click
Post by: Nibogo on May 11, 2008, 12:27:16 PM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

i dont care what do you think about my mod , please go away and dont say stupid things in this forum ;)
Title: Re: No right click
Post by: ccbtimewiz on May 11, 2008, 02:14:14 PM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

... >>;

The modification is actually quite interesting.
Title: Re: No right click
Post by: Dante_Arg on May 19, 2008, 03:15:36 PM
Can this mod work with an NOT default theme? i ve a spanish forum with theme, and the mod dosent work :(
Title: Re: No right click
Post by: Nibogo on May 27, 2008, 06:22:02 PM
Quote from: Dante_Arg on May 19, 2008, 03:15:36 PM
Can this mod work with an NOT default theme? i ve a spanish forum with theme, and the mod dosent work :(

Debe adaptarlo para los demas temas , lo cual puede hacerlo modificando el index.template de su tema y buscando:

<title>', $context['page_title'], '</title>';

Reemplazelo por:

<title>', $context['page_title'], '</title>';

        //NO right click for guest by NIBOGO
        if ($context['user']['is_guest'])           
        echo '
       <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="', $txt['no_click'], '";

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


El mod sirve para idioma español por lo cual el idioma no es problema

____________________________________________

I have a lot of work in my site , but maybe i can do the v1.2 version with some new features ;)
Title: Re: No right click
Post by: DadL on June 10, 2008, 07:31:10 PM
Installed it but why not working?

SMF 1.1.5
Title: Re: No right click
Post by: Nibogo on June 10, 2008, 09:49:04 PM
Quote from: DadL on June 10, 2008, 07:31:10 PM
Installed it but why not working?

SMF 1.1.5

i have installed in my test forum with smf 1.1.5 and works

Please wait the v1.2 version with an installation bug fixed ;)
Title: Re: Disable Right Click
Post by: Nibogo on June 17, 2008, 09:41:25 PM
NEW VERSION OF THIS MOD!!
Disable Right Click v2.0 : NIBOGO
What is new??

o Added support for SMF BETA 2.0.
o Now you can disable or enable the right click in your admin panel.
o Added a little window with help
o Now the mod is called "Disable Right Click"
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1175)
Title: Re: Disable Right Click
Post by: Sudhakar Arjunan on June 18, 2008, 05:33:09 AM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

Hope this is really so bad in a Forum.

And i have installed the latest version and even activated it.
But its not working in all browsers.

Any Idea.
Title: Re: Disable Right Click
Post by: Nibogo on June 18, 2008, 04:06:58 PM
Quote from: asudhakar on June 18, 2008, 05:33:09 AM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

Hope this is really so bad in a Forum.

And i have installed the latest version and even activated it.
But its not working in all browsers.

Any Idea.

You have to install the mod in your own themes ;)

PD: i am testing how i can put this mod in all the themes
Title: Re: Disable Right Click
Post by: lorogarcia on June 21, 2008, 03:40:01 AM
Hello

In Firefox 3 click in buttons but no go...

In Ie go perfet... But do not think anyone use that browser
Title: Re: Disable Right Click
Post by: Nibogo on June 21, 2008, 08:13:38 AM
Quote from: lorogarcia on June 21, 2008, 03:40:01 AM
Hello

In Firefox 3 click in buttons but no go...

In Ie go perfet... But do not think anyone use that browser

what is the url of your forum???

i test this mod in firefox 3 and works great
Title: Re: Disable Right Click
Post by: lorogarcia on June 21, 2008, 07:12:47 PM
Sorry, already operates^^
Translated file and he cleaned the cache, I do not know if it was so
Title: Re: Disable Right Click
Post by: KD4FBI on June 21, 2008, 10:24:54 PM
Maybe I missed it, but I couldn't find where to turn it on and off in my admin panel.
Where do I look for it?
When not logged in, I can still right click.

Thanks,
Mickey
Title: Re: Disable Right Click
Post by: Nibogo on June 22, 2008, 07:43:49 PM
Quote from: KD4FBI on June 21, 2008, 10:24:54 PM
Maybe I missed it, but I couldn't find where to turn it on and off in my admin panel.
Where do I look for it?
When not logged in, I can still right click.

Thanks,
Mickey

Go to:

http://www.yourforum.com/index.php?action=featuresettings

;)
Title: Re: Disable Right Click
Post by: msvdm on June 29, 2008, 06:44:54 PM
this mod dont work in firefox ;(
Title: Re: Disable Right Click
Post by: Sabre™ on June 29, 2008, 11:19:58 PM
hmmm.
Its working fine in my Firefox browser
Title: Re: Disable Right Click
Post by: msvdm on June 30, 2008, 06:02:47 AM
not for me
Title: Re: Disable Right Click
Post by: dejiman on June 30, 2008, 12:50:24 PM
After installing this mode I got this message on my entire site.

Parse error: syntax error, unexpected T_STRING in .../Themes/default/languages/Modifications.english-utf8.php on line 106
97:
98: // Settings descriptions
99: $txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET[\'board\']</tt>. There can be more than one URL for each board.';
100: $txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pairs, used for generating pretty replacement URLs.';
101: $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';
102: $txt['pretty_filters'] = 'A serialized array of filter data.';
103: $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don\'t manually edit this, edit the <tt>pretty_filters</tt> setting instead.';
104: $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as <tt>$boardurl</tt>.';
105:
106: $txt['hide_signature'] = 'Sorry , but the guest can't see signatures , please';
107: $txt['hide_signature_or'] = 'or';
108: $txt['arrange_hsfg'] = 'Disallow guests from viewing signatures;
109:
110: ?>



PLease I need immediate solution now. and now.
Here is my website www.dejimanaire.com (http://www.dejimanaire.com)
Title: Re: Disable Right Click
Post by: Nibogo on June 30, 2008, 06:58:32 PM
Quote from: dejiman on June 30, 2008, 12:50:24 PM
After installing this mode I got this message on my entire site.

Parse error: syntax error, unexpected T_STRING in .../Themes/default/languages/Modifications.english-utf8.php on line 106
97:
98: //   Settings descriptions
99: $txt['pretty_board_lookup'] = 'A serialized array of <tt>URL => ID_BOARD</tt> pairs, used for processing <tt>$_GET['board']</tt>. There can be more than one URL for each board.';
100: $txt['pretty_board_urls'] = 'A serialized array of <tt>ID_BOARD => URL</tt> pairs, used for generating pretty replacement URLs.';
101: $txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';
102: $txt['pretty_filters'] = 'A serialized array of filter data.';
103: $txt['pretty_filter_callbacks'] = 'A serialized array of callback function names, sorted by priority. Don't manually edit this, edit the <tt>pretty_filters</tt> setting instead.';
104: $txt['pretty_root_url'] = 'The base URL used by the board and topic filters, which by default is the same as <tt>$boardurl</tt>.';
105:
106: $txt['hide_signature'] = 'Sorry , but the guest can't see signatures , please';
107: $txt['hide_signature_or'] = 'or';
108: $txt['arrange_hsfg'] = 'Disallow guests from viewing signatures;
109:
110: ?>



PLease I need immediate solution now. and now.
Here is my website www.dejimanaire.com (http://www.dejimanaire.com)

Edit your Modifications.english-utf8.php.

Search:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures;

Replace with:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures';
Title: Re: Disable Right Click
Post by: dejiman on June 30, 2008, 07:59:11 PM
PLease The same is still the issue.   PLease check my website now to confirme  www.dejimanaire.com (http://www.dejimanaire.com)


QuoteEdit your Modifications.english-utf8.php.

Search:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures;

Replace with:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures';

Thanks In advance

Regards
Title: Re: Disable Right Click
Post by: dejiman on June 30, 2008, 08:15:29 PM
PLease I think I would love to UNINSTALL the MOD totally. Please How can I do that manually because there is no way I could do that . My INDEX is in error.


Thanks as you reply soonest.
Title: Re: Disable Right Click
Post by: dejiman on June 30, 2008, 09:05:48 PM
Here is what I did.

in my MODIFICATION.ENGLISH.UTF8.PHP

I search for

Quote from: dejiman on June 30, 2008, 07:59:11 PM
PLease The same is still the issue.   PLease check my website now to confirme  www.dejimanaire.com (http://www.dejimanaire.com)


QuoteEdit your Modifications.english-utf8.php.

Search:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures;

Replace with:

$txt['arrange_hsfg'] = 'Disallow guests from viewing signatures';

Thanks In advance

Regards


and I deleted it totally.
It was on page 106.
Please make regular backups before installing any MOD.
FOR YOUR SAFETY.

Thanks.
Title: Re: Disable Right Click
Post by: Nibogo on June 30, 2008, 09:31:28 PM
dejiman in your packages directory you have backups of your forum before the installation of any mod

Title: Re: Disable Right Click
Post by: dejiman on July 05, 2008, 09:08:39 AM
Thanks I have made every thing back to other. I must say you have really tried in creating a mod. More powers to your elbow.

Regards.

www.dejimanaire.com (http://www.dejimanaire.com)
Title: Re: Disable Right Click
Post by: renlok on July 21, 2008, 10:12:06 PM
ARGH why do people think disabling right click a good idea it just drives your users away as it so annoying. And to get around it just can just disable javascript.
Title: Re: Disable Right Click
Post by: qtime on July 30, 2008, 11:40:27 AM
Quote from: Sabre™ on May 09, 2008, 09:22:04 PM
Quote from: NIBOGO on May 09, 2008, 09:08:36 PM
i am making some test to have the option of block the Right Clicks of a group

Thanks mate, look forward to seeing your result :)


EDIT
try this
global $context, $user_info;
$groups = array(ADD MEMBER GROUPS HERE eg.  1,2,5);

if ($context['user']['is_guest'] || array_intersect($groups, $user_info['groups']))
echo '


The membergroup number, MUST be the group number, NOT the post count group number.

Thanks to the TP community for their guidance!!
Quote from: Sabre™ on May 09, 2008, 09:22:04 PM
Quote from: NIBOGO on May 09, 2008, 09:08:36 PM
i am making some test to have the option of block the Right Clicks of a group

Thanks mate, look forward to seeing your result :)


EDIT
try this
global $context, $user_info;
$groups = array(ADD MEMBER GROUPS HERE eg.  1,2,5);

if ($context['user']['is_guest'] || array_intersect($groups, $user_info['groups']))
echo '


The membergroup number, MUST be the group number, NOT the post count group number.

Thanks to the TP community for their guidance!!
great modification of this modification.
I want to disable the right mouse button for guests and newbies, but not for donators. Now the donators who are a newbie cannot use the right mouse button, how to setup a post count group?
Title: Re: Disable Right Click
Post by: ccbtimewiz on July 30, 2008, 01:36:50 PM
Post count groups can also be identified in the same method. Just define their ID #.
Title: Re: Disable Right Click
Post by: qtime on July 30, 2008, 04:00:35 PM
Quote from: ccbtimewiz on July 30, 2008, 01:36:50 PM
Post count groups can also be identified in the same method. Just define their ID #.
the problem is, an added group like a donator, can also be a newbie, and the newbie is overruling...
Title: Re: Disable Right Click
Post by: ccbtimewiz on July 30, 2008, 04:06:08 PM
The $user_info variable checks a user of all groups, be it prime or secondary.

Simply define the "Donator" group into the array and that should override the "newbie" check.
Title: Re: Disable Right Click
Post by: Nibogo on July 30, 2008, 06:41:04 PM
Please wait the v2.1 with a simple bug fix and the groups permission for make right click
Title: Re: Disable Right Click
Post by: qtime on July 30, 2008, 10:44:42 PM
Quote from: NIBOGO on July 30, 2008, 06:41:04 PM
Please wait the v2.1 with a simple bug fix and the groups permission for make right click
that would be great!!
Title: Re: Disable Right Click
Post by: tom155 on August 14, 2008, 07:31:55 PM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

Why are you even on this thread is you think this mod is stupid???


Great mod NIBOGO thumbs you to you!!!!!!!!!!!!!!!!!!!!!
Title: Re: Disable Right Click
Post by: Sabre™ on August 14, 2008, 10:35:06 PM
Quote from: renlok on July 21, 2008, 10:12:06 PM
ARGH why do people think disabling right click a good idea it just drives your users away as it so annoying. And to get around it just can just disable javascript.

Some of us use this for other methods.
I myself use it as a trap for people that dont read properly.
Meaning, I have it where if a user doesnt want their art theyve created to be copied, then they state so above the image. Now if another member tries to copy it, Ive set up about 200 alert popups, so they will be there clicking their azz off until it finishes lol  And the last alert has a selection..  continue, and end..  if you just keep clicking, it starts all over again.
You have to shut down your browser to stop this.

I also have sections where people speak of things private/particular to their real life events. Hardly something you'd want others to just copy.
So Ive disabled anyone to be able to highlight any text in that board/thread.
So therefore, the quick keys are useless.
Now if someone goes around these measures, just to get these peoples private stuff in which theyve ASKED you not to duplicate it, then in my opinion...  they are the azzholes online.

This stuff is just a deterrent really, just to remind people, that some things shared are there for those within that community(their friends), not the whole world.
And before you ask, I have bot texts installed so it isnt made public anyway.

Every mod can be used to your own specific need. If you dont like it, then noone will force you to use it. Atleast someone out there is making them for those that want it :)
Title: Re: Disable Right Click
Post by: ccbtimewiz on August 14, 2008, 10:38:39 PM
I agree with Sabre. As the saying goes, "to each man his own".

Willst the modification deems annoying to you, it can be proved useful in other situations by other people. For example; private books, readings, and other things you don't want average joe internet users to steal.

The mod itself isn't powerful enough to stop experienced computer users, but there are a large percentage of users in this world who are noobs with computers and wouldn't know how to get around the block.
Title: Re: Disable Right Click
Post by: qtime on August 15, 2008, 03:50:35 AM
I am waiting for the update. I like to use it to annoy normal members and give donators the right mouse button back...
Title: Re: Disable Right Click
Post by: renlok on August 30, 2008, 11:47:11 AM
@Sabre™
far enough if you put the alert to only show if you right click an image you dont want people to steal.
But from what i can see this just shows the popup all the time when your on the site, which is very annoying to most internet users especially on a forum, where you will probably wont open to open multiple threads and to do that i use right click.
Title: Re: Disable Right Click
Post by: Nibogo on August 30, 2008, 03:52:45 PM
Quote from: qtime on August 15, 2008, 03:50:35 AM
I am waiting for the update. I like to use it to annoy normal members and give donators the right mouse button back...

:P :P I am updating the mod , i am trying some new things for the v3.0 , be patient
Title: Re: Disable Right Click
Post by: Sabre™ on August 31, 2008, 03:48:13 AM
Quote from: renlok on August 30, 2008, 11:47:11 AM
@Sabre™
far enough if you put the alert to only show if you right click an image you dont want people to steal.
But from what i can see this just shows the popup all the time when your on the site, which is very annoying to most internet users especially on a forum, where you will probably wont open to open multiple threads and to do that i use right click.

Yep.
I also use multiple tabs/windows etc...  as stated, it is a deterrent and not an absolute!
There are multiple ways to avoid the script, but I wont mention them, as it reveals the "workarounds" possibly to those the script is there for. (No rocket science anyway ;) )
The final script is available via the owners discretion, so no matter how this is used, it is aimed at "their" most active pests, and usually not their loyal members.
NIBOGO made this very flexible, so we can adjust it to our personal preference(as all mods), and with tradition, all questions/help will be assisted if possible. :)
I understand what youre saying, and partially agree, but we are not here to monitor or judge how people use these mods, just to be thankful they will be there if we should ever need them. As the download count displays... there are a few people that do ;)

I probably enjoyed it so much, as it opened more doors to my ever developing knowledge.

Quote from: NIBOGO on August 30, 2008, 03:52:45 PM
I am updating the mod , i am trying some new things for the v3.0....

Brilliant.
Cant wait to see whats next.
Title: Re: Disable Right Click
Post by: Mystiquo on September 10, 2008, 01:39:54 PM
what's this error??????
how i correct this???

8: Undefined index: arrange_nrcg
Themes/default/Errors.template.php (main_above sub template - eval?)
Riga: 101



8: Undefined index: arrange_nrcg
Themes/default/Admin.template.php (main_above sub template - eval?)
Riga: 101
Title: Re: Disable Right Click
Post by: Nibogo on September 20, 2008, 07:40:37 PM
I am updating the mod with this new features:

- Support Babylon,Classic and DilmerMC
- Support to disable the right click for guest and the groups of you select
- Now you can select to show or unshow a message
- If the Show Message option is selected you can put your message
- Enable the right click in the actions of you want
- Easy theme addaptation
- Spanish Support
- A lot of minor changes
- Redirection after the installation
- New Admin Section for the Right Click Mod

If you have any request for this mod please put that idea in this topic  :)
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 01:54:32 PM
Hello,
  Thanks for the powerful MOD , but i have problem
i just installed it correctly

but still able to right click to copy !

any help please ?

Thanks
Title: Re: Disable Right Click
Post by: Nibogo on September 23, 2008, 07:10:52 PM
Quote from: iraqcyber on September 23, 2008, 01:54:32 PM
Hello,
  Thanks for the powerful MOD , but i have problem
i just installed it correctly

but still able to right click to copy !

any help please ?

Thanks

Url of your forum and what theme do you use?
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 07:13:56 PM
www.iraq-greenparty.com

hope you may help thanks
Title: Re: Disable Right Click
Post by: Nibogo on September 23, 2008, 07:28:56 PM
Quote from: iraqcyber on September 23, 2008, 07:13:56 PM
www.iraq-greenparty.com

hope you may help thanks

You need to modify your theme
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 07:31:39 PM
could you please give me any URL to follow so i can modify it correctly ?

and any chance to prevent "copy" and "right click" for even registered members ?

Thanks
Title: Re: Disable Right Click
Post by: Nibogo on September 23, 2008, 07:38:48 PM
Quote from: iraqcyber on September 23, 2008, 07:31:39 PM
could you please give me any URL to follow so i can modify it correctly ?

and any chance to prevent "copy" and "right click" for even registered members ?

Thanks

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1175;attach=58798;smf_version=1.1.6

I am adding the feature for Disable the Right Click for other member groups
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 07:40:23 PM
Fantastic .. looking forward to find it done

thanks a lot i will work on what you kindly helped
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 08:15:24 PM
Quote from: iraqcyber on September 23, 2008, 07:40:23 PM
Fantastic .. looking forward to find it done

thanks a lot i will work on what you kindly helped

Hello again,
i did it all and still don;t fine it enable,

your kindly advice

Thanks
Title: Re: Disable Right Click
Post by: Nibogo on September 23, 2008, 08:16:10 PM
Quote from: iraqcyber on September 23, 2008, 08:15:24 PM
Quote from: iraqcyber on September 23, 2008, 07:40:23 PM
Fantastic .. looking forward to find it done

thanks a lot i will work on what you kindly helped


Hello again,
i did it all and still don;t fine it enable,

your kindly advice

Thanks

You need to enable this mod from the Admin Panel
Title: Re: Disable Right Click
Post by: iraqcyber on September 23, 2008, 08:17:08 PM
How please ?
Title: Re: Disable Right Click
Post by: OlgaH on September 24, 2008, 11:03:44 AM
Quote from: iraqcyber on September 23, 2008, 01:54:32 PM
Hello,
  Thanks for the powerful MOD , but i have problem
i just installed it correctly

but still able to right click to copy !

any help please ?

Thanks

I have same problem.

It says that mod is installed successfully  but still able to right click to copy when I log out    :(

Olga
Title: Re: Disable Right Click
Post by: jmarioneauxs on September 24, 2008, 11:45:20 AM
I think it is a great mod yall.
Title: Re: Disable Right Click
Post by: Nibogo on September 24, 2008, 06:07:25 PM
Quote from: iraqcyber on September 23, 2008, 08:17:08 PM
How please ?

Admin --> Options and Settings --> Disable Right Click
Title: Re: Disable Right Click
Post by: OlgaH on September 24, 2008, 08:33:56 PM
Thank you so much for the mod and advice  :)

It's working on my website!
Title: Re: Disable Right Click
Post by: Nibogo on September 24, 2008, 08:37:35 PM
Quote from: legal on September 24, 2008, 08:33:56 PM
Thank you so much for the mod and advice  :)

It's working on my website!

Ok , thanks for use my mod
Title: Re: Disable Right Click
Post by: lluks on October 02, 2008, 01:09:54 AM
any chance for an update for 2.0 b4?
:D
Title: Re: Disable Right Click
Post by: Nibogo on October 02, 2008, 02:34:00 PM
Quote from: lluks on October 02, 2008, 01:09:54 AM
any chance for an update for 2.0 b4?
:D

Compatible With:1.1.4, 1.1.5, 1.1.6, 2.0 Beta 3.1 Public, 2.0 Beta 4
Title: Re: Disable Right Click
Post by: Nibogo on October 07, 2008, 07:54:11 PM
Disable Right Click v2.1
o Added support for SMF 1.1.6 & SMF 2.0 BETA 4.
o Fixed a copyright error.
o Fixed an error with the code.
o Fixed an error with the Spanish translation.
o Some others minor changes.
Title: Re: Disable Right Click
Post by: Costa on October 17, 2008, 06:13:08 PM
Here I go again...

Translation to Brazilian
Code (Modifications.brazilian.php) Select

$txt['no_click'] = 'Desculpe , mas o clique direito está desabilitado para visitantes';
$txt['arrange_nrcg'] = 'Desabilitar o clique direito para visitantes';


Code (Help.brazilian.php) Select

$helptxt['arrange_nrcg'] = 'Com isso, o clique direito do mouse será desabilitado para visitantes';
Title: Re: Disable Right Click
Post by: Pwn Kyuubi on October 17, 2008, 08:00:37 PM
I got a problem tryin to install this in smf 2.0 beta4, and i cant access to my cp neither my url T_T

what do i have to do?

look---> (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg383.imageshack.us%2Fimg383%2F5217%2Fpicturepcwf3.th.jpg&hash=f2baee5c076d95d8766ba4b36a07426ded420080) (http://img383.imageshack.us/my.php?image=picturepcwf3.jpg)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg383.imageshack.us%2Fimages%2Fthpix.gif&hash=8e442f7ae88f84dbbc14ee78d8392f28161f4480) (http://g.imageshack.us/thpix.php)

these three links dont work :S

And I am a novice in this T_T
Title: Re: Disable Right Click
Post by: Nibogo on October 17, 2008, 09:10:14 PM
What is your theme?
Title: Re: Disable Right Click
Post by: Newsted on October 23, 2008, 03:33:27 PM
Installed,actived,didn't work.

www.modelevi.com
I'm using outline for tinyportal,some help would be nice.
Title: Re: Disable Right Click
Post by: Nibogo on October 23, 2008, 05:50:08 PM
Quote from: Newsted on October 23, 2008, 03:33:27 PM
Installed,actived,didn't work.

www.modelevi.com
I'm using outline for tinyportal,some help would be nice.

You have to make the modifications in your theme

or wait the v3 release  ;)
Title: Re: Disable Right Click
Post by: Nibogo on October 23, 2008, 07:43:31 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg293.imageshack.us%2Fimg293%2F6297%2Fdrc3ks3.gif&hash=201a0d1e520e9937efeac3a5eefbf0930ffc68d3)

Added screenshots on the mod page
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Newsted on October 24, 2008, 07:45:00 AM
Thanks for v3 but i cant enter to "right click mode" settings, it automaticly goes to basic features.
Title: Translation to Brazilian v3.0
Post by: Costa on October 24, 2008, 08:17:26 AM
Modifications.brazilian.php


// Disable Right Click v3 BY: NIBOGO
$txt['drc_mod'] = 'Right Click Mod';
$txt['arrange_drc'] = 'Desabilite o botão direito do mouse para alguns usuários';
$txt['drc_option'] = 'Selecione o método para desabilitar o botão direito do mouse';
$txt['drc_message'] = 'Mostrar uma mensagem';
$txt['drc_message2'] = 'Desculpe, mas você não pode usar o botão direito do mouse';
$txt['drc_mute'] = 'Não mostrar nada';
$txt['drc_title'] = 'Escreva a mensagem que será mostrada';
$txt['permissionname_right_click'] = 'Clique direito do mouse';
$txt['permissionhelp_right_click'] = 'Esta permissão permitirá aos usuários usarem o botão direito do mouse em todo o fórum.';


Help.brazilian.php


// Disable Right Click v3 BY: NIBOGO
$helptxt['arrange_drc'] = 'Com isto, o botão direito do mouse será desabilitado para alguns grupos de membros';
$helptxt['drc_option'] = 'Selecione como o botão direito do mouse será desabilitado';
$helptxt['drc_title'] = 'Escreva a mensagem que será mostrada, apenas se a opção "Mostrar uma mensagem" estiver selecionada';


Modifications.brazilian-utf8.php


// Disable Right Click v3 BY: NIBOGO
$txt['drc_mod'] = 'Right Click Mod';
$txt['arrange_drc'] = 'Desabilite o bott&atilde;o direito do mouse para alguns usu&aacute;rios';
$txt['drc_option'] = 'Selecione o m&eacute;todo para desabilitar o bott&atilde;o direito do mouse';
$txt['drc_message'] = 'Mostrar uma mensagem';
$txt['drc_message2'] = 'Desculpe, mas voc&ecirc; nt&atilde;o pode usar o bott&atilde;o direito do mouse';
$txt['drc_mute'] = 'Nt&atilde;o mostrar nada';
$txt['drc_title'] = 'Escreva a mensagem que ser&aacute; mostrada';
$txt['permissionname_right_click'] = 'Clique direito do mouse';
$txt['permissionhelp_right_click'] = 'Esta permisst&atilde;o permitir&aacute; aos usu&aacute;rios usarem o bott&atilde;o direito do mouse em todo o fórum.';


Help.brazilian-utf8.php


// Disable Right Click v3 BY: NIBOGO
$helptxt['arrange_drc'] = 'Com isto, o bott&atilde;o direito do mouse ser&aacute; desabilitado para alguns grupos de membros';
$helptxt['drc_option'] = 'Selecione como o bott&atilde;o direito do mouse ser&aacute; desabilitado';
$helptxt['drc_title'] = 'Escreva a mensagem que ser&aacute; mostrada, apenas se a opçt&atilde;o "Mostrar uma mensagem" estiver selecionada';


Farewell
~[Costa]
Title: Re: Disable Right Click (v3.0 Released!)
Post by: edi67 on October 24, 2008, 08:25:38 AM
excellent work i like this mod ;)

PS.  i have many of these errors NOBOGO:
Quote
8: Undefined index: drc_option
File: /membri/ediboard/index.php
Riga: 214
   
8: Undefined index: drc_option
File: /membri/ediboard/index.php
Riga: 211

and that are lines:
==>211:  if (($modSettings['drc_option'] == 0) && (!allowedTo('right_click')) && (!empty($modSettings['arrange_drc']))) {
212: disable_right_click();
213: }   
==>214: if (($modSettings['drc_option'] == 1) && (!allowedTo('right_click')) && (!empty($modSettings['arrange_drc']))) {


Some solution ??   

   

Title: Re: Disable Right Click (v3.0 Released!)
Post by: Nibogo on October 24, 2008, 12:11:56 PM
Thanks [Costa] ;)

@edi67:

I will check that error , thanks for report ;)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Hoodie on October 26, 2008, 12:05:38 AM
Your code:

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="replace"><![CDATA[ 'search_posts' => false,
'karma_edit' => false,]]></search>
<add><![CDATA['search_posts' => false,
'karma_edit' => false,
'right_click' => false,
]]></add>
</operation>
</file>


I get an installation error because I have other mods..  Instead of a replace, why not just do an add?

My suggestion:

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA[ 'search_posts' => false,
'karma_edit' => false,]]></search>
<add><![CDATA[
'right_click' => false,]]></add>
</operation>
</file>
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Hoodie on October 26, 2008, 12:08:10 AM
Also, I'm getting the same drc_option errors..  It shows for both guests and users..
Title: Re: Disable Right Click (v3.0 Released!)
Post by: edi67 on October 31, 2008, 03:35:26 AM
Quote from: NIBOGO on October 24, 2008, 12:11:56 PM
Thanks [Costa] ;)

@edi67:

I will check that error , thanks for report ;)

some solutions found bro?
Title: Re: Disable Right Click (v3.0 Released!)
Post by: edi67 on November 03, 2008, 03:21:40 AM
also NIBOGO there is one problem that i explained here:

http://www.simplemachines.org/community/index.php?topic=270553.0

Guest in my forum have big fonts viewing but after login fonts are normal, this depend from the Script:


       <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="Spiacente non sei abilitato ad usare il tasto Destro del mouse ";

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

// -->


Added BEFORE the Html code is possible correct this too ?
Title: Re: Disable Right Click (v3.0 Released!)
Post by: edi67 on November 03, 2008, 03:26:32 AM
Quote from: JohnyB on May 10, 2008, 01:58:55 AM
I am using a single line "no right click" for guests. No message that will popup though.

<body ', $context['user']['is_guest'] ? 'oncontextmenu="return false;"' : '', '>';


is possible show one message with this your nice code?
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Nibogo on November 03, 2008, 06:35:23 PM
@edi67:

I have a lot of work with other tings plus a lot of things in my real life , I can check the v3.0 and fix some bugs but I dont have a lot of free time
Title: Re: Disable Right Click (v3.0 Released!)
Post by: edi67 on November 04, 2008, 08:20:57 AM
Quote from: NIBOGO on November 03, 2008, 06:35:23 PM
@edi67:

I have a lot of work with other tings plus a lot of things in my real life , I can check the v3.0 and fix some bugs but I dont have a lot of free time

dont worry friend, real life is much more important i will wait bro :)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Sabre™ on November 04, 2008, 03:30:02 PM
Wow, I havent looked in here for awhile, but since Im sloowly fixing my forum, I thought I would see how your development of this mod is coming.
GREAT job NIBOGO (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)
I personally like the option to turn it off n on. Will work great for my own little tweaks.

Keep up the good work mate :)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Simone's Expressions on November 10, 2008, 01:49:13 AM
A fix for it to work with 1.1.7?


Fatal error: Call to undefined function: modifyrightclicksettings
/forum/Sources/ModSettings.php on line 158
Title: Re: Disable Right Click (v3.0 Released!)
Post by: jjbotella on November 12, 2008, 02:38:20 PM
He instalado el mod. La instalación perfecta y con éxito.

Pero cuando entro en Administración -> Características -> Click derecho
me dá error: HTTP 500 Error interno del servidor

¿qué puede ser?

Gracias!

P.D.: Uso SMF 1.1.7
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Kencelot on November 12, 2008, 02:52:08 PM
Quote from: Evoke on November 10, 2008, 01:49:13 AM
A fix for it to work with 1.1.7?


Fatal error: Call to undefined function: modifyrightclicksettings
/forum/Sources/ModSettings.php on line 158

Same thing for me. :(
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Pho3niX90 on November 15, 2008, 03:33:47 PM
thhis is what i get


Fatal error: Call to undefined function ModifyRightClickSettings() in /home/sybarspp/public_html/web/forums/Sources/ModSettings.php on line 211
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Nibogo on November 15, 2008, 05:00:02 PM
Quote from: Pho3niX90 on November 15, 2008, 03:33:47 PM
thhis is what i get


Fatal error: Call to undefined function ModifyRightClickSettings() in /home/sybarspp/public_html/web/forums/Sources/ModSettings.php on line 211


Try the manual edit of the ModSettings.php file with the parser
Title: Re: Disable Right Click (v3.0 Released!)
Post by: crustybum on November 20, 2008, 09:03:28 AM
Just installed..got this   Fatal error: Call to undefined function: modifyrightclicksettings() in /home/content/b/r/u/brummies/html/forum/Sources/ModSettings.php on line 164

::)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Boby_ on November 20, 2008, 09:36:02 AM
Quote from: crustybum on November 20, 2008, 09:03:28 AM
Just installed..got this   Fatal error: Call to undefined function: modifyrightclicksettings() in /home/content/b/r/u/brummies/html/forum/Sources/ModSettings.php on line 164

::)

This error is displayed because the funcion in ModSettings.php is wronly named ModifyRightClickModSettings. Just edin ModSettings.php and change ModifyRightClickModSettings to ModifyRightClickSettings.

Meanwhile I have another problem - the mod is installed, the menu is there but when I try to activate it and push Save button, it refuses to remember the values.
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Nibogo on November 20, 2008, 07:35:07 PM
3.0.1 - 20 November 2008

o Fixed a little bug in the admin panel.

Excuse me but I dont have a lot of time , but now I am in my vacations so I can fix the bugs , thanks por report
Title: Re: Disable Right Click (v3.0 Released!)
Post by: lluks on November 21, 2008, 04:04:56 AM
Quote from: Boby_ on November 20, 2008, 09:36:02 AM

Meanwhile I have another problem - the mod is installed, the menu is there but when I try to activate it and push Save button, it refuses to remember the values.

I get the same problem...
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Lyonsy on November 22, 2008, 03:49:36 PM
Hello
I am Getting this error in the forum error log it mounts up every time i enter the board    


  Today at 09:45:43 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session cff2f51c412e770746b19c41cd71ea96
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: drc_option
File: C:\web\webfiles\smf\index.php
Line: 358
   
Apply Filter: Only show the error messages of this member david    Today at 09:45:43 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session cff2f51c412e770746b19c41cd71ea96
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=viewErrorLog;desc
Apply Filter: Only show the errors with the same message
8: Undefined index: drc_option
File: C:\web\webfiles\smf\index.php
Line: 355
Title: Re: Disable Right Click (v3.0 Released!)
Post by: bullbreedluverz on November 22, 2008, 04:09:48 PM
Quote from: lluks on November 21, 2008, 04:04:56 AM
Quote from: Boby_ on November 20, 2008, 09:36:02 AM

Meanwhile I have another problem - the mod is installed, the menu is there but when I try to activate it and push Save button, it refuses to remember the values.

I get the same problem...

Ditto same issue wont save settings for me on Default theme on 1.1.7
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Lyonsy on November 26, 2008, 03:46:35 AM
 :( Hello NIBOGO.
Sorry but did not know were to post this problem i have with Disable_Right_Click_Mod.
I have attached my errors. Please can you help.
I am running  SMF 1.1.7
with these packages installed.

    Mod Name                                          Version     
1.    Attachments Download Permission    1.0   
2.    Colorize Boards                                  3.0   
3.    Custom Copyright                                1.1   
4.    Disable Right Click v3                                 3.0   
5.    Downloads System                              1.0.4   
6.    Read Topic Permission Mod                  1.0.4   
7.    SMF Media Gallery                                1.5 RC 3.1   
8.    View Only Boards                                1.2   
Title: Re: Disable Right Click (v3.0 Released!)
Post by: okae on November 26, 2008, 07:07:31 AM
Quote from: Lyonsy on November 22, 2008, 03:49:36 PM
Hello
I am Getting this error in the forum error log it mounts up every time i enter the board   


  Today at 09:45:43 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session cff2f51c412e770746b19c41cd71ea96
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=viewErrorLog;desc (http://david.hobby-site.com/index.php?action=viewErrorLog;desc)
Apply Filter: Only show the errors with the same message
8: Undefined index: drc_option
File: C:webwebfilessmfindex.php
Line: 358
   
Apply Filter: Only show the error messages of this member david    Today at 09:45:43 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session cff2f51c412e770746b19c41cd71ea96
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=viewErrorLog;desc (http://david.hobby-site.com/index.php?action=viewErrorLog;desc)
Apply Filter: Only show the errors with the same message
8: Undefined index: drc_option
File: C:webwebfilessmfindex.php
Line: 355

same error on my forum

Lyonsy (http://www.simplemachines.org/community/index.php?action=profile;u=165553) the same as you too :)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Lyonsy on November 26, 2008, 07:22:08 AM
Hello,

So it looks like not just me with the Bug then.
I cannot get it to Save ether. it just refuses to remember the value that i tick.
And my error log just keeps getting bigger & Bigger.
So now i have uninstalled it for now.

::)
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Nibogo on November 27, 2008, 05:52:34 PM
3.0.2 - 27 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs
o Fixed a little extra bugs with the code

Please test the new version to see if everything is right and if the mod is fixed
Title: Re: Disable Right Click (v3.0 Released!)
Post by: Boby_ on November 28, 2008, 02:54:41 AM
Quote from: NIBOGO on November 27, 2008, 05:52:34 PM
3.0.2 - 27 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs
o Fixed a little extra bugs with the code

Please test the new version to see if everything is right and if the mod is fixed

I tried it again - the same happens. The menu appears in Admin Panel but the settings can't be saved.
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: okae on November 28, 2008, 06:47:15 AM
Quote from: Boby_ on November 28, 2008, 02:54:41 AM
Quote from: NIBOGO on November 27, 2008, 05:52:34 PM
3.0.2 - 27 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs
o Fixed a little extra bugs with the code

Please test the new version to see if everything is right and if the mod is fixed

I tried it again - the same happens. The menu appears in Admin Panel but the settings can't be saved.

same for me, and drc_option error appear yet
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Catanonia on November 28, 2008, 07:09:07 AM
DRC is still there and the options are not saved.

Never been able to get the actual right click disabled ever.


Is the actual download to the mod the correct version ?

Can you post a direct link to 3.02 in this thread ?
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on November 28, 2008, 03:08:54 PM
I can save the options in the admin panel so is not a bug of this mod

I will check that error :s
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Catanonia on November 28, 2008, 04:38:06 PM
Quote from: NIBOGO on November 28, 2008, 03:08:54 PM
I can save the options in the admin panel so is not a bug of this mod

I will check that error :s

can you post a direct link to the mod. It might be that the version we are all testing is wrong on the download page.

Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on November 28, 2008, 05:49:13 PM
http://custom.simplemachines.org/mods/index.php?action=download;mod=1175;id=77645
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: villasg on November 29, 2008, 02:51:14 AM
I try this mod in my 1.1.7 BUT no have any effects ....
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on November 29, 2008, 07:46:58 AM
Quote from: villasg on November 29, 2008, 02:51:14 AM
I try this mod in my 1.1.7 BUT no have any effects ....

Tested with SMF 1.1.7 with the package manager and works great
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: villasg on November 29, 2008, 01:32:21 PM
Quote from: NIBOGO on November 29, 2008, 07:46:58 AM
Quote from: villasg on November 29, 2008, 02:51:14 AM
I try this mod in my 1.1.7 BUT no have any effects ....

Tested with SMF 1.1.7 with the package manager and works great

My friend the problem is DONT KEEP THE CHANGES IN

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg341.imageshack.us%2Fimg341%2F8865%2Fsnap2uy0.jpg&hash=e52b134508a6943efab3ee0aff901753fded09e2) (http://imageshack.us)

I check the box , put the entries in the "write message"  and i press save .
When go back in this page DONT have keep anything of that
Please tell what is the problem ?

Error log

http://www.xxxx/xxxx/index.php?action=featuresettings2;save;sa=right_click 
8: Undefined index: drc_option
Αρχείο: /xxxx/xxxx/xxx/xxxx/index.php
Γραμμή: 385
385 =    if ($modSettings['drc_option'] == '1' && !allowedTo('right_click') && !empty($modSettings['arrange_drc']))
 
http://www.xxxx/xxxx/index.php?action=featuresettings2;save;sa=right_click
8: Undefined index: drc_option
Αρχείο: /xxxx/xxxx/xxx/xxxx/index.php
Γραμμή: 382

382=    if ($modSettings['drc_option'] == '0' && !allowedTo('right_click') && !empty($modSettings['arrange_drc']))

http://www.xxxx/xxxx/index.php?action=featuresettings2;save;sa=right_click
8: Undefined index: max_pm_recipients
Αρχείο: /xxxx/xxxx/xxx/xxxx/Sources/ModSettings.php
Γραμμή: 261

261=       $_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];


This is the other mod already installed  in my forum
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg505.imageshack.us%2Fimg505%2F9359%2Fsnap3ie8.jpg&hash=99073ccad70b5d4304cd626284c358f58189a093) (http://imageshack.us)
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on November 29, 2008, 04:58:13 PM
3.0.3 - 28 November 2008

o Fixed "8: Undefined index: drc_option" Error in the Error Logs with another method thanks to Bulakbol.
o Renamed a function from disable_right_click2 to disable_right_click_mute

Try the new version please and thanks to Bulakbol (http://www.simplemachines.org/community/index.php?action=profile;u=67763) for the help
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: villasg on November 30, 2008, 04:21:07 AM
Thanks for the new update but have the same issues .
1. Dont keep the changes in 


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg341.imageshack.us%2Fimg341%2F8865%2Fsnap2uy0.jpg&hash=e52b134508a6943efab3ee0aff901753fded09e2) (http://imageshack.us)


2. Lot of errors again

http://www.thai.gr/forum/index.php?action=permissions;sa=modify2;group=-1;boardid=0
8: Undefined index: drc_option
Αρχείο: ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 385

http://www.thai.gr/forum/index.php?action=permissions;boardid=0
8: Undefined index: drc_option
Αρχείο: ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

http://www.thai.gr/forum/index.php?action=permissions;boardid=0
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 385

http://www.thai.gr/forum/index.php?action=logout;sesc
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

http://www.thai.gr/forum/index.php?action=logout;sesc
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 385

http://www.thai.gr/forum/index.php?action=forum
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

http://www.thai.gr/forum/index.php?action=forum
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 385

http://www.thai.gr/forum/index.php?action=login2
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

http://www.thai.gr/forum/index.php?action=login2;sa=check;member=1
8: Undefined index: drc_option
Αρχείο:  ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

http://www.thai.gr/forum/index.php?action=admin
8: Undefined index: drc_option
Αρχείο: ,,,,,,,,,,,,,,,,,,,,,forum/index.php
Γραμμή: 382

I remove again .
take my index.php
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: villasg on November 30, 2008, 05:13:47 AM
And one more think .
Maybe the fault is my hoster .
The server is in "safe mode "
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Lyonsy on November 30, 2008, 02:13:07 PM
Hello.

Yes i still get the same errors  :-[

   
Apply Filter: Only show the error messages of this member david    Today at 08:10:01 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session a0fd33809aed82dbe437ad5760304d6b
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=featuresettings2;save;sa=right_click
Apply Filter: Only show the errors with the same message
8: Undefined index: pm_posts_per_hour
File: C:\web\webfiles\smf\Sources12\ModSettings.php
Line: 241
   
Apply Filter: Only show the error messages of this member david    Today at 08:10:01 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session a0fd33809aed82dbe437ad5760304d6b
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=featuresettings2;save;sa=right_click
Apply Filter: Only show the errors with the same message
8: Undefined index: pm_posts_verification
File: C:\web\webfiles\smf\Sources12\ModSettings.php
Line: 241
   
Apply Filter: Only show the error messages of this member david    Today at 08:10:01 pm
Apply Filter: Only show the error messages of this IP address 192.168.1.1      Apply Filter: Only show the error messages of this session a0fd33809aed82dbe437ad5760304d6b
Apply Filter: Only show the error messages of this URL http://david.hobby-site.com/index.php?action=featuresettings2;save;sa=right_click
Apply Filter: Only show the errors with the same message
8: Undefined index: max_pm_recipients
File: C:\web\webfiles\smf\Sources12\ModSettings.php
Line: 241
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on December 01, 2008, 03:22:12 PM
I will re-build all the mod today , later I will update the new version ;)
Title: Re: Disable Right Click (v3.0.2 Released!)
Post by: Nibogo on December 01, 2008, 04:25:24 PM
3.1 - 01 December 2008

o Re-Build all the mod . I simplify the code and the two bugs in the admin panel are fixed.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Lyonsy on December 01, 2008, 05:35:09 PM
Hello NIBOGO,

Downloaded latest version. But It does not want to install from the package manager.
Click on install but does nothing.

Lyonsy.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: edi67 on December 02, 2008, 09:36:40 AM
well thx nibogo now everything seem to work correctly ;) thx only one little bug i think, i have installed portal ( portamx) and when you browse my forum as GUEST you see the FONT SIZE of all board more big than when you login as user, this depend from this mod i know for sure ( is i unistall it everything is ok font size is the same for guest and user )
try to see as guest and login as user (test/test)

http://ediboard.altervista.org/

may be is possible fix this
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 02, 2008, 05:25:59 PM
Quote from: Lyonsy on December 01, 2008, 05:35:09 PM
Hello NIBOGO,

Downloaded latest version. But It does not want to install from the package manager.
Click on install but does nothing.

Lyonsy.

SMF Version? ???

Quote from: edi67 on December 02, 2008, 09:36:40 AM
well thx nibogo now everything seem to work correctly ;) thx only one little bug i think, i have installed portal ( portamx) and when you browse my forum as GUEST you see the FONT SIZE of all board more big than when you login as user, this depend from this mod i know for sure ( is i unistall it everything is ok font size is the same for guest and user )
try to see as guest and login as user (test/test)

http://ediboard.altervista.org/ (http://ediboard.altervista.org/)

may be is possible fix this

I have no idea of what this happend  >:(
Title: Re: Disable Right Click (v3.1 Released!)
Post by: villasg on December 03, 2008, 03:56:01 AM
Quote from: Lyonsy on December 01, 2008, 05:35:09 PM
Hello NIBOGO,

Downloaded latest version. But It does not want to install from the package manager.
Click on install but does nothing.

Lyonsy.

The same results .
Smf version 1.1.7 default theme
I download but canot install via the package manager
Click on install but does nothing.

My server run in the safe mode , maybe is this the fault ?
or have another fault ?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: villasg on December 03, 2008, 04:22:54 AM
And in smf-1.x.xml
please add the greek-utf8


<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$txt['arrange_drc'] = 'Απενεργοποιηση του δεξιου κλικ για καποιους users';
$txt['drc_msg'] = 'Εμφανισε ενα μυνημα';
$txt['drc_message2'] = 'Sorry , You can\'t use the right click';
$txt['drc_title'] = 'Write the message of will be show';
$txt['permissionname_right_click'] = 'Δεξί κλίκ';
$txt['permissionhelp_right_click'] = 'Αυτο το δικαιωμα αφηνει τους χρηστες να κανουν δεξι κλικ σε ολο το φορουμ.';
]]></add>
</operation>
</file>


<file name="$languagedir/Help.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$helptxt['arrange_drc'] = 'Με αυτο το δεξι κλικ θα απενεργοποιηθει για καποια groups';
$helptxt['drc_msg'] = ' Μπορεις να ενεργοποιησεις αυτο για να εμφανιζεις ενα μυνημα οταν οι χρηστες κανουν δεξι κλικ ';
$helptxt['drc_title'] = 'Γραψε τι θες να εμφανιζετε , μόνο εαν το  "Εμφανισε ενα μυνημα" ειναι επιλεγμενο';
]]></add>
</operation>
</file>
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 03, 2008, 06:58:03 PM
@oloroko: Please post that in the Spanish Board not here - Ponga eso en el foro de español no aqui ;)

@villasg: I try in my localhost and works great :s
Title: Re: Disable Right Click (v3.1 Released!)
Post by: villasg on December 04, 2008, 07:52:50 AM
Quote from: NIBOGO on December 03, 2008, 06:58:03 PM
@oloroko: Please post that in the Spanish Board not here - Ponga eso en el foro de español no aqui ;)

@villasg: I try in my localhost and works great :s


Thanks for your time   i dont have any effect .
I uplad with ftp the mod in pakages dir .
And from pakage manager from my forum i press INSTALL .
And make a refresh in the page and return in the same page

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg242.imageshack.us%2Fimg242%2F5932%2Fsnap1jm7.jpg&hash=49aa493be80ec0bde340ba185105c6b567e0fe77) (http://imageshack.us)

Have smf 1.1.7 .
have anyone else istall correct the mod in 1.1.7 ?

Title: Re: Disable Right Click (v3.1 Released!)
Post by: villasg on December 04, 2008, 08:49:52 AM
I find the way .
Extract your pakage
Add my language
I make again the .zip with 7zip rename and istalled OK

In the mod download page the name of the mod is Disable Right_Click.zip
Need to change in Disable_Right_Click.zip
Just replace the space with _

Now have another problem

I visit the forum as guest ( guest have no permision for right click)
In the main page of forum  the mod works good .
If i go inside in a board or topik or post DONT work .
In the tiny portal page dont work

You have any idea for that ?

smf 1.1.7 with TinyPortal v0.9.8

Look

main page
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg126.imageshack.us%2Fimg126%2F4475%2Fsnap2ut4.jpg&hash=f5605a154ce34db9611ead42a940676f8ac64663)

inside
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg380.imageshack.us%2Fimg380%2F4065%2Fsnap1un4.jpg&hash=9d384a348376cf744c08c044f7702cf17d463533)
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 04, 2008, 12:12:25 PM
Reuploaded tthe package thx villasg , I will check that issue ;)
Title: Re: Disable Right Click (v3.1 Released!)
Post by: villasg on December 05, 2008, 07:24:43 AM
 O:)
i wait you
Title: Re: Disable Right Click (v3.1 Released!)
Post by: taha116 on December 15, 2008, 06:01:44 PM
Were do i edit the options for this MOD?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 15, 2008, 08:23:48 PM
Quote from: taha116 on December 15, 2008, 06:01:44 PM
Were do i edit the options for this MOD?

Features and Settings
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Phat^Trance on December 20, 2008, 05:26:23 PM
this mod doesnt seem to work with 1.1.7.  i activated the plugin, checked it and then went to permission and gave the right click permission to all except guest, bu i can still right click in both IE7 and FF3.  have i dont anything wrong?   please help me since i really need this plugin. i have the default theme  http://dailymobile.se/forum/index.php

my settings:

  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg247.imageshack.us%2Fimg247%2F7190%2F29331391ij5.th.jpg&hash=bebe07b7104b4fc7a6580da3bef5977a8bcad59e) (http://img247.imageshack.us/my.php?image=29331391ij5.jpg)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F1559%2F37425198zo9.th.jpg&hash=8e114dbfaac300b2179d094467819f3a74043ab9) (http://img255.imageshack.us/my.php?image=37425198zo9.jpg)
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 20, 2008, 05:47:17 PM
Maybe youy have errors in the installation or you dont have the javascript activated
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Phat^Trance on December 20, 2008, 06:06:09 PM
Quote from: NIBOGO on December 20, 2008, 05:47:17 PM
Maybe youy have errors in the installation or you dont have the javascript activated

i didnt get an error during the install. were do i activate the javascript?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on December 20, 2008, 06:44:05 PM
Quote from: Phat^Trance on December 20, 2008, 06:06:09 PM
Quote from: NIBOGO on December 20, 2008, 05:47:17 PM
Maybe youy have errors in the installation or you dont have the javascript activated

i didnt get an error during the install. were do i activate the javascript?

I check your website and the forum dont load the javascript , try the parser to edit the index.php and the Subs.php on the sources dir


Title: Re: Disable Right Click (v3.1 Released!)
Post by: Phat^Trance on December 20, 2008, 07:11:16 PM
i found something very strange.

when i go to the register page the right click mod works, BUT the image text for registration isnt there. and when i uninstall the application the image text gets back.

not that the right click mod ONLY worked in the registration area..


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F9128%2F78731565sr2.th.jpg&hash=8a1b48528ac4b87b2c713d3c973a3d075a04cbbf) (http://img257.imageshack.us/my.php?image=78731565sr2.jpg)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg261.imageshack.us%2Fimg261%2F8400%2F82735944sx6.th.jpg&hash=5549557a645ef627d5f5788bb86866498bde8832) (http://img261.imageshack.us/my.php?image=82735944sx6.jpg)

This is typical my luck, when i find a mod that i really really need , it wont work on my forum :(
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Phat^Trance on December 21, 2008, 05:29:25 AM
these are the MODs that i have activated on my board,  does anyone know if one of these are causing the right click app to not work?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg377.imageshack.us%2Fimg377%2F4981%2Fimage2jh6.th.jpg&hash=d5b4a88d726b5a623493bf9a44f1ee79c00aa0fb) (http://img377.imageshack.us/my.php?image=image2jh6.jpg)
Title: Re: No right click
Post by: taha116 on December 27, 2008, 04:23:53 PM
Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

Yeah, are you dum I like this mod, Its not hard to get the basic funtionality on a regular webpage but the mod goes further than that and will help alot more people then calling people stupid will.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: HT™ on December 28, 2008, 12:35:42 AM
Quote from: Phat^Trance on December 20, 2008, 07:11:16 PM
i found something very strange.

when i go to the register page the right click mod works, BUT the image text for registration isnt there. and when i uninstall the application the image text gets back.

not that the right click mod ONLY worked in the registration area..


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F9128%2F78731565sr2.th.jpg&hash=8a1b48528ac4b87b2c713d3c973a3d075a04cbbf) (http://img257.imageshack.us/my.php?image=78731565sr2.jpg)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg261.imageshack.us%2Fimg261%2F8400%2F82735944sx6.th.jpg&hash=5549557a645ef627d5f5788bb86866498bde8832) (http://img261.imageshack.us/my.php?image=82735944sx6.jpg)

This is typical my luck, when i find a mod that i really really need , it wont work on my forum :(

Me too! Please Help me!
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Harvester on February 06, 2009, 08:08:08 PM
hmm I installed this mod.. I am pretty sure I did it properly. I did a manual install rather than an auto because I had a couple lines in managerpermissions that the auto install didnt understand...

now that its installed.. I can still right click,, Ive checked permissions etc... Its not working for me. Please help

I see all the options in permissions and in the admin panel.

The grammar for the permissions and the settings on the admin panel is not that clear but I think I have check marks where I need them and none where I dont need them.

I really could use some help getting this to work.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Tiribulus on February 06, 2009, 08:19:27 PM
Quote from: HT™ on December 28, 2008, 12:35:42 AM
Quote from: Phat^Trance on December 20, 2008, 07:11:16 PM
i found something very strange.

when i go to the register page the right click mod works, BUT the image text for registration isnt there. and when i uninstall the application the image text gets back.

not that the right click mod ONLY worked in the registration area..


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F9128%2F78731565sr2.th.jpg&hash=8a1b48528ac4b87b2c713d3c973a3d075a04cbbf) (http://img257.imageshack.us/my.php?image=78731565sr2.jpg)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg261.imageshack.us%2Fimg261%2F8400%2F82735944sx6.th.jpg&hash=5549557a645ef627d5f5788bb86866498bde8832) (http://img261.imageshack.us/my.php?image=82735944sx6.jpg)

This is typical my luck, when i find a mod that i really really need , it wont work on my forum :(

Me too! Please Help me!

You guys might want to try one of the other anti bot mods. Worked for me and I like them better anyway.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on February 06, 2009, 09:12:57 PM
Quote from: Harvester on February 06, 2009, 08:08:08 PM
hmm I installed this mod.. I am pretty sure I did it properly. I did a manual install rather than an auto because I had a couple lines in managerpermissions that the auto install didnt understand...

now that its installed.. I can still right click,, Ive checked permissions etc... Its not working for me. Please help

I see all the options in permissions and in the admin panel.

The grammar for the permissions and the settings on the admin panel is not that clear but I think I have check marks where I need them and none where I dont need them.

I really could use some help getting this to work.

What is your SMF Version?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Harvester on February 06, 2009, 09:59:41 PM
1.1.8

I would really love if I could get it to work.

Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on February 06, 2009, 10:02:29 PM
Quote from: Harvester on February 06, 2009, 09:59:41 PM
1.1.8

I would really love if I could get it to work.



Javascript enabled??

Subs.php and index.php with the code added by the mod??

This mod works on all the themes but are you using SMF Theme default?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Harvester on February 06, 2009, 10:28:44 PM
ok how do I check to see if the javascript is enabled? I did nothing in regards to that. I only edited my files according the parser on the mods page
Title: Re: Disable Right Click (v3.1 Released!)
Post by: kjt on February 09, 2009, 12:17:03 AM
Love the thought of this Mod, however I had it all installed and functioning, but through a process of elimination, found out this mod removes the security letters new members have to type to register. Any way of resolving this? Also...I had one member that could click the message away and then proceed to copy while in the forum as a regular member, of which I had this mod enabled to restrict regular members from right clicking. When I entered as a regular member I could not get past the message popup...he and I both use Firefox.

I am using the Default MC_116  theme.

kjt
Title: Re: Disable Right Click (v3.1 Released!)
Post by: ttuu on February 09, 2009, 07:04:34 AM
its possible use this function per bord?
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on February 09, 2009, 05:36:52 PM
Quote from: kjt on February 09, 2009, 12:17:03 AM
Love the thought of this Mod, however I had it all installed and functioning, but through a process of elimination, found out this mod removes the security letters new members have to type to register. Any way of resolving this? Also...I had one member that could click the message away and then proceed to copy while in the forum as a regular member, of which I had this mod enabled to restrict regular members from right clicking. When I entered as a regular member I could not get past the message popup...he and I both use Firefox.

I am using the Default MC_116  theme.

kjt

You enable the permission for regular members??

Quote from: ttuu on February 09, 2009, 07:04:34 AM
its possible use this function per bord?

Yep , but I dont want to include that feature
Title: Re: Disable Right Click (v3.1 Released!)
Post by: ttuu on February 09, 2009, 06:26:04 PM
Why? This is very important to me.
Title: Re: Disable Right Click (v3.1 Released!)
Post by: Nibogo on February 09, 2009, 08:09:07 PM
Quote from: ttuu on February 09, 2009, 06:26:04 PM
Why? This is very important to me.

Because is not a feature of everybody wants and require time , I dont have a lot of time for all my mods and the YAGAM project is my priority.

You are free to add that feature if you want ;)
Title: Re: Disable Right Click (v3.1 Released!)
Post by: kjt on February 10, 2009, 11:30:21 AM
Quote from: NIBOGO on February 09, 2009, 05:36:52 PM
Quote from: kjt on February 09, 2009, 12:17:03 AM
Love the thought of this Mod, however I had it all installed and functioning, but through a process of elimination, found out this mod removes the security letters new members have to type to register. Any way of resolving this? Also...I had one member that could click the message away and then proceed to copy while in the forum as a regular member, of which I had this mod enabled to restrict regular members from right clicking. When I entered as a regular member I could not get past the message popup...he and I both use Firefox.

I am using the Default MC_116  theme.

kjt

You enable the permission for regular members??


I had it set up so only mods and admin could still right click. I have since removed the mod package because new members could not register with it in place.  Any ideas? I'd still love to have it in place.

kjt

Title: Re: Disable Right Click (v3.1 Released!)
Post by: Pho3niX90 on February 12, 2009, 08:16:37 AM
This mod is also not working for me, I use default theme, and do have javascript enabled, i use the neo shoutbox (uses java) and the reflections on the images is also java.. It's only this one that refuses to co-operate
Title: Re: Disable Right Click (v3.1 Released!)
Post by: edi67 on February 13, 2009, 04:36:33 AM
As already i told you , mod work good in RC1, but there is always that problem, the Size of fonts for guest are biggere that size of fonts for normal users, you can find the solution?

may be needed to insert one font size for guest when your mod apply the restriction.

thx

try: www.crazyzone.biz look size of fonts are bigger before to make login ( test/test)
Title: Re: Disable Right Click (v3.1 Released!)
Post by: thedarkman on February 22, 2009, 10:49:24 AM
not work in my smf 1.1.8

i have manualy edit package parser

but nothing happens  :'(

so I delete them


now, look....im using Outline+simpleportal theme is okay
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fg.imagehost.org%2F0602%2Funtitled_7.jpg&hash=edda74229e987f0aaa5ab02a950aa091550ad83e)

but,if i go to forum tab, he automatically switch to default theme
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ff.imagehost.org%2F0707%2Funtitled2.jpg&hash=8835bf7fb5c83498b7348f375f59edb7b3819644)

please fix my forum
Title: Re: Disable Right Click (v3.2 Released!)
Post by: Nibogo on March 29, 2009, 06:16:03 PM
Disable Right Click v3.2 Released!

Changelogs:


3.2 - 28 March 2009

o Fixed a bug with the xhtml validation and breaking ajax,visaul verification and javascript, PLEASE UPGRADE!
o Changed the ManagePermission for compatibility purpose
o Added translation for Spanish Es and Spanish Es-utf8
Title: Re: Disable Right Click (v3.2 Released!)
Post by: Tiribulus on March 30, 2009, 10:29:06 PM
I'm suspect when I did this in load.php:

Replace:
'url' => $scripturl . '#' . $board_info['cat']['id'],
with this:
'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],

which makes the breadcrumb links call the correct pages, that it made this mod only work on the board index page. 1.1.8 btw.

If you wanted to be an exceedingly hip n groovy dood you could see if you could figure out why this is. This is no emergency and I would completely understand if you didn't wanna do it. I probably wouldn't.  My explanation may be wrong too actually.
Title: Re: Disable Right Click (v3.2 Released!)
Post by: leami on April 08, 2009, 12:55:22 PM
Hello,

I have downloaded the package in the admin, it says no valid installation.
I uploaded via FTP, does not ..

I'll try manually
I informed you wish for a French translation
if it works

best regard
nad
Title: Re: Disable Right Click (v3.2 Released!)
Post by: leami on April 08, 2009, 08:12:27 PM
hello,

I changed the files manually
does not  :(

thank

version 1.18
Title: Re: Disable Right Click (v3.2 Released!)
Post by: JOSHSKORN on May 05, 2009, 12:32:04 AM
When I installed it, it installed flawlessly, HOWEVER...when it redirected to the setup page automatically, I got this message:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/nspirits/test2.myclan.info/Sources/ModSettings.php on line 122


Can someone help me? Do I need to post the file? Let me know.
Title: Re: Disable Right Click (v3.2 Released!)
Post by: biohazardjoker on May 17, 2009, 12:38:16 AM
were i download this version ===> Disable Right Click v3.2 Released! becuse the 3.1 version dont work in my smf version 1.1.8 the regular users still can copy my stuff im usgin explorer 8
Title: Re: Disable Right Click (v3.2 Released!)
Post by: islam2hamy on May 17, 2009, 01:08:40 PM
Thank you , very good mod ,

Arabic translation :

<file name="$languagedir/Modifications.arabic-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$txt['arrange_drc'] = 'تعطيل الضغط كليك يمين بالفأرة';
$txt['drc_msg'] = 'إظهر رسالة';
$txt['drc_message2'] = 'عذرا , لا يمكنك الضغط كليك يمين بالفأرة';
$txt['drc_title'] = 'الرسالة التى سوف تظهر';
$txt['permissionname_right_click'] = 'السماح بالضغط كليك يمين فى اى مكان فى صفحات المنتدى';
$txt['permissionhelp_right_click'] = 'هذا التصريح يسمح لهذه المجموعة من الضغط كليك يمين بالفأرة فى اى مكان فى صفحات المنتدى.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.arabic-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$helptxt['arrange_drc'] = 'تمكين تعطيل الضغط كليك يمين بالفأرة';
$helptxt['drc_msg'] = 'قم بتفعيل هذا الخيار لعرض رسالة عندما يقوم العضو بالضغط كليك يمين بالفأرة';
$helptxt['drc_title'] = 'اكتب الرسالة التى تريد عرضها , فقط عندما يكون الخيار "إظهر رسالة" يعمل';
]]></add>
    </operation>
</file>


please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: Disable Right Click (v3.2 Released!)
Post by: Nibogo on May 17, 2009, 01:25:06 PM
Thanks islam2hamy, I will add the translation for the next release
Title: Re: Disable Right Click (v3.2 Released!)
Post by: islam2hamy on May 17, 2009, 02:44:42 PM
You are welcome .
Title: Re: Disable Right Click (v3.2 Released!)
Post by: biohazardjoker on May 17, 2009, 08:39:16 PM
were i can download this mod??? becuse in the mod page appear the version 3.1 and no work in my smf version 1.1.8 i want to try this one

Quote from: NIBOGO on March 29, 2009, 06:16:03 PM
Disable Right Click v3.2 Released!

Changelogs:


3.2 - 28 March 2009

o Fixed a bug with the xhtml validation and breaking ajax,visaul verification and javascript, PLEASE UPGRADE!
o Changed the ManagePermission for compatibility purpose
o Added translation for Spanish Es and Spanish Es-utf8
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Nibogo on May 17, 2009, 09:39:01 PM
Changelogs:

3.3 - 17 May 2009

o Added arabic utf8 translation
- Changed the readme file :P
Title: Re: Disable Right Click (v3.3 Released!)
Post by: biohazardjoker on May 17, 2009, 09:53:38 PM
man i ask you several times were to find the new version of tis right click mod, can you plase ple answer my question becuse i need it and the version 3.1 dont work in the 3.1.8 smg my regular users can copy in my forum.


Quote from: NIBOGO on May 17, 2009, 09:39:01 PM
Changelogs:

3.3 - 17 May 2009

o Added arabic utf8 translation
- Changed the readme file :P
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Nibogo on May 17, 2009, 10:19:33 PM
Quote from: biohazardjoker on May 17, 2009, 09:53:38 PM
man i ask you several times were to find the new version of tis right click mod, can you plase ple answer my question becuse i need it and the version 3.1 dont work in the 3.1.8 smg my regular users can copy in my forum.

Maybe from the mod page??

http://custom.simplemachines.org/mods/index.php?action=download;mod=1175;id=98790
Title: Re: Disable Right Click (v3.3 Released!)
Post by: biohazardjoker on May 17, 2009, 10:26:07 PM
ty but now i get this error: Parse error: syntax error, unexpected ',' in /home2/tiroalbl/public_html/foro1/Sources/Subs.php on line 3766
and i cant do anything in my forum  >:(

Quote from: NIBOGO on May 17, 2009, 10:19:33 PM
Quote from: biohazardjoker on May 17, 2009, 09:53:38 PM
man i ask you several times were to find the new version of tis right click mod, can you plase ple answer my question becuse i need it and the version 3.1 dont work in the 3.1.8 smg my regular users can copy in my forum.

Maybe from the mod page??

http://custom.simplemachines.org/mods/index.php?action=download;mod=1175;id=98790
Title: Re: Disable Right Click (v3.3 Released!)
Post by: islam2hamy on May 18, 2009, 01:27:17 AM
Parse error: parse error in F:wampwwwsmf_1-1-82SourcesSubs.php on line 3684

Quotevar message="',(empty($modSettings['drc_title'])) ? $txt['drc_message2'] : $modSettings['drc_title'], ' ";
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Nibogo on May 18, 2009, 09:34:51 PM
Changelogs:
4.0 - 18 May 2009
o Total re-estructure of all the mod
o Maybe this is the final release
Title: Re: Disable Right Click (v3.3 Released!)
Post by: islam2hamy on May 19, 2009, 01:40:33 AM
Thank you , very good mod ,

Arabic translation :

<file name="$languagedir/Modifications.arabic-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$txt['arrange_drc'] = 'تعطيل الضغط كليك يمين بالفأرة';
$txt['drc_msg'] = 'إظهر رسالة كرسالة خطأ';
$txt['drc_message2'] = 'عذرا , لا يمكنك الضغط كليك يمين بالفأرة';
$txt['drc_title'] = 'الرسالة التى سوف تظهر (يمكنك ترك هذا الحقل فارغ)';
$txt['drc_exception'] = 'لتحديد الاماكن التى تريد تفعيل المود بها <br /><span class="smalltext">ضع فاصل بين كل اجراء و الاخر (login,register,..) </span>';
$txt['permissionname_right_click'] = 'الضغط كليك يمين بالفأرة';
$txt['permissionhelp_right_click'] = 'هذا التصريح يسمح لهذه المجموعة من الضغط كليك يمين بالفأرة فى اى مكان فى صفحات المنتدى.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.arabic-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click v3 BY: NIBOGO
$helptxt['drc_msg'] = 'قم بتفعيل هذا الخيار لعرض رسالة عندما يقوم العضو بالضغط كليك يمين بالفأرة';
$helptxt['drc_title'] = 'اكتب الرسالة التى تريد ظهورها كرسالة خطأ';
]]></add>
    </operation>
</file>


please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Vindows on May 19, 2009, 05:37:02 PM
"Disable Right Click (v4.0)" This not effect on smf 1.1.7 + Simpleportel

I use theme urban_117 and addon SimplePortal 2.2 . "Disable Right Click (v4.0)"  is not show effect after config on File Edits "http://custom.simplemachines.org/mods/index.php?action=parse"

after config this effect on admin system but mod is not work

Features and Options
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgsv1.uploadfile.biz%2Fimg%2F920_click_01.gif&hash=eb987dc152c95b4ebe8d4b40db1c72592864cc46) (http://image.uploadfile.biz/view-920_click_01.gif)


Permissions
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgsv1.uploadfile.biz%2Fimg%2F556_click_02.gif&hash=8aab07d97b5bc07ae3f8be61f20f5530acad43b4) (http://image.uploadfile.biz/view-556_click_02.gif)

Please me  :-[
Title: Re: Disable Right Click (v3.3 Released!)
Post by: biohazardjoker on May 27, 2009, 12:04:08 AM
i have a question please, i put this in my 1.1.9 smf and work perfect but i have a question, went the people enter to post a new messege they cant use the rightclick, some people need that fuction in the post part to paste stuff like pictures or info, is posible to disable the mod just for that page??? please help and ty
Title: Re: Disable Right Click (v3.3 Released!)
Post by: zer099 on June 14, 2009, 04:36:47 PM
Maybe someone can help me out here. When installing this I keep getting a "Error in Package Installation". It fails at step four:

4. Execute Modification ./Sources/ManagePermissions.php Test failed

I've tried a few times and still getting this. Anyone got anything that migh give insight? I'm using SMF 1.1.9 by the way. Thanks!
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Nibogo on June 14, 2009, 11:43:15 PM
Quote from: zer099 on June 14, 2009, 04:36:47 PM
Maybe someone can help me out here. When installing this I keep getting a "Error in Package Installation". It fails at step four:

4. Execute Modification ./Sources/ManagePermissions.php Test failed

I've tried a few times and still getting this. Anyone got anything that migh give insight? I'm using SMF 1.1.9 by the way. Thanks!

Do manual edit to that file using the parser ;)
Title: Re: Disable Right Click (v3.3 Released!)
Post by: zer099 on June 15, 2009, 12:47:12 AM
Quote from: NIBOGO on June 14, 2009, 11:43:15 PM

Do manual edit to that file using the parser ;)

Thank you... but here's the problem: could you say that again but explain it as if I no next to jack about coding but can do it fine if just helped a little and pointed in the right direction.

Edit the file: Check, but edit what part. Maybe if I knew what the parser was I might be able to better understand. Sorry for my slight coding illiteracy.
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Sabre™ on June 15, 2009, 02:38:44 AM
Go to the page where you download the mod from. (HERE (http://custom.simplemachines.org/mods/index.php?mod=1175))
Look for this text under the mod package "Manual Install Instructions for SMF", select your SMF version, then click on the parse button.
The next page will show you what files to edit, and where.

Have fun :)
Title: Re: Disable Right Click (v3.3 Released!)
Post by: katbloke on June 18, 2009, 08:09:39 AM
Hi, bit of anewbie at this stuff, got the board installed fine and up an running, i like the idea of disable right click but i cant get it to fully show in the features setting, i get the 2 tick boxes, pop up custom title but no disable right click title or question mark.

Forum is 1.1.9 and the theme is clean blue, any ideas gratefully received, the site co-owner really wants this mod to work.

Thankyou
Title: Re: Disable Right Click (v3.3 Released!)
Post by: Sabre™ on June 18, 2009, 08:15:21 AM
Hi mate, and welcome to SMF :)

Read my post above, and check that the code for the "Language" files have been added to your template(s)
Title: Re: Disable Right Click (v3.3 Released!)
Post by: katbloke on June 18, 2009, 08:39:37 AM
Hi ive done the language file mods but it made no change, below is an image of what im poorly trying to describe

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi120.photobucket.com%2Falbums%2Fo189%2Fkatbloke%2Frightclickdisabled.jpg&hash=05ccf4861cea0750105cbb8ead93296bcc9d3151)

Everything seems ticked and looks ok, aprt from its missing the right click disabled text
Title: Re: Disable Right Click (v4.0 Released!)
Post by: katbloke on July 03, 2009, 04:20:37 AM
uninstalled it and reinstalled it and still getting the same problem, i can right click on both gallery images and inserted images, quite worrying as we dont want to fully open the site until this problem is resolved, anymore ideas guys?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: zer099 on July 03, 2009, 02:06:25 PM
I am haveing a similar problem now. Everything is installed and says it is working, but everyone can still right-click. And thank you so much for the earlier help BTW.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Am' on July 04, 2009, 10:39:01 AM
I added the mod but i not see the box quick eply in any board :(

please help me, i use smf 2rc1-1
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Shadow1243 on July 05, 2009, 10:09:01 AM
I installed to my forum: http://www.doktortr.net/forum/index.php?action=forum (http://www.doktortr.net/forum/index.php?action=forum)



And you can add Turkish language to your mod:
Quote// Disable Right Click BY: NIBOGO
$txt['arrange_drc'] = 'Belli gruplar için sağ tıklamayı engelle';
$txt['drc_msg'] = 'Sağ tık engellendiğinde hata raporu göster';
$txt['drc_message2'] = 'Sağ klik yasaktır!';
$txt['drc_title'] = 'Hata mesajını giriniz (Boş bırakabilirsiniz)';
$txt['drc_exception'] = 'Belirli action\'lar için bu modu inaktive et<br /><span class="smalltext">Action\'ları virgül ile ayır (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Sağ tık';
$txt['permissionhelp_right_click'] = 'Bu modifikasyon kullanıcı gruplarının forumda sağ tık kullanmasını ayarlar.';

QuoteRight Click BY: NIBOGO
$helptxt['drc_msg'] = 'Sağ tık kullanan kullanıcıya bir uyarı göstermek istiyorsanız bu şıkkı işaretleyiniz.';
$helptxt['drc_title'] = 'Göstermek istediğiniz hata mesajını yazınız.';

Title: Re: Disable Right Click (v4.0 Released!)
Post by: katbloke on July 08, 2009, 02:38:15 PM
I can still right clikc on your forum
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Shadow1243 on July 08, 2009, 03:11:00 PM
http://www.doktortr.net/forum/index.php

only this page allows right click.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: zer099 on July 08, 2009, 04:57:00 PM
I can right click on all of the diffrent pages and thread on your forum i tried as well. I think your having the same problem I am with the mod.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on July 08, 2009, 06:14:33 PM
Just to throw a question in here, have you(s) selected which member groups this will and will not work for in your 'Permissions' section in your Admin Panel?

@ katbloke
Are you still experiencing the problem with the text not visible?
If so, check if you have a file in your Languages folder named Modifications.english-utf8.php and make sure the edits for it are there.
If you are using a custom theme, see if it has its own Languages folder, and if it contains a Modifications.english.php and/or a Modifications.english-utf8.php file. Those will need editing if they are there.

Is anyone receiving any errors in their log generated from this mod?
Post them if you are, as that will help with solving your problem.

I do not have this mod installed as I rewrote the original version and it hasn't failed me yet, but I will try and help out where I can.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: villasg on July 09, 2009, 06:37:36 AM
I install but dont work in all forum pages .
Only in the first page ( http://www.thai.gr/forum/index.php?action=forum )
inside the borders dont work !
Make a try in www.thai.gr and check
Any help plz ?


greek utf-8
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click BY: NIBOGO
$txt['arrange_drc'] = 'Απενεργοποιηση του δεξιου κλικ για καποιους users membergroups';
$txt['drc_msg'] = 'Εμφανισε ενα μυνημα λαθους';
$txt['drc_message2'] = 'Συγνωμη αυτο δεν επιτρεπεται ';
$txt['drc_title'] = 'Γραψε τι θες να εμφανιζετε (μπορεις να το αφησεις κενο)';
$txt['drc_exception'] = 'Ορίστε εάν θέλετε να απενεργοποιήσετε το mod σε συγκεκριμένες δράσεις<br /><span class="smalltext">διαχωριστε την καθε δραση με κομμα (login,register,..)</span>';
$txt['permissionname_right_click'] = 'δεξι κλικ';
$txt['permissionhelp_right_click'] = 'Αυτο το δικαιωμα  καθοριζει εαν οι χρηστες απο αυτο το membergroup μπορουν να κανουν χρηση του δεξιου κλικ στο forum.';
]]></add>
</operation>
</file>


<file name="$languagedir/Help.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click BY: NIBOGO
$helptxt['drc_msg'] = 'Αν θέλετε να δείξετε ένα προσωπικό μήνυμα όταν ένας χρήστης, χωρίς το δικαιωμα , κανει δεξί κλικ επιλεξτε εδω ';
$helptxt['drc_title'] = 'Γραψε το μυνημα που θα εμφανιζετε σαν λαθος';
]]></add>
</operation>
</file>
Title: Re: Disable Right Click (v4.0 Released!)
Post by: casp3r on July 10, 2009, 04:25:44 AM
Is it possible to have the mod work on just images? At present it works no matter where you right click but it would be great if there was an option to allow it on text but not on images.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: katbloke on July 11, 2009, 08:23:47 AM
aaaarghhh ruddy, thing it will work im sure
Title: Re: Disable Right Click (v4.0 Released!)
Post by: katbloke on July 11, 2009, 09:40:47 AM
Quote from: Sabre™ on July 08, 2009, 06:14:33 PM
Just to throw a question in here, have you(s) selected which member groups this will and will not work for in your 'Permissions' section in your Admin Panel?

@ katbloke
Are you still experiencing the problem with the text not visible?
If so, check if you have a file in your Languages folder named Modifications.english-utf8.php and make sure the edits for it are there.
If you are using a custom theme, see if it has its own Languages folder, and if it contains a Modifications.english.php and/or a Modifications.english-utf8.php file. Those will need editing if they are there.

Is anyone receiving any errors in their log generated from this mod?
Post them if you are, as that will help with solving your problem.

I do not have this mod installed as I rewrote the original version and it hasn't failed me yet, but I will try and help out where I can.

Have now editied that file and yes  it now appears as a permission in the usergroups, trouble is if i create an account in a standard usergroup i can still right click even with the rightclick option ticked/unticked
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on July 12, 2009, 01:11:29 AM
You'll have to wait for NIBOGO or another that has experienced and sorted that issue.
Im still using the old version with [THESE] (http://www.simplemachines.org/community/index.php?topic=238198.msg1537825#msg1537825) edits for membergroup permission.
It shouldn't be too difficult to fix for someone familiar with the updated version.

If I use it on another board Im currently building and run into the same issue, I'll return with a possible solution, if it hasn't already been seen to.

Good luck :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: LFinder on July 19, 2009, 11:00:44 AM
Hi,

I cant install mod it says The package you are trying to download or install is either corrupt or not compatible with this version of SMF. I am using SMF 1.1.10
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Supermobilegame on July 19, 2009, 11:11:28 AM
Dear NIBOGO, i like your mods 'Disable Right Click' but i can't install it on my forum. I'm using smf 1.1.10 at supermobilegame.com
Its say's:

Installations actions for "Disable Right Click":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Thanks in advance  ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: MayorNewton on July 19, 2009, 10:04:05 PM
Yep, me too!  I get the 'corrupt or not compatible' message, also, and I have 1.1.10.  I'm really looking forward to using this mod, so hopefully an easy 'fix' will happen!  Thank you for the mod!

Mayor
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on July 19, 2009, 10:16:49 PM
I noticed this with a couple of mods I tried to install.
Being lazy last night, I just removed the version type from the info xml on those lol
Didnt have the patience to figure out what the problem is, although the info had been updated for 1.1.10
Anyways, that little work around worked for me, and I got a good nights rest :D lol
Title: Re: Disable Right Click (v4.0 Released!)
Post by: CesarManara on July 25, 2009, 02:20:38 AM
Language portuguese_brazilian on SMF 2.0 RC1.2.

Modifications.portuguese_brazilian.php
$txt['arrange_drc'] = 'Desabilita o click com o botão direito para certos grupos';
$txt['drc_msg'] = 'Mostrar uma mensagem de erro?';
$txt['drc_message2'] = 'Permissão Negada';
$txt['drc_title'] = 'Menssagem de erro (Pode-se deixar isto em branco):';
$txt['drc_exception'] = 'Digite aqui as actions aonde você quer desabilitar a modificação <br /><span class="smalltext">Separe as actions com vírgulas (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Clicar com o botão direito';
$txt['permissionhelp_right_click'] = 'Esta permissão determina se o grupo vai poder usar o Clique com o botão direito em seu fórum.';


Help.portuguese_brazilian.php
$helptxt['drc_msg'] = 'Se você quiser que seja mostrada uma mensagem de erro quando alguém tentar usar o botão direito e não for permitido, marque esta caixa';
$helptxt['drc_title'] = 'Digite a mensagem que você quer que seja mostrada como erro.';
Title: Re: Disable Right Click (v4.0 Released!)
Post by: simplebeer on September 04, 2009, 07:38:05 AM
Hello!

I have installed this mod and everything works except no message in the index area.

If i go to help page, search page, kalender page,  it al works when you right click you get the message pop up but if you go to te index area and right click you just get the normal window?

Can someone explain?

Thanks!

p.s. under a little help from me  ;)

Language Dutch on SMF 1.1.9
Code (Modifications.Dutch.php) Select

// Disable Right Click BY: NIBOGO
$txt['arrange_drc'] = 'Zet de rechter muisklik af voor aangegeven ledengroepen';
$txt['drc_msg'] = 'Laat een zelf ingevoerd bericht zien als error';
$txt['drc_message2'] = 'Sorry, je kan de rechter muisklik niet gebruiken';
$txt['drc_title'] = 'Type hier het zelf ingevoerde bericht (Je kan dit ook leeg laten)';
$txt['drc_exception'] = 'Als je de mod alleen wilt gebruiken in bepaalde onderdelen voer deze dan hier in<br /><span class="smalltext">scheid de onderdelen door commas (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Rechter muisklik';
$txt['permissionhelp_right_click'] = 'Deze permissie geeft aan of de gebruiker van deze ledengroep de rechter muisklik kan gebruiken.';


Code (help.Dutch.php) Select

// Disable Right Click BY: NIBOGO
$helptxt['drc_msg'] = 'Als je een zelf ingevoerd bericht wilt laten zien als een gebruiker zonder de permissie de rechter muisklik gebruikt vink dan deze optie aan';
$helptxt['drc_title'] = 'Type hier het zelf ingevoerd bericht welke je wilt laten zien als de error verschijnt';






Gr
Title: Re: Disable Right Click (v4.0 Released!)
Post by: simplebeer on September 06, 2009, 07:39:37 AM
Quote from: PiWi on September 04, 2009, 07:38:05 AM
Hello!

I have installed this mod and everything works except no message in the index area.

If i go to help page, search page, kalender page,  it al works when you right click you get the message pop up but if you go to te index area and right click you just get the normal window?

Can someone explain?

Thanks!

Gr

Anyone?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: TaX on September 28, 2009, 03:18:37 AM
Quote from: PiWi on September 06, 2009, 07:39:37 AM
Quote from: PiWi on September 04, 2009, 07:38:05 AM
Hello!

I have installed this mod and everything works except no message in the index area.

If i go to help page, search page, kalender page,  it al works when you right click you get the message pop up but if you go to te index area and right click you just get the normal window?

Can someone explain?

Thanks!

Gr Patrick

Anyone?

The solutions is modify the file "package-info.xml" and adding 1.1.10 in the info, i attach the entire pack whit the modified file for SMF 1.1.10 ;)

Muchas gracías por este excelente trabajo, Dios te bendiga :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: simplebeer on September 28, 2009, 07:38:42 AM
Quote from: TaX on September 28, 2009, 03:18:37 AM
Quote from: Welb on September 06, 2009, 07:39:37 AM
Quote from: Welb on September 04, 2009, 07:38:05 AM
Hello!

I have installed this mod and everything works except no message in the index area.

If i go to help page, search page, kalender page,  it al works when you right click you get the message pop up but if you go to te index area and right click you just get the normal window?

Can someone explain?

Thanks!

Gr

Anyone?

The solutions is modify the file "package-info.xml" and adding 1.1.10 in the info, i attach the entire pack whit the modified file for SMF 1.1.10 ;)

Muchas gracías por este excelente trabajo, Dios te bendiga :)

Thanx for the work!

My language is dutch so i have install this mod manually, were must i put this modified "package-info.xml" file to make this work?

Mvg
Title: Re: Disable Right Click (v4.0 Released!)
Post by: AlkaSeltxer on October 01, 2009, 05:09:46 PM
I too can still right-click with no problem, with permissions set. No errors in log nor on install.

Firefox 3.5.3, SMF 1.1.10, TP 0.9.8.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Nibogo on October 08, 2009, 10:19:47 PM
New version uploaded now supporting SMF 1.1.10
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on October 08, 2009, 11:52:39 PM
Hi champ, just thought I'd test your update on a new site instead of using my own version.
You can still right click when viewing topics, and inside the topics themselves. smf 1.x.x
Title: Re: Disable Right Click (v4.0 Released!)
Post by: - = Orfeo = - on November 14, 2009, 12:56:11 PM
Nibogo, hay un gran problema en este MOD:

Tengo SimplePortal, e instalado correctamente el MOD, pero funciona cuando quiera, a qué voy?

1) Con el user deslogueado, sólo desactiva el click derecho en el menú de foros y categorías, dentro de un mensaje (siendo invitado o no logueado) se puede hacer clic derecho en todo.

2) No sería mejor activar y desactivar el mismo desde el index.php o template.php? mediante un [guest] o [logued]? porque sino estos problemas se suelen presentar con más frecuencia....espero puedas responder quizás alguna solución o modificarlo de esta forma así es más seguro, saludos!
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SN on December 05, 2009, 12:01:18 AM
just installed this, and it is only working on forum Index.

its not working on any boards or threads, how can i fix this?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SN on December 07, 2009, 02:50:04 PM
*bump*
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kicky on February 07, 2010, 09:26:36 PM
hi, I was try to install this to my SMF 1.1.11
but it reported an error
Execute Modification     ./Sources/ManagePermissions.php     Test failed

what should I do?

thanks
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Nibogo on February 08, 2010, 10:36:45 AM
Quote from: kicky on February 07, 2010, 09:26:36 PM
hi, I was try to install this to my SMF 1.1.11
but it reported an error
Execute Modification     ./Sources/ManagePermissions.php     Test failed

what should I do?

thanks

Do a manual edit
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kicky on February 08, 2010, 10:40:23 AM
Quote from: NIBOGO on February 08, 2010, 10:36:45 AM
Quote from: kicky on February 07, 2010, 09:26:36 PM
hi, I was try to install this to my SMF 1.1.11
but it reported an error
Execute Modification     ./Sources/ManagePermissions.php     Test failed

what should I do?

thanks

Do a manual edit

What edit I must do?
Title: Re: No right click
Post by: morokat on February 20, 2010, 01:20:55 PM
Quote from: Sabre™ on May 11, 2008, 01:26:04 AM
Tell that to the staff here at the site you cherish soo much, that gave it the thumbs up.

Some of us use it to play jokes with our users(because we have a sense of humour), and others as a door to other opportunities.

Common sense states, that if you have nothing nice to say, then shut your trap!!

help me please

how to add some bord that i'm no need somebody rihgt click

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg690.imageshack.us%2Fimg690%2F8660%2Frigz.jpg&hash=b9702e034c923e98f9d8b86ff4015cd4de593977)
Title: Re: No right click
Post by: morokat on February 20, 2010, 09:01:45 PM
Quote from: morokat on February 20, 2010, 01:20:55 PM
Quote from: Sabre™ on May 11, 2008, 01:26:04 AM
Tell that to the staff here at the site you cherish soo much, that gave it the thumbs up.

Some of us use it to play jokes with our users(because we have a sense of humour), and others as a door to other opportunities.

Common sense states, that if you have nothing nice to say, then shut your trap!!

help me please

how to add some bord that i'm no need somebody rihgt click

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg690.imageshack.us%2Fimg690%2F8660%2Frigz.jpg&hash=b9702e034c923e98f9d8b86ff4015cd4de593977)

can anybody hellp me with this question?

help me please

how to add some bord that i'm no need somebody rihgt click

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg690.imageshack.us%2Fimg690%2F8660%2Frigz.jpg&hash=b9702e034c923e98f9d8b86ff4015cd4de593977)
[/quote]
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kikokeko on March 11, 2010, 04:15:37 PM
Quote from: SN on December 05, 2009, 12:01:18 AM
just installed this, and it is only working on forum Index.

its not working on any boards or threads, how can i fix this?

Hello. Thank you very much for the mod.

Am I feel the same, only works on the index.

I also have Version 1.1.11
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on May 20, 2010, 03:41:47 PM
Quotehttp://www.xxxxxxxxxxxx.com/index.php?action=dlattach;attach=1;type=avatar
8: Undefined index: html_headers
File: /home/sites/xxxxxxxxxxxxx.com/Sources/Subs.php
Line: 4266
using the mod gives me this error every time i click home button i don't get the error with the mod unistalled using the updated mod and RC3.
below is the code it refers to
   // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= '  <----line 4266


seems to be when a guest clicks the home button
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Nibogo on May 20, 2010, 04:11:56 PM
Liam. is the new developer of this mod! Thanks to him :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on May 20, 2010, 04:19:30 PM
Quote from: adbrad on May 20, 2010, 03:41:47 PM
Quotehttp://www.xxxxxxxxxxxx.com/index.php?action=dlattach;attach=1;type=avatar
8: Undefined index: html_headers
File: /home/sites/xxxxxxxxxxxxx.com/Sources/Subs.php
Line: 4266
using the mod gives me this error every time i click home button i don't get the error with the mod unistalled using the updated mod and RC3.
below is the code it refers to
   // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= '  <----line 4266


seems to be when a guest clicks the home button

Could you please post 5 lines above and 5 lines below that line please (in total 11 lines...)? I'll look into it then - it seems to be working fine for me...

And thanks Nibogo for giving me this mod ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on May 20, 2010, 06:23:00 PM
    // Define the message
    $drc_message = ((empty($modSettings['drc_title'])) ? $txt['drc_message2'] : $modSettings['drc_title']);

    // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= '
       <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


those are the lines thanks
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on May 21, 2010, 06:19:24 PM
Hmm, seems like theres alot of comments there ;) Mind posting some more lines or attach your Subs.php file?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on May 22, 2010, 04:30:47 AM
// Disable Right Click v4 By: NIBOGO
function disable_right_click()
{
    global $context, $modSettings, $txt;

    $do_drc = true;   
   
    // Maybe I want to add an exception, well verify if you don't want the mod in a determinated action
    if (!empty($modSettings['drc_exception'])){
    $actions = explode(',', $modSettings['drc_exception']);   

    if (isset($_REQUEST['action']) && (in_array($_REQUEST['action'], $actions)))
       $do_drc = false;
    }

    // First check if we want a message 
    if (!empty($modSettings['drc_msg']) && $do_drc){

    // Define the message
    $drc_message = ((empty($modSettings['drc_title'])) ? $txt['drc_message2'] : $modSettings['drc_title']);

    // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= ' <-------this is the line in the error
       <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="'.$drc_message.'";
///////////////////////////////////
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>';
    }

    if (empty($modSettings['drc_msg']) && $do_drc)
    {
   
    // This hide the right click without a message, only if the "Dont Show Nothing" option is selected

    $context['html_headers'] .= '
       <script language=JavaScript>
<!--
//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
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>';     
    }
}


that is everything the mod adds to subs.php
Title: Re: Disable Right Click (v4.0 Released!)
Post by: muskalyn on May 22, 2010, 02:52:24 PM
hi guys!

Liam , this is for your mod. it's turkish translation.

$languagedir/Modifications.turkish.php

$txt['arrange_drc'] = 'Özel Üye gruplarına kapat';
$txt['drc_msg'] = 'Hata Mesajı göster';
$txt['drc_message2'] = 'Sağ Tık Yasaktır.';
$txt['drc_title'] = 'Hata mesajınızı yazın';
$txt['drc_exception'] = 'İstisnai durumlara kapat.<br /><span class="smalltext">(Giriş,Kayıt,..)</span>';
$txt['permissionname_right_click'] = 'Sağ Tık';


$languagedir/Help.turkish.php

$helptxt['drc_msg'] = 'Etkin?';
$helptxt['drc_title'] = 'Senin özel mesaj yazın gibi hata göstermek istiyorum';


it's not true %100 but it works. i am using it and i have not a problem. it help to Turkish people.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on May 22, 2010, 03:03:27 PM
Thanks muskalyn, I'll include that translation in the next version ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: muskalyn on May 22, 2010, 03:08:06 PM
Quote from: Liam. on May 22, 2010, 03:03:27 PM
Thanks muskalyn, I'll include that translation in the next version ;)

not at all ;).
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SoLoGHoST on May 22, 2010, 03:11:39 PM
Nice mod, though unfortunately, I never saw a need for this, since if people wanna steal your images, than can simply do a View Source on it and search for <img> tags or even css classes for where the image is at within the DOM.  There's really nothing you can do to prevent users from stealing your images, so what's the point of trying to make it difficult?  I don't see any point in this mod if it is just to protect your images.  And not to mention the notorious Print Screen button.  But don't get me wrong, I'm sure people feel more secure about their images with this mod installed.

Just my .02¢
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on May 22, 2010, 07:25:20 PM
Quote from: SoLoGHoST on May 22, 2010, 03:11:39 PM
Nice mod, though unfortunately, I never saw a need for this, since if people wanna steal your images, than can simply do a View Source on it and search for <img> tags or even css classes for where the image is at within the DOM.  There's really nothing you can do to prevent users from stealing your images, so what's the point of trying to make it difficult?  I don't see any point in this mod if it is just to protect your images.  And not to mention the notorious Print Screen button.  But don't get me wrong, I'm sure people feel more secure about their images with this mod installed.

Just my .02¢

Well the function is there and I personally see how some sites would use it - not all internet users even know how to view a page source, so it does stop alot. Again, alot of people don't know how to CTRL+C, so it stops copying aswell in some cases. Plus, why do we have any security features in SMF, since someone could still bypass them all... It stops a majority of people from doing it, so is still good...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SoLoGHoST on May 23, 2010, 01:28:36 AM
Ok, if you say so...

Cheers :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on May 23, 2010, 02:55:42 AM
I've never seen you post rude reply before SoLo.
Interesting ..
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on May 23, 2010, 06:54:29 AM
Quote from: Sabre™ on May 23, 2010, 02:55:42 AM
I've never seen you post rude reply before SoLo.
Interesting ..

Wasn't really a rude reply, just stating his opinion, which I have to agree with. I would never consider using this on my own site but I do 100% understand why other webmasters would choose to. There's another thing, this simply gives them a choice ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on May 23, 2010, 07:45:32 AM
umm ...
Ok, if you say so...

Cheers :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SoLoGHoST on May 23, 2010, 09:22:17 PM
Quote from: Sabre™ on May 23, 2010, 02:55:42 AM
I've never seen you post rude reply before SoLo.
Interesting ..

OMG, was that rude?  I'm sorry, I didn't think of it like that.  Nowadays I'm getting a bit of a bad habit of sarcasm in the way I come across sometimes.  Thanks for pointing that out Sabre.  And sorry bout that Liam, I know what you are saying though, don't get me wrong, and it seems that you didn't either, cool.

Cheers :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on May 31, 2010, 01:35:47 PM
Quote from: adbrad on May 22, 2010, 04:30:47 AM
// Disable Right Click v4 By: NIBOGO
function disable_right_click()
{
    global $context, $modSettings, $txt;

    $do_drc = true;   
   
    // Maybe I want to add an exception, well verify if you don't want the mod in a determinated action
    if (!empty($modSettings['drc_exception'])){
    $actions = explode(',', $modSettings['drc_exception']);   

    if (isset($_REQUEST['action']) && (in_array($_REQUEST['action'], $actions)))
       $do_drc = false;
    }

    // First check if we want a message 
    if (!empty($modSettings['drc_msg']) && $do_drc){

    // Define the message
    $drc_message = ((empty($modSettings['drc_title'])) ? $txt['drc_message2'] : $modSettings['drc_title']);

    // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= ' <-------this is the line in the error
       <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="'.$drc_message.'";
///////////////////////////////////
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>';
    }

    if (empty($modSettings['drc_msg']) && $do_drc)
    {
   
    // This hide the right click without a message, only if the "Dont Show Nothing" option is selected

    $context['html_headers'] .= '
       <script language=JavaScript>
<!--
//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
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>';     
    }
}


that is everything the mod adds to subs.php

still no feedback on this issue i have disabled the mod no errors i re-enable mod and get errors again so definitely this mod causing trouble if i don't get any answers i will simply have to uninstall mod
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on June 11, 2010, 08:12:08 AM
11 days and still no solution this seems to be a conflict with simpleportal so i guess my issue will not get resolved
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on June 14, 2010, 05:30:32 AM
3 more days and still no solution to my problem.
Why do people bother taking over mods if they can't be bothered to support them.
14 days with no response is ridiculous. Infact its been over 3 weeks as i posted requested information on 22nd may
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on June 15, 2010, 01:47:48 PM
Sorry for my unsupporting of this mod (and all others I have at the moment) over the past... while. I'll get to your support request as soon as possible; I'm trying to replicate it locally now.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: 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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: 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...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kenny01 on June 17, 2010, 07:49:30 PM
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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: adbrad on June 18, 2010, 10:48:12 AM
how have you got the right click permission set
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kenny01 on June 18, 2010, 11:14:03 AM
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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: 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
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kenny01 on June 18, 2010, 03:26:59 PM
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 (http://www.simplemachines.org/community/index.php?topic=238198.msg2242947#msg2242947) have the same problem and no one is capable of answering him.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Liam. on June 19, 2010, 05:15:41 AM
Well, did the mod install without any errors?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kenny01 on June 19, 2010, 05:21:17 AM
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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: gory1963 on August 20, 2010, 05:13:28 PM
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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: faeriedust on August 21, 2010, 10:23:34 PM
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?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: faeriedust on August 23, 2010, 11:14:00 AM
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.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: R.Bourne on August 29, 2010, 02:59:51 AM
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"!
Title: Re: Disable Right Click (v4.0 Released!)
Post by: yakyakyak on August 29, 2010, 04:28:05 AM
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

;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Sabre™ on August 29, 2010, 10:30:55 AM
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 :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: R.Bourne on August 29, 2010, 01:41:16 PM
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 :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: yakyakyak on August 29, 2010, 01:54:51 PM
Sorry, i am not a programmer merely a hoarder of snippets <g>
Title: Re: Disable Right Click (v4.0 Released!)
Post by: 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.:)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Oya on September 01, 2010, 05:28:25 AM
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
Title: Re: Disable Right Click (v4.0 Released!)
Post by: tazgal on September 29, 2010, 01:02:07 PM
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?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: ProtoGT on November 04, 2010, 11:55:42 PM
possible to disable right click just on images ?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: LIFE IS GOOD on January 29, 2011, 07:55:20 AM
I have not read the entire topic, but I maintain that this mod has a bug.
The error is the global moderators, all groups in the forum can be set to "right click", other than the global moderator ... so I then moderators for the above complaints, because they say right click is activated ... unfortunately permissions for global moderators (on the right-click) can not be adjusted.
Thank you for your understanding ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kulfi on February 01, 2011, 01:26:15 AM
Hello,
I just installed this Mod right now but it's not working. I've gone through most of the posts on this thread and followed all the instructions that were given. I manually edited the codes because I was not too sure where the mod would go in the folder itself. But still no go. Any help?

I'm using firefox.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on February 01, 2011, 01:31:24 AM
Hey there Kulfi!

First of all, welcome to SMF! Regarding your question, I apologize to inform you that SMF Modders is no longer supporting their mods, and still waiting for some to be transferred out of their account.

Best Regards,
Labradoodle-360
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kulfi on February 01, 2011, 01:46:28 AM
Quote from: Labradoodle-360 on February 01, 2011, 01:31:24 AM
Hey there Kulfi!

First of all, welcome to SMF! Regarding your question, I apologize to inform you that SMF Modders is no longer supporting their mods, and still waiting for some to be transferred out of their account.

Best Regards,
Labradoodle-360

So there is no support for any of the mods? Is there any other way one can get help on this issue?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: dougiefresh on June 15, 2011, 02:53:01 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and without emulation.  Hope this info helps someone!
Title: Re: Disable Right Click (v4.0 Released!)
Post by: RvG on June 27, 2011, 01:47:44 AM
Firefox 5 is giving you the option to ignore messages then after that you can use the right click !

"Prevent this page from creating addtional dialogues"

Edit: I find that you can disable the message but it will be nice if this can override firefox. :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Monkey50 on September 09, 2011, 12:04:58 PM
how do i stop guest from right clicking
Title: Re: Disable Right Click (v4.0 Released!)
Post by: crelle.pro on September 18, 2011, 10:52:55 AM
You can bypass this mod in firefox very very very easily. Please fix! Its integrated in firefox, this bypass..
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kulfi on October 12, 2011, 06:49:35 PM
My disable the right works but only in the login page and registration. how would i get it to work all over the forum?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on October 12, 2011, 06:54:26 PM
Actually pretty surprised I still have this one. It's by no means maintained. I'm actually going to discontinue it, because there's no way to completely prevent "disabling right click".
Title: Re: Disable Right Click (v4.0 Released!)
Post by: kulfi on October 12, 2011, 06:56:05 PM
well my question was that if it works on those two pages, how would i get it to work on other pages too? not everyone is a techy so won't know how to bypass it. so was wondering.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on October 12, 2011, 06:58:36 PM
To be completely honest, I've never touched any of the code of this mod before, so I'm not sure why it's responding for you how it is.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on November 21, 2011, 03:22:34 PM
I think this mod works pretty good. Thank you.
Can I disable right click for text in posting a message?
It prevents the Spell Check from working if you right click the miss-spelled word for the correct spelling choice.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on November 21, 2011, 03:38:42 PM
What and how does this setting work? Can I get more details?

"Set if you want to disable the mod in determinated actions
Separate each action with commas (login,register,..)"

And...... is there a space after the comma?
I tried to use post,text,posting,spell check
but don't think that is right.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on November 22, 2011, 09:45:07 AM
Labradoodle-360,
If you are no longer supporting or answering questions for this mod then please remove it and any other mods that you no longer support.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on November 22, 2011, 10:34:42 AM
I removed this mod quite some time ago.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on November 22, 2011, 01:21:55 PM
Quote from: Labradoodle-360 on November 22, 2011, 10:34:42 AM
I removed this mod quite some time ago.

I found it right here yesterday
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on November 22, 2011, 01:29:05 PM
Just because it has a topic, and is open does not mean it's still supported. And you could be polite with your previous post.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 13, 2012, 03:56:29 PM
I have now taken over responsibility for this mod.

The Mod has been updated and tested. Now works correctly on 1.1.xx (Tested on 1.1.16 but should work with earlier versions). Also works correctly on 2.0.xx (Tested on 2.0.2).

Tested with Firefox, Chrome, Safari, Opera and IE (All current versions) on a Windows PC.

I have changed some of the wording for the English language installs but if anyone wants to amend or add a new language, please post your language file text strings like this:

// Disable Right Click BY: Chas Large
$txt['arrange_drc'] = 'Deshabilita el click derecho para determinados grupos de usuarios';
$txt['drc_msg'] = 'Mostrar un mensaje personalizado como error';
$txt['drc_message2'] = 'Lo Sentimos, pero el click derecho esta desactivado';
$txt['drc_title'] = 'Escribe el mensaje personalizado (Puedes dejar esto vacio)';
$txt['drc_exception'] = 'Selecciona si quieres deshabilitar el mod en determinadas acciones<br /><span class="smalltext">Separa cada accion con comas (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Click Derecho';
$txt['permissionhelp_right_click'] = 'Este permiso determina si los usuarios de este grupo de miembros pueden usar el click derecho.';


and

// Disable Right Click BY: Chas Large
$helptxt['drc_msg'] = 'Activalo para mostrar un mensaje personalizado cuando el usuario haga el click derecho';
$helptxt['drc_title'] = 'Escribe el mensaje personalizado que sera mostrado, solo funciona s&iacute; la opci&oacute;n "Mostrar un mensaje personalizado como error" esta seleccionada';


Enjoy and please let me know if you're happy with the mod or have any problems.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on January 13, 2012, 06:13:06 PM
Congratulations! Thanks for helping out the mod community :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Apllicmz on January 14, 2012, 01:12:00 AM
Yes nice work
when Update dont forget portuguese and brazilian

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large translate by Candidosa2
$txt['arrange_drc'] = 'Desactivar o bot&atilde;o direito para grupo de membro selecionados';
$txt['drc_msg'] = 'Mostrar uma mensagem personalizada de erro';
$txt['drc_message2'] = 'Desculpe, o bot&atilde;o direito do mouse para o clique est&aacute; desactivado';
$txt['drc_title'] = 'Digite sua mensagem personalizada (Voc&ecirc; pode deixar este vazio)';
$txt['drc_exception'] = 'Definir isto se voc&ecirc; quiser desativar o mod em ac&ccedil;ões seleccionadas<br /><span class="smalltext">Separar cada ac&ccedil;&atilde;o com vírgulas (Entrar,registo,..)</span>';
$txt['permissionname_right_click'] = 'Clique bot&atilde;o direito';
$txt['permissionhelp_right_click'] = 'Esta permiss&atilde;o determina se os utilizadores deste grupo de membro pode fazer o clique direito do bot&atilde;o no seu fórum.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.portuguese_pt.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large Support SMFPT
$helptxt['drc_msg'] = 'Se voc&ecirc; quer mostrar uma mensagem personalizada quando um utilizador sem essa permiss&atilde;o vire à direita, marque esta op&ccedil;&atilde;o';
$helptxt['drc_title'] = 'Digite o mensagem personalizada de que pretende mostrar como a mensagem de erro';
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large translate by Candidosa2
$txt['arrange_drc'] = 'Desactivar o bot&atilde;o direito para grupo de membro selecionados';
$txt['drc_msg'] = 'Mostrar uma mensagem personalizada de erro';
$txt['drc_message2'] = 'Desculpe, o bot&atilde;o direito do mouse para o clique est&aacute; desactivado';
$txt['drc_title'] = 'Digite sua mensagem personalizada (Voc&ecirc; pode deixar este vazio)';
$txt['drc_exception'] = 'Definir isto se voc&ecirc; quiser desativar o mod em ac&ccedil;ões seleccionadas<br /><span class="smalltext">Separar cada ac&ccedil;&atilde;o com vírgulas (Entrar,registo,..)</span>';
$txt['permissionname_right_click'] = 'Clique bot&atilde;o direito';
$txt['permissionhelp_right_click'] = 'Esta permiss&atilde;o determina se os utilizadores deste grupo de membro pode fazer o clique direito do bot&atilde;o no seu fórum.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.portuguese_pt-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large Support SMFPT
$helptxt['drc_msg'] = 'Se voc&ecirc; quer mostrar uma mensagem personalizada quando um utilizador sem essa permiss&atilde;o vire à direita, marque esta op&ccedil;&atilde;o';
$helptxt['drc_title'] = 'Digite o mensagem personalizada de que pretende mostrar como a mensagem de erro';
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large translate by Candidosa2
$txt['arrange_drc'] = 'Desactivar o bot&atilde;o direito para grupo de membro selecionados';
$txt['drc_msg'] = 'Mostrar uma mensagem personalizada de erro';
$txt['drc_message2'] = 'Desculpe, o bot&atilde;o direito do mouse para o clique est&aacute; desactivado';
$txt['drc_title'] = 'Digite sua mensagem personalizada (Voc&ecirc; pode deixar este vazio)';
$txt['drc_exception'] = 'Definir isto se voc&ecirc; quiser desativar o mod em ac&ccedil;ões seleccionadas<br /><span class="smalltext">Separar cada ac&ccedil;&atilde;o com vírgulas (Entrar,registo,..)</span>';
$txt['permissionname_right_click'] = 'Clique bot&atilde;o direito';
$txt['permissionhelp_right_click'] = 'Esta permiss&atilde;o determina se os utilizadores deste grupo de membro pode fazer o clique direito do bot&atilde;o no seu fórum.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.portuguese_pt.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large Support SMFPT
$helptxt['drc_msg'] = 'Se voc&ecirc; quer mostrar uma mensagem personalizada quando um utilizador sem essa permiss&atilde;o vire à direita, marque esta op&ccedil;&atilde;o';
$helptxt['drc_title'] = 'Digite o mensagem personalizada de que pretende mostrar como a mensagem de erro';
]]></add>
    </operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large translate by Candidosa2
$txt['arrange_drc'] = 'Desactivar o bot&atilde;o direito para grupo de membro selecionados';
$txt['drc_msg'] = 'Mostrar uma mensagem personalizada de erro';
$txt['drc_message2'] = 'Desculpe, o bot&atilde;o direito do mouse para o clique est&aacute; desactivado';
$txt['drc_title'] = 'Digite sua mensagem personalizada (Voc&ecirc; pode deixar este vazio)';
$txt['drc_exception'] = 'Definir isto se voc&ecirc; quiser desativar o mod em ac&ccedil;ões seleccionadas<br /><span class="smalltext">Separar cada ac&ccedil;&atilde;o com vírgulas (Entrar,registo,..)</span>';
$txt['permissionname_right_click'] = 'Clique bot&atilde;o direito';
$txt['permissionhelp_right_click'] = 'Esta permiss&atilde;o determina se os utilizadores deste grupo de membro pode fazer o clique direito do bot&atilde;o no seu fórum.';
]]></add>
    </operation>
</file>
<file name="$languagedir/Help.portuguese_brazilian-utf8.php" error="skip">
    <operation>
        <search position="end" />
            <add><![CDATA[
// Disable Right Click BY: Chas Large Support SMFPT
$helptxt['drc_msg'] = 'Se voc&ecirc; quer mostrar uma mensagem personalizada quando um utilizador sem essa permiss&atilde;o vire à direita, marque esta op&ccedil;&atilde;o';
$helptxt['drc_title'] = 'Digite o mensagem personalizada de que pretende mostrar como a mensagem de erro';
]]></add>
    </operation>
</file>

Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 03:09:33 AM
Quote from: Joomlamz on January 14, 2012, 01:12:00 AM
Yes nice work
when Update dont forget portuguese and brazilian
...

Thanks for that, I'll add that in next time :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 03:10:06 AM
Quote from: Labradoodle-360 on January 13, 2012, 06:13:06 PM
Congratulations! Thanks for helping out the mod community :)

Always happy to help :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 05:30:39 AM
Updated with Portuguese and Brazilian translations, thanks to Joomlamz.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on January 14, 2012, 08:23:47 AM
Great to hear you took over the mod Chas. Congrats.

Do I need to remove the previous version or can I over install.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on January 14, 2012, 10:03:18 AM
I was about to uninstall version 4.0 but during the test prior I received this:

Replace    ./Sources/ManageSettings.php    Test failed
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 10:40:20 AM
Quote from: davegior on January 14, 2012, 08:23:47 AM
Great to hear you took over the mod Chas. Congrats.

Do I need to remove the previous version or can I over install.

Sorry, missed your post. Didn't have notify set, have now though.

Yes, always uninstall a mod unless the readme says you can over install. Very few mods do an update due to possible errors in the uninstall. (and anyway, I'm just too lazy to program that in :D )

Quote from: davegior on January 14, 2012, 10:03:18 AM
I was about to uninstall version 4.0 but during the test prior I received this:

Replace    ./Sources/ManageSettings.php    Test failed

Most likely, another mod has added code into the same area and therefore the uninstaller cannot find the disable right click code to remove it.

Post your ManageSettings.php file here as an attachment and I'll clean up the code so you can install the latest version.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on January 14, 2012, 11:52:06 AM
Thank you very much Chas.
Question, if the code is cleaned up, will effect the mod that added code to it?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 12:08:08 PM
Quote from: davegior on January 14, 2012, 11:52:06 AM
Thank you very much Chas.
Question, if the code is cleaned up, will effect the mod that added code to it?

File cleaned of old Disable Right Click code attached.

In answer to your question, no, it shouldn't but it might :-\ The area where this erroneous code resided is an area for modders to place items of code. We're told to add it in the same place, i.e., under another piece of identifying code so when mod #1 placed code there, it's correct. Mod #2 is installed and consequently pushes the code for mod #1 down. Now the uninstall procedure for mod #1 looks for the same place as where it installed the code in the first place but since it was installed, mod # 2 has changed things and therefore mod # 1 can't find the original code where it was originally placed and throws an error. I hope that clarifies things for you. Of course, adding the new version may give uninstall errors for the two other mods you have which have placed code in that area.

The developers are working on new ways to solve this issue and one day adding mods will (hopefully) be totally transparent to the original source code so uninstalls should always work. When that day will be is anyone's guess right now but in the meantime if you get any such problems with any of my mods, just post on the support topic like here and I'll sort it out for you :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on January 14, 2012, 12:12:18 PM
Thanks again Chas, I'll give a shot and post the results.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on January 14, 2012, 12:12:54 PM
@Chas - Using hooks eliminates the problem of conflicting modifications. Most of the prominent arrays that mods call, already have hooks.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 14, 2012, 12:17:52 PM
Quote from: Labradoodle-360 on January 14, 2012, 12:12:54 PM
@Chas - Using hooks eliminates the problem of conflicting modifications. Most of the prominent arrays that mods call, already have hooks.
Yup, new that ;)

Is there one for ManageSettings where code normally follows

// Mod authors, add any settings UNDER this line.......
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on January 14, 2012, 12:18:29 PM
Yeah, there is. I'm going to shoot you a PM.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on January 14, 2012, 12:37:43 PM
Works great Chas, thank you so much for your help.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: StreamX on January 21, 2012, 11:12:32 AM
Russian-utf8
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click BY: Chas Large
$txt['arrange_drc'] = 'Отключение правой кнопкой мыши для конкретных групп пользователей';
$txt['drc_msg'] = 'Показать пользовательские сообщения, как ошибка';
$txt['drc_message2'] = 'Извините, но правая кнопка мыши отключена';
$txt['drc_title'] = 'Написать собственное сообщение (Вы можете оставить это пустое)';
$txt['drc_exception'] = 'Выберите, если вы хотите отключить мод в определенных действиях<br /><span class="smalltext">Отделите каждое действие запятыми (login,register,..)</span>';
$txt['permissionname_right_click'] = 'Щелкните правой кнопкой мыши';
$txt['permissionhelp_right_click'] = 'Это разрешение определяет, могут ли пользователи в этой группе использовать правую кнопку мыши.';
]]></add>
</operation>
</file>
<file name="$languagedir/Help.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable Right Click BY: Chas Large
$helptxt['drc_msg'] = 'Включить для отображения пользовательского сообщения, когда пользователь щелкает правой кнопкой мыши';
$helptxt['drc_title'] = 'Написать собственное сообщение, которое будет отображаться, работает, только если выбран "Показывать собственное сообщение"';
]]></add>
</operation>
</file>
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 21, 2012, 12:16:34 PM
Thanks StreamX will include in next update :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on January 26, 2012, 12:32:51 PM
Russian Translation included now :)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on March 22, 2012, 09:18:29 AM
I posted this question in the SMF 2.x Support thread and I was told to post my question in this thread.

Error Log Undefined Error in subs.php

I'm running SMF 2.0.2. receiving "8: Undefined index: html_headers" in Subs.php for all Guests on Avatars and Images on Line 4306 which is ==>4306:        $context['html_headers'] .= '
Subs.php is attached.
Mods installed are:
Improved Webmaster Email Settings 1.1
SmileyLimit 1.1
SMF 2.0.1 Update
Stop Spammer 2.3.9
Show Joined, Location, Username In Topic View 1.0
httpBL 2.5.1
Add Facebook Like to Posts 1.1 (disabled)
SMF 2.0.2 Update
Disable Right Click 4.1.0
Simple Audio Video Embedder 2.0.4
Search Focus Dropdown 1.6.1
Alt Characters v1.7

Any help would greatly be appreciated.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on March 22, 2012, 05:07:58 PM
Quote from: davegior on March 22, 2012, 09:18:29 AM
I posted this question in the SMF 2.x Support thread and I was told to post my question in this thread.

Error Log Undefined Error in subs.php

I'm running SMF 2.0.2. receiving "8: Undefined index: html_headers" in Subs.php for all Guests on Avatars and Images on Line 4306 which is ==>4306:        $context['html_headers'] .= '
Subs.php is attached.
Mods installed are:
Improved Webmaster Email Settings 1.1
SmileyLimit 1.1
SMF 2.0.1 Update
Stop Spammer 2.3.9
Show Joined, Location, Username In Topic View 1.0
httpBL 2.5.1
Add Facebook Like to Posts 1.1 (disabled)
SMF 2.0.2 Update
Disable Right Click 4.1.0
Simple Audio Video Embedder 2.0.4
Search Focus Dropdown 1.6.1
Alt Characters v1.7

Any help would greatly be appreciated.
Can you post a copy of your subs.php file (as an attachment) here so I can look at it please?

BTW, the mod is at 4.1.2 right now
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on March 22, 2012, 05:25:08 PM
Thanks Chas, subs.php has been attached....
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on March 22, 2012, 06:38:56 PM
In between my post and yours I've confirmed this bug. The code is correct so I can't work out at the moment why this error is occurring. Similar code is used elsewhere with no errors.

My best guess is that it's to do with Guests permissions. I need to consult with a colleague before I can come up with a fix.

Having said all that, it won't stop the forum running correctly, you error log will just fill up a bit when guests try to right click. Other than space in your error log being taken up there should be no further impact.

I'll post a fix just as soon as I'm able.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: davegior on March 25, 2012, 03:26:44 PM
I was about to uninstall version 4.10 and install the latest version but received many Test failed and skip file errors.
I am reluctant to uninstall it. I have attached the error image.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Matthew K. on March 25, 2012, 04:27:57 PM
Most likely mods are conflicting since you installed it. You could manually uninstall it.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Venera on April 06, 2012, 09:08:51 AM
Hi,

if I try to right click as a gust in error log is:

http://www.***.com/index.php?action=dlattach;attach=1080;type=avatar8: Undefined index: html_headersDatoteka: /home/***/public_html/Sources/Subs.php
Linija: 4586

I have Simple Portal and some avatars in blocks. Avatars make problems...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: XHIBIT911 on July 23, 2012, 04:08:00 PM
This does not work for PortaMx. The enable button doesnt show anywhere...Does anyone have a workaround because Im uninstalling this its not helping at all
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on July 24, 2012, 01:05:09 AM
Quote from: XHIBIT911 on July 23, 2012, 04:08:00 PM
This does not work for PortaMx. The enable button doesnt show anywhere...Does anyone have a workaround because Im uninstalling this its not helping at all
Sorry, never used that mod and my mod was only designed to work with the basic SMF software.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: נєяιкσ σиє on August 23, 2012, 03:43:18 AM
Hi all!

With firefox 14 there is the possibility to block the right click pop up message and then the right click works again.

Can you fix it?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on August 23, 2012, 03:49:11 AM
Quote from: Jeriko_One on August 23, 2012, 03:43:18 AM
Hi all!

With firefox 14 there is the possibility to block the right click pop up message and then the right click works again.

Can you fix it?

I'll see what I can do. Can you tell me how you block the pop-up in FF 14?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Tatek on March 27, 2013, 02:46:08 PM
Please, where I should go to define a options of this mod, because there's nowhere visible, even it shows that is normally installed... where I should look to arrange options?? Thanx!!
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Chas Large on March 27, 2013, 03:45:59 PM
There are no options, when installed the RIGHT CLICK of the mouse does not work but you have to set the permission in members permissions.

[EDIT] My Bad, sorry.

The options are in Admin > Configuration > Miscellaneous.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on March 27, 2013, 03:53:44 PM
Quote from: Chas Large on August 23, 2012, 03:49:11 AM
I'll see what I can do. Can you tell me how you block the pop-up in FF 14?

The same way other users will: after a popup, the browser will ask if you want to suppress further popups from the site. And the script has no control over that happening.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Hristo on March 27, 2013, 04:43:45 PM
Or most probably he refers to this addon:
https://addons.mozilla.org/en-us/firefox/addon/righttoclick/
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on March 27, 2013, 04:46:38 PM
Well... Chrome (for YEARS) has given users the option to disable popups after the first one. I thought last time I used Firefox that it had the same option, without any add-ons being required (since I've never used that add-on)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Hristo on March 27, 2013, 05:39:12 PM
It's same with Firefox, but there is an option to block the right click without pop-up showing, and that addon works in these (and all other) cases.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on March 27, 2013, 05:42:03 PM
It's entirely futile, of course since I can bypass it without a plugin ;)
Title: Re: Disable Right Click (v4.0 Released!)
Post by: dimspace on March 27, 2013, 07:32:58 PM
Quote from: Arantor on March 27, 2013, 03:53:44 PM
Quote from: Chas Large on August 23, 2012, 03:49:11 AM
I'll see what I can do. Can you tell me how you block the pop-up in FF 14?

The same way other users will: after a popup, the browser will ask if you want to suppress further popups from the site. And the script has no control over that happening.

Most of the time opera doesnt even bother telling me about pop ups its blocked :S depends on its mood..

Saying that, not sure why im in here. Never understood no-right click scripts. One, they are easily disabled, they are intrusive, and they achieve nothing. Its like these sites that say they can protect your photos from theft.. they cant.. :D
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on March 27, 2013, 08:18:34 PM
Ah, but there's a difference between a popup and an alert. A popup is a JS-created window, this notification is not.

QuoteOne, they are easily disabled, they are intrusive, and they achieve nothing. Its like these sites that say they can protect your photos from theft.. they cant..

Bingo. You show me a site that has them, I'll show you that it can be bypassed either modestly or very easily.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Hristo on March 27, 2013, 08:37:55 PM
Indeed, they are annoying and nothing more. And in this exact case, frankly I can't see what benefit can be achieved if such function is used on a forum. I see much more potential harm than good.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: dimspace on March 27, 2013, 09:07:42 PM
Quote from: Arantor on March 27, 2013, 08:18:34 PM
Ah, but there's a difference between a popup and an alert. A popup is a JS-created window, this notification is not.

QuoteOne, they are easily disabled, they are intrusive, and they achieve nothing. Its like these sites that say they can protect your photos from theft.. they cant..

Bingo. You show me a site that has them, I'll show you that it can be bypassed either modestly or very easily.

I did actually spend a few hours one bored winters afternoon, visiting sites that said they could protect your images, for anything up to about $200 and "stealing" their demo images just to make a point. Most of those sites thankfully have now gone.

Besides, microsoft made it easy from windows 7 with the snipping tool.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on March 27, 2013, 09:10:11 PM
Heh. Wait until you do it with streaming images and a Flash client (where right click actually doesn't work), then they suddenly realise that it can be done quite easily...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Tatek on March 29, 2013, 04:53:57 AM
Quote from: Chas Large on March 27, 2013, 03:45:59 PMThe options are in Admin > Configuration > Miscellaneous.

Thanx, Finnaly found!...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Crow26 on September 11, 2013, 09:50:17 AM
Hi the thing is that I install this mod (no errors and emulating 2.0.2) but once installed it does not come out in the administration to set in Miscellaneous. I tried installing it manually with the parse and still have the same problem.


Not the first time it happens this to install a mod.

I would appreciate if someone would lend a hand.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kimmie on June 10, 2014, 03:06:32 PM
Does this work on 2.0.7?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on June 10, 2014, 03:17:56 PM
Considering how easy it is to bypass such a measure, does it matter whether it works or not?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kimmie on June 10, 2014, 04:21:53 PM
Well yes it does matter, that is why I asked. What a pissy response. I don't go around viewing source pages so I don't know how easy this would be to bypass..lol. All I want is something that keeps the source code from being viewed.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on June 10, 2014, 04:22:43 PM
Preventing the source from being viewed? IMPOSSIBLE.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Kimmie on June 10, 2014, 04:27:41 PM
And you expect EVERYONE to know that?  My understanding is, if they can't right click on the page, they can't get to that menu. All you had to do was explain that there are other ways around that.

From now on, please do not respond to me unless you can be nice. Remember, we can't all be as smart as you.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: mashby on June 10, 2014, 04:29:31 PM
According to the mod's description, it will work on 2.0.x. But it certainly won't do what you might think. In fact, it actually disrupts more than right-click>Copy. There's a lot of fun in the right-click in most browsers. And View Source isn't only available in the right-click option. And tools like Firebug make it pretty to inspect elements on the page. Are you trying to not have people copy your content?
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Antechinus on June 10, 2014, 04:43:33 PM
Kimmie, TBH tricks like this mod only stop non-technical people. Anyone with a bit of (fairly common) knowledge can get around them in no time. What's more, they'll probably be so annoyed at losing some of their most commonly used functionality that they'll make a point of getting around it, just to show they can (I speak from experience here :D ).
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Arantor on June 10, 2014, 04:47:24 PM
The thing is, there are so many ways around the right click that you cannot prevent it. I was trying to point out, with emphasis, just how impossible it is to actually do what you're asking. If the source gets to the browser, it must be able to be accessed and there's nothing you can do to stop that.

Most browsers expose View Source via their Tools menu. Or Ctrl-U. Or F12 for the developer panel.

Do I expect everyone to know that? No. But here's the thing. People who don't care, don't worry about it and therefore neither need to use the workarounds nor try to right click. And the people who do care long ago figured out how to get around it anyway.

Being as smart as me? Haha. Sorry, I'm not smart. I'm just very, very knowledgeable which is something quite different. However... I would hope that someone smart enough to ask questions would also be smart enough to listen to someone who understands this stuff and doesn't need to belittle their time investment. But I've wasted enough time trying to help people here, I'm largely immune to it.
Title: Re: Disable Right Click (v4.0 Released!)
Post by: SoLoGHoST on June 11, 2014, 10:05:55 PM
Disabling Right click is a thing of the past.  It's about as dusty as a Vinyl Record.  Just my 2 cents...
Title: Re: Disable Right Click (v4.0 Released!)
Post by: okoy on August 09, 2014, 12:32:22 AM
need help with this guys
"Fatal error: Cannot redeclare disable_right_click() (previously declared in /home/detikmed/public_html/Sources/Subs.php:5094) in /home/detikmed/public_html/Sources/Subs.php on line 5254"

it shows after i install "disable right click" packages.

and now i can't open my forum
Title: Re: Disable Right Click (v4.0 Released!)
Post by: Shades. on April 25, 2021, 09:34:36 PM
Was getting html_header errors and couldn't figure it out: https://www.simplemachines.org/community/index.php?topic=577533.msg4087421#msg4087421

But it seems to be in this mods code in Subs.php (highlighted in red below)

Quote// Disable Right Click BY: Chas Large
function disable_right_click()
{
    global $context, $modSettings, $txt;

    $do_drc = true;   
                  
    // Maybe I want to add an exception, well verify if you don't want the mod in a determinated action
    if (!empty($modSettings['drc_exception'])){
    $actions = explode(',', $modSettings['drc_exception']);   

    if (isset($_REQUEST['action']) && (in_array($_REQUEST['action'], $actions)))
       $do_drc = false;
    }

    // First check if we want a message 
    if (!empty($modSettings['drc_msg']) && $do_drc){

    // Define the message
    $drc_message = ((empty($modSettings['drc_title'])) ? $txt['drc_message2'] : $modSettings['drc_title']);    
   
    // This show a message if the "Show Message" option is selected
    $context['html_headers'] .= '
       <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="'.$drc_message.'";
///////////////////////////////////
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>';
    }

    if (empty($modSettings['drc_msg']) && $do_drc)
    {
   
    // This hide the right click without a message, only if the "Dont Show Nothing" option is selected
   
    $context['html_headers'] .= '
       <script language=JavaScript>
<!--
//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
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>';     
    }
}