News:

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

Main Menu

Disable Right Click (v4.0 Released!)

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

Previous topic - Next topic

ccbtimewiz

Quote from: Dannii on May 10, 2008, 11:21:13 PM
Stupid, stupid mod! Shame on you all.

... >>;

The modification is actually quite interesting.

Dante_Arg

Can this mod work with an NOT default theme? i ve a spanish forum with theme, and the mod dosent work :(

Nibogo

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 ;)

DadL

Installed it but why not working?

SMF 1.1.5


Nibogo

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"

Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Nibogo

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

lorogarcia

Hello

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

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


lorogarcia

Sorry, already operates^^
Translated file and he cleaned the cache, I do not know if it was so

KD4FBI

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
Mickey


msvdm

this mod dont work in firefox ;(

Sabre™

hmmm.
Its working fine in my Firefox browser
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


msvdm


dejiman

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
IS YOUR DESTINY ELECETED?

Let's know here

ELECTED DESTINIES

Nibogo

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

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

dejiman

PLease The same is still the issue.   PLease check my website now to confirme  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
IS YOUR DESTINY ELECETED?

Let's know here

ELECTED DESTINIES

dejiman

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.
IS YOUR DESTINY ELECETED?

Let's know here

ELECTED DESTINIES

Advertisement: