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.
DojoEditor
Looks cool in the screenshot but when I click the Account tab I get this...
----------------------------------------------------------------------
Fatal error: Cannot redeclare kses() (previously declared in /path/to/forum/extensions/LatestBlog/kses-0.2.2/kses.php:33) in /path/to/forum/extensions/DojoEditor/library/kses.php on line 33
----------------------------------------------------------------------
----------------------------------------------------------------------
Fatal error: Cannot redeclare kses() (previously declared in /path/to/forum/extensions/LatestBlog/kses-0.2.2/kses.php:33) in /path/to/forum/extensions/DojoEditor/library/kses.php on line 33
----------------------------------------------------------------------
0
This discussion has been closed.
Comments
//Get ride of all Formatters, like the plain text one. $Context->StringManipulator->Formatters = array(); $Context->StringManipulator->GlobalFormatters = array(); //Add the html formatter $DojoEditorFormatter = $Context->ObjectFactory->NewObject($Context, "DojoEditorFormatter", $DojoEditor_allowed_tags, $DojoEditor_allowed_protocols); $Context->StringManipulator->AddManipulator("DojoEditor", $DojoEditorFormatter); //Make my html formatter the default formatter (In case you have some message previously made in plain text) $Context->Configuration['DEFAULT_FORMAT_TYPE'] = "DojoEditor";
That is what I use, but I havn't test it yet with role that havn't html permission.
if (!function_exists('kses')) require(DOJO_EDITOR_PATH . 'library/kses.php');
I just uploaded the new package
In default.php
Look for this code
$Head->AddString('<script type="text/javascript">dojo.require("dojo.widget.Editor");</script>');
and replace it with
$Head->AddString('<script type="text/javascript">dojo.require("dojo.widget.Editor2");</script>');
then look for this code
$DiscussionForm->CommentFormAttributes = ' dojoType="Editor" items="textGroup;|;justifyGroup;|;formatBlock;|;linkGroup;"'; $DiscussionForm->DiscussionFormAttributes = ' dojoType="Editor" items="textGroup;|;justifyGroup;|;formatBlock;|;linkGroup;"';
and replace it with
$DiscussionForm->CommentFormAttributes = ' dojoType="Editor2" htmlEditing="true" shareToolbar="false" toolbarAlwaysVisible="true" focusOnLoad="true" minHeight="15em"'; $DiscussionForm->DiscussionFormAttributes = ' dojoType="Editor2" htmlEditing="true" shareToolbar="false" toolbarAlwaysVisible="true" focusOnLoad="true" minHeight="15em"';
the Editor2 has no way of adding images yet
thanks in adavnce
function Parse($String, $Object, $FormatPurpose) { if ($FormatPurpose == FORMAT_STRING_FOR_DISPLAY) { $String = kses($String, $this->allowed_tags, $this->allowed_protocols); return = preg_replace('/<youtube>([\d\w-_]+)<\/youtube>/i', ..... } return $String;
And add to the list of allowed tag:
$AllowedTag = array( 'youtube' => array(), ...
After installing, I get a blank screen (no source, nothing...) and have to manually go into conf/extension.php and delete the line for the extension to get the forum back. I'm wondering because I was getting the same exact error with fckeditor as it req'd. 1.1
I followed the readme exactly.
chmod -Rv 0777 DojoEditor/
Extensions installed:
Account Pictures 1.0 Maurice Krijtenberg www.krijtenberg.nl
Attachments 1.4 Maurice (Jazzman) Krijtenberg
Category Jumper 1.0 Mark O'Sullivan lussumo.com/docs
Comment Protection 2.0 Mark O'Sullivan lussumo.com/docs
Discussion Filters 1.0 Mark O'Sullivan lussumo.com/docs
Discussion Overview 1.1 Maurice Krijtenberg www.krijtenberg.nl
Hide Success 1.0 Mark O'Sullivan lussumo.com/addons
Html Formatter 1.3 SirNotAppearingOnThisForum
IP History 1.0 Mark O'Sullivan lussumo.com/docs
Legends 1.0 Mark O'Sullivan lussumo.com/docs
LiveSearch 1.0 Maurice Krijtenberg www.krijtenberg.nl
New Applicants 1 Mark O'Sullivan lussumo.com/addons
Page Management 2.3 SirNot lussumo.com/addons
Panel Lists 1.0 Mark O'Sullivan lussumo.com/docs
Quotations 1.5 Joel Bernstein lussumo.com/community/discussion/2069
Role History 1.0 Mark O'Sullivan lussumo.com/docs
SpellChecker 1.0 ithcy null
Yshouter 0.1 aj lussumo.com/addons
Does it need to change files outside of the DojoEditor folder? If so, which ones? (Might be a permission problem?)
Thanks.
(I can't upgrade because if I do It breaks one of the extensions I have installed.)
Thanks, Dinoboff .
cheers
I listed all of the extensions I'm using above, think it's a conflict with one of those?
I'd like to go through the list and start removing extensions, but a few of them gave me big trouble in little china getting them installed and working.
I thought I read in another thread that it breaks with userinfo tooltip? Is that true?
much thanks.
It's like once it's enabled, it prevents even the first parts of vanilla from firing. It's really strange that there are no errors or any notifications that something is wrong.
Is there something I could add to up the error reporting level or something? It seems like that wouldn't work either, though, because no page events are getting fired...
Sucks because this would be such a great addition to the forum for the non-techies to be able to spruce up their posts.
I tried fck editor, but got the same result.
I keep hoping that ithcy will come about with his chatbox (chat in the panel, like shoutbox), so I can get rid of my crappy extension and update vanilla...
I'm going to try to mirror the site, and setup a testing site to see if I can either get the chatbox to work with 1.0.1 or get the editor to work with 1.0 and the current extensions.
Thank you.
cheers
Go into DojoEdito/settings.php and replace:
$Context->SetDefinition('DojoEditor', '(X)HTML');
by:
$Context->Dictionary['DojoEditor'] = '(X)HTML';