Not signed in (Sign In)

Categories

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    Added an extension to enable FCKeditor in Vanilla
    you can download it from the Entensions page
    • CommentAuthorjross
    • CommentTimeSep 30th 2006
     # 2
    should we take off the ability to Format comments as Text Html Markdown BBCode ?

    I tried implementing this - but my message box disappeared altogether.
  2.  # 3
    i have the html formatter addon installed. There is a code there that disabled the html formatter.
    can u post the sourcecode of the page your implementing it on, start a new discussion and post the sourcecode.

    btw did u download the latest version
    •  
      CommentAuthora_j
    • CommentTimeOct 2nd 2006
     # 4
    Having problems here also:

    According to the readme:

    1) /path/to/vanilla/extensions/FCKeditor/default.php
    2) Download FCKeditor from (http://www.fckeditor.net/download/)
    3) unzip it in /path/to/vanilla/js/FCKeditor/
    the path to fckconfig.js should look like that: /path/to/vanilla/js/FCKeditor/fckconfig.js


    1) There is no "fckconfig.js" in the zip file, however there is a vanillaconfig.js.
    2) When default.php is uploaded to extensions>FCKeditor>default.php, and the rest of the files are put into vanilla/js/FCKeditor (as per the readme), the extension does not work [failed ot open stream... extensions/FCKeditor/default.php on line 13 -- which is a call for settings.php].
    3) When the other files (kses, settings, fckstyles) are deleted out of vanilla/js/FCKeditor/(left vanillaconfig.js, and copied and renamed it to fckconfig.js in vanilla/js/FCKeditor/) and placed into vanilla/extensions/FCKeditor/ I get a "Call to undefined function: setdefinition()".

    I have a bunch of other extensions enabled, but this error doesn't look like it's being caused by another extension.

    Thanks.
    • CommentAuthorithcy
    • CommentTimeOct 2nd 2006
     # 5
    you're doing it all weird.
    All the files in the archive you get from the addons site go into /extensions/FCKeditor.
    Then you have to download the actual FCKeditor from http://www.fckeditor.net/download/
    extract THAT archive into /your_vanilla_root/js/FCKeditor.
    fckconfig.js will now be in /your_vanilla_root/js/FCKeditor. don't touch anything in that folder.
  3.  # 6
    Looks like i have to write another readme and clarify that you have to download two different files from two different locations.
    plus itchy i think ur way of adding the css is the best. little more work for admins, but it works best. It will be the admins job to make the editor.css same as vanilla.css. we just provide them with a sample css which they will have to change.
    thats fair i think.
    •  
      CommentAuthora_j
    • CommentTimeOct 3rd 2006
     # 7
    Sorry ithcy, I was just following the instructions I found in the readme. There are a lot of Homer Simpsons out here... "Shiny buttons, mmmmmmmmmm..."

    I followed your instructions, but am still getting a "call to undefined function: setdefinition()
    [$Context->SetDefinition('FCKeditor', '(X)HTML')] from line 3 of extensions/FCKeditor/settings.php

    Thanks.
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 3rd 2006
     # 8
    You have to update to vanilla 1.0.1
    • CommentAuthorithcy
    • CommentTimeOct 3rd 2006
     # 9
    hahaha@a_j

    MySchizoBuddy... if it's done that way, the problem is, the user may have a style which doesn't match the forum style. so the user's comment box may look nothing like the global comment list.

    I think ajax preview is the best way to get this accomplished, i just haven't had time to look into it yet.
  4.  # 10
    well itchy its the job of the admin to change the included one so it matches its forum style. that should take the admin about 1 min to do. Ajax previews will be nice. For now let the forum creators do some work as well

    Tinymce gives you a template file to edit for all your previews, so in their its only a matter of making the template use vanilla tags. i couldn't find the template in FCKeditor that it uses for previews.

    Dinoboff thanks for the heads up.
    • CommentAuthorithcy
    • CommentTimeOct 4th 2006
     # 11
    one more time...
    most vanilla installs let users have stylesheets which are different from the forum default. How are you going to tell fckeditor to use the user's stylesheet instead of the one the admin has customized?
    If you just point fckeditor at the user's stylesheet, you get background images and incorrect DOM inside the comment box.
    This is no solution.
  5.  # 12
    Oh i didn't know that users can have different stylesheets than forum ones.
    looks like a dead end. :(

    one more thing. fckeditor preview page is generated somewhere, we can change it so it generates the same dom as the vanilla forum and then if we link to user style sheet that would work.
    I think?

    Tinymce allows u to change the preview page. I couldn't find how to change it in fckeditor.

    Its becoming more and more problematic. plus users want youtube in fckeditor as well. one way is to create a custom plugin for fckeditor and make a youtube button. that is a lot of work as well
    • CommentAuthorithcy
    • CommentTimeOct 4th 2006 edited
     # 13
    yeah, i looked into it. there is no real way to change it in FCK without changing the javascript in a lot of places, and if you've looked at the FCK javascript you know it's a huge nightmare. the editing takes place inside a table cell, and all the javascript refers to that table cell, and of course there are no tables in vanilla comments.

    this is why ajax preview would be best.

    i think making the youtube button might not be so bad. of course they can also switch to source and paste in the youtube link.
  6.  # 14
    yeah i can do that, but the code doesn't get posted cause of embed tags being stripped
    • CommentAuthorithcy
    • CommentTimeOct 4th 2006
     # 15
    ah yeah
    let's just use Xstandard and forget about FCK ;)
  7.  # 16
    hahahahah
    we cal also go with spaw and openwysiwyg
    in the end each will have its own mess

    how about Xinha
    we can try that
    • CommentAuthorithcy
    • CommentTimeOct 4th 2006 edited
     # 17
    hahaha, yeah.

    //oh, Xinha? maybe.
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 4th 2006 edited
     # 18
    About the youtube button, there is a solution to allow flash in the editor but let kses strip out most of the object and embed tags.

    Make a button that create the flash code that would start by<object youtube="####"...
    or
    <object id="####"...
    and add to kses allowed tags ...
    'object' => array('id' => 1),
    ...

    You just need to add to the parser:$string = preg_replace('/<object id="([\d\w-_]+)"><\/object>/i',....
    return preg_replace('/<object><\/object>/i', '', $string);
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 4th 2006
     # 19
    About the style problem, with tinyMCE you can specifie where to find the css file for the UI and the content area, the extension could try to find these files in the style folder and if there are any, use the ones that come with extension.
    • CommentAuthorithcy
    • CommentTimeOct 4th 2006
     # 20
    the problem with that, Dinoboff, is the same one I explained above.

    It's not a problem to tell FCK to use the user's stylesheet in the editor area. The problem is that the DOM for the FCKeditor "editor" page which sits inside the iframe is totally different from the DOM inside a vanilla comment. The CSS will not apply unless you use a custom template for the editor page and recreate the vanilla comment DOM, which leads to two problems:
    1) i don't know if it's possible at all to do that with FCK
    2) if the user is using a different theme, it's possible that the DOM will be totally different from the standard vanilla DOM. so how do we tell FCK to use the proper template that matches the user's theme?
  8.  # 21
    Dinoboff thanks. FCkeditor already has a flash linker. give it the youtube flash file and width and height and it generates the object code.
    I was reading up on youtube code and found out that if you want to use youtube on myspace. u only include the embed tags, not the object tag. plus google video gives u embed tags as well. So i guess i'll make it to allow only embed tags, which i'm assuming is less security prone cause it doesn't need param's

    thanks you Dinoboff have been a great help
  9.  # 22
    Ok youtube plugin for FCkeditor is all done
    now working on Google video plugin

    What I'm doing is creating a generic video plugin that has tabs for youtube and google video. which ever one people want to use. Later it can be extended to include other videos like ones from Yahoo etc, plus WMV and avi ones too

    I'm going to duplicate the youtube code and make it work for google video. later someone can optimize the code to use conditional statements for subtle differences between the two.
    •  
      CommentAuthorrobb
    • CommentTimeOct 10th 2006 edited
     # 23
    After I've unchecked the FCKeditor on the Extensions page, all of my posts that had prior formatting now looks like ugly HTML code. Is there any way to get rid of this? I'd like to either get the html to be interpreted as HTML or get rid of all the ugly code altogether.

    edit: Ok, so when I click on a post that has ugly code and edit it to format comments as Html, then it goes back to normal. but it's going to be a huge pain to do this for every single message, so is there an easy way to convert all of the posts that FCKeditor htmlized and make the html in them recognizable?
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006 edited
     # 24
    From line 58 of extensions/FCKeditor/default.php, replace:$Context->StringManipulator->Formatters = array();
    $Context->StringManipulator->GlobalFormatters = array();
    $Context->Configuration['DEFAULT_FORMAT_TYPE'] = "FCKeditor";
    $FCKeditorFormatter = $Context->ObjectFactory->NewObject($Context, "FCKeditorFormatter", $FCKeditor_allowed_tags, $FCKeditor_allowed_protocols);
    $Context->StringManipulator->AddManipulator("FCKeditor", $FCKeditorFormatter);
    by:$FCKeditorFormatter = $Context->ObjectFactory->NewObject($Context, "FCKeditorFormatter", $FCKeditor_allowed_tags, $FCKeditor_allowed_protocols);
    $Context->StringManipulator->AddManipulator("FCKeditor", $FCKeditorFormatter);

    if ( $Context->Session->UserID > 0 && $Context->Session->User->Permission('PERMISSION_HTML_ALLOWED') ) {

    //Make Kses formater the only formatter available to post a new comment or to edit an old one
    $Context->Configuration['DEFAULT_FORMAT_TYPE'] = "FCKeditor";
    $Context->Session->User->DefaultFormatType = "FCKeditor";
    $Context->Session->User->Preferences['ShowFormatSelector'] = 0;

    }
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006 edited
     # 25
    Line 18 should be also replace by:if( $Configuration["FCKEDITOR_LOGINREQUIRED"]===false ||
    ($Context->Session->UserID > 0 &&
    $Context->Session->User->Permission('PERMISSION_HTML_ALLOWED')) ) {
    •  
      CommentAuthorrobb
    • CommentTimeOct 10th 2006
     # 26
    was that directed at me?
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006
     # 27
    yep
    •  
      CommentAuthorrobb
    • CommentTimeOct 10th 2006
     # 28
    what file are you referring to?
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006
     # 29
    extensions/FCKeditor/default.php
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006 edited
     # 30
    With that changes, you won't have to change your old post formatting. Old post still use the other Formatter installed. But when someone try to post or edit a post, they don't have the choice of formatter and they have to use the one that come with the FCKeditor extension.
    •  
      CommentAuthorrobb
    • CommentTimeOct 10th 2006
     # 31
    Sorry but I'm trying to get rid of FCKeditor and move to the Quicktags extension. My problem is that after disabling FCKeditor, many posts have html code in them.
    •  
      CommentAuthorDinoboff
    • CommentTimeOct 10th 2006 edited
     # 32
    Oh... I see.

    Go into phpmyadmin and execute this query:UPDATE `lum_comment` SET `FormatType` = 'kses' WHERE `FormatType` = 'FCKeditor' ;
    or
    UPDATE `lum_comment` SET `FormatType` = 'Html' WHERE `FormatType` = 'FCKeditor' ;


    Use the first one if you use the kses formatter or the second one if you use the HtmlFormatter of SirNot
    •  
      CommentAuthorrobb
    • CommentTimeOct 10th 2006
     # 33
    thank you sir. although i had to change it to

    UPDATE `LUM_Comment` SET `FormatType` = 'Html' WHERE `FormatType` = 'FCKeditor'

    to get working (the LUM_Comment is case-sensitive).
  10.  # 34
    Now thats a neat idea.
    Dinoboff, do u think i should make a check for whetehr the user is allowed html or not.
    casue right now i don't. I only check if comments are allowed for anonymous users
    • CommentAuthorrcbeetle75
    • CommentTimeOct 16th 2006
     # 35
    Hi, I'm using FCkeditor extention with googiespell spell checker and the spell checker stopped working. With FCKeditor extension enabled it finds no misspellings, without FCKeditor enabled, it works just fine. Any ideas on making these two extensions compatible?
  11.  # 36
    where can i get googiespell
    • CommentAuthorrcbeetle75
    • CommentTimeOct 18th 2006
     # 37
  12.  # 38
    it seems to be IE only. cause it doesn't work in firefox
    I don't have IE to confirm it.

    looking at other thread. Spell checker is broken
    • CommentAuthorrusslipton
    • CommentTimeOct 30th 2006 edited
     # 39
    I get these error messages when trying to start a new discussion in Firefox 1.5.1 using FCKeditor_2.3.2:

    Error loading (URL addy)/js/FCKeditor/editor/plugins/Video/lang/en.js (OK)
    Error loading (URL addy)/js/FCKeditor/editor/plugins/Video/fckplugin.js (OK)
    Unknown toolbar item "Video" (OK)

    Then it does load the editor. After a save, the discussion is displayed ... receive the same error messages before it displays the comment area.

    Safari displays the saved discussion with a comment area with FCKeditor off. In other words, Safari does not find the extension.

    Help?
  13.  # 40
    u didn't move the included video folder to the correct location. It needs to be inside the plugins folder
    • CommentAuthorrusslipton
    • CommentTimeOct 30th 2006
     # 41
    Got it, thanks. I didn't catch this in any instructions but probably missed it - if not there, seems like a good thing to include
    •  
      CommentAuthorKrevan
    • CommentTimeNov 4th 2006
     # 42
    Hi everybody!
    I'm a french user of Vanilla, so, forgive me for my bad english. Recently, I've installed FCKeditor, it's a really good add-on, but I have a problem...
    The color! I can't use any color!
    I've tried by write: <span style="color:green;">{content}</span>.

    But it's not the solution... and I don't find her! -_-'
    So, I really need your help!

    Thanks,
    Krevan.
  14.  # 43
    open up settings.php
    look for this line
    'span' => array('align' => 1, 'class' => 1, 'title' => 1),
    replace it with this one
    'span' => array('align' => 1, 'class' => 1, 'title' => 1, 'style' => 1),

    or u can get the updated version 1.65. I added a text color button. It doesn't use valid xhtml though. it uses the font tags *yuck thoo* why does both xinha and fckeditor still use font tags for color
    •  
      CommentAuthorDinoboff
    • CommentTimeNov 4th 2006 edited
     # 44
    The style attribute is striped out by the kses formatter. and can't really be used. There is a bug colons in attributes:
    http://sourceforge.net/tracker/index.php?func=detail&aid=805959&group_id=81853&atid=564258
    (Haven't try the fix described)

    However, it is a bag idea to allow the style attribute since anybody would be able to change the content of the page.

    If you need it, you can and the style attribute in list of allowed attribute and try the fix described on the page, or use sirnot html formatter instead of the kses one.

    The best solution is to use the font tag that is harmless.
  15.  # 45
    yeah i added the textcolor button in fckeditor
    so he should use that instead.
    •  
      CommentAuthorKrevan
    • CommentTimeNov 5th 2006
     # 46
    Ok thanks a lot!
    I'll try to install version 1.65.

    If I've a problem, I'll tell you again!

    Regards,
    Krevan.
  16.  # 47
    Hello there,

    I installed Vanilla on a specific config :
    system : Unix (HP-UX 11)
    Apache 2.0 Handler
    PHP : Version 4.3.8
    MySQL : 3.23.49
    I got no problem with Vanilla (1.0.1), and no more with some add-ons.
    But... i got some with FCKeditor. More exactly with kses.
    When I write www.google.com (for example) the code is :<a href="www.goolgle.com">www.goolgle.com</a>
    When I submit, datas are well saved (in de DB). But I can't see the result in vanilla.
    When i click on an other discussion, I got it on screen, but when i click on the discussion where i send the message with the link, i got a blank page (message from the browser - IE6 : "Impossible to show the page")
    I have to turn off the FCKeditor add-on to see the message.
    I got the same problem with : <font color="#ff0000">text</font>
    The problem seems to be from this caracter : "
    Somebody could help me ?
  17.  # 48
    can u give me the link to ur forum or that page
    have u tried it with Firefox.
  18.  # 49
    I can't 'cause it a private website.
    But, i juts done it.
    With Firefox, when i submit (or go to the discussion), FF try to download a file : comments.php. If i download it, the file is empty...???
  19.  # 50
    For instance, i turned on the "FCKeditor" add-on this some changes :
    In default.php :
    at the beginning :
    //require(FCKEDITOR_PATH . 'settings.php');

    and at the end :
    //$Context->StringManipulator->Formatters = array();
    //$Context->StringManipulator->GlobalFormatters = array();
    $Context->Configuration['DEFAULT_FORMAT_TYPE'] = "Html";
    //$FCKeditorFormatter = $Context->ObjectFactory->NewObject($Context, "FCKeditorFormatter", $FCKeditor_allowed_tags, $FCKeditor_allowed_protocols);
    //$Context->StringManipulator->AddManipulator("FCKeditor", $FCKeditorFormatter);

    And I turned on the "HtmlFormatter" add-on without change...
    If somebody knows an other solution...