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.

FCKeditor Issue



  • edited October 2006
    thanks dinoboff
  • i have a different and really simple question about fck... the image for the video button on the toolbar is broken, and i've copied Video.gif everywhere i can possibly think to put it. what's the path to where it should go? everything else works perfectly as far as i can tell.
  • edited October 2006
    check if filename is Video.gif and not video.gif make it the same name as it appears in fckplugin.js it should be inside the Video folder
  • msb, one question, is there a good way to replace those smileys? i noticed that simple image replacement doesnt work, is there a tricky trickey?
  • if u replace them with the same size and same filename then it does work
  • thanks , worked very well..

    i don't want to open up a new thread for the fck , and thats why i use this one again.

    so this is an idea... i use sir nots page manager here (as like many others)

    it would be such an improvement for the whole system and it would beat the cms idea in many ways if you could add fck to the "html/php" text area.

    because creating pages with such an dynamical editor , would be not only great it would be very innovative as well.
  • +1 for fery's idea, it would really extend vanilla into a mini-cms!
  • edited October 2006
    in that plugin there is a "Page HTML" text area u want fckeditor in there as well is that what ur asking
  • try this one. put it in ur default.php in ur fckeditor folder
    if ( in_array($Context->SelfUrl, array("settings.php")) ) { $Head->AddScript('js/FCKeditor/fckeditor.js'); $Head->AddString('<script type="text/javascript"> window.onload = function() { if (document.getElementById("txtTabHTML")) { var oFCKeditor = new FCKeditor("HTML") ; oFCKeditor.BasePath = "' . $Configuration['WEB_ROOT'] . 'js/FCKeditor/" ; oFCKeditor.Config["CustomConfigurationsPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/config.js" ; oFCKeditor.Config["StylesXmlPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/fckstyles.xml" ; oFCKeditor.Config["EditorAreaCSS"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/content.css"; oFCKeditor.ToolbarSet = "Vanilla" ; oFCKeditor.ReplaceTextarea() ; } } </script>'); }
  • edited October 2006
    i try thanks... another question ....

    fck does not appear if i "Start a new discussion" :/
  • did u replace it or add it
    u have to add that code not replace it
  • i know, i know:D i mean it does not appear anyways ... the code is not added yet
  • edited October 2006
    i just checked it its working here
  • edited October 2006
    mh i bet in IE or? ... if guests can post on your testforum you can try this yourforum/post.php @
  • window.onload = function() { UserInfoTooltip.Init(); if (document.getElementById("CommentBox")) { var oFCKeditor = new FCKeditor("Body") ; oFCKeditor.BasePath = "' . $Configuration['WEB_ROOT'] . 'js/FCKeditor/" ; oFCKeditor.Config["CustomConfigurationsPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/config.js" ; oFCKeditor.Config["StylesXmlPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/fckstyles.xml" ; oFCKeditor.Config["EditorAreaCSS"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/content.css"; oFCKeditor.ToolbarSet = "Vanilla" ; oFCKeditor.ReplaceTextarea() ; document.getElementById("CommentBoxController").style.display = "none"; } }

    ah this code from above disables the editor in a startup window ... what can i change?
  • edited October 2006
    if guests can post in ur forum then u need to change the true to false in this line
    $Configuration["FCKEDITOR_LOGINREQUIRED"] = false;
  • no i mean it doesnt appear in the start new discussion section.. the standard vanilla editor appears there :(
  • edited October 2006
    OK i'm changing the fckeditor extension. and uploading it now. plus all changes u made to usertooltip info. revert them.
    I believe i told u to delete this line from the functions.js in usertooltipinfo folder
    window.onload = function() { UserInfoTooltip.Init(); }

    put it back in there. The new fckeditor extension that i'm uploading won't use windows.onload anymore. SO it should work with usertooltip info without making any changins to wither code.

    give me a couple of minutes to upload it
  • ok I have uploaded v 1.5 now. try that Sorry for the mess
This discussion has been closed.