Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
DefaultFormatter
DefaultFormatter
0
Comments
include($Configuration['SomePath'] . 'someFile.php');
and that $Configuration['SomePath'] is set in an other file, you should add at the top of the file:if (!defined('IN_VANILLA')) exit();
or you extension will be vulnerable when register_globals is on.By the way, I have a problem: I don't know (yet) how to hide an item in the preference form of the account.php page.
So whether users will choose to display the selector, his/her choice will be overriden.
I'll try to overrive the AddPreference function of the PreferencesForm class...
Would there be a way to set different default formatters for different roles? I'm looking for a way to force BBCode for everyone, except for administrators who could choose between BBCode and HTML.
You should find
- Can format the comments with any formatter
- Can see the formatter selector
- Will see the ??? formatter pre-selected
in the permissions list.Can format the comments with any formatter
to
Ignore DefaultFormatter extension for this role, and those few related settings below
Because it's simply what this check box does.
Gonna wait a bit for other glitches before the change (and maybe a better idea to replace Can format the comments with any formatter).
Notice: Undefined index: PERMISSION_FORMATTERS_ALL in /home/robom3/public_html/forum/extensions/DefaultFormatter/default.php on line 46
Notice: Undefined index: PERMISSION_FORMATTERS_Text in /home/robom3/public_html/forum/extensions/DefaultFormatter/default.php on line 51
Notice: Undefined index: PERMISSION_FORMATTERS_Text in /home/robom3/public_html/forum/extensions/DefaultFormatter/default.php on line 51
Notice: Undefined index: PERMISSION_FORMATTERS_Html in /home/robom3/public_html/forum/extensions/DefaultFormatter/default.php on line 51
Notice: Undefined index: PERMISSION_FORMATTERS_SHOW in /home/robom3/public_html/forum/extensions/DefaultFormatter/default.php on line 64
I'm really not good with a lot of code. Is there something I need to fix?
But what line were you missing? I don't quite understand...