osCmax v2.5 User Manual
Results 1 to 6 of 6

integrating ckfinder into ckeditor

This is a discussion on integrating ckfinder into ckeditor within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hello, Trying to add ckfinder to the great ckeditor, but all information i found on how to achieve this was ...

      
  1. #1
    Active Member
    Join Date
    Mar 2004
    Posts
    139
    Rep Power
    15


    Default integrating ckfinder into ckeditor

    Hello,

    Trying to add ckfinder to the great ckeditor, but all information i found on how to achieve this was not enough.

    I started by uploading ckfinder and the new ckeditor version to admin/includes/javascript
    I included the ckfinder path under the ckeditor path in admin articles (I only need ckfinder for articles):
    <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES . 'javascript/ckeditor/ckeditor.js'?>"></script>
    <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES . 'javascript/ckfinder/ckfinder.js'?>"></script>

    Now I am puzzled. I followed the ckeditor integration manual here:
    CKFinder 1.x/Developers Guide/PHP/CKEditor Integration - CKSource Docs
    and the developers guide uploader here:
    CKEditor 3.x/Developers Guide/File Browser (Uploader) - CKSource Docs

    Can anyone please shed some light on which files in oscmax need to be changed?

    Thanks.

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: integrating ckfinder into ckeditor

    Find code similar to:
    PHP Code:
    <!-- CKeditor -->
    <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES 'javascript/ckeditor/ckeditor.js'?>"></script>
    <!-- CKeditor End -->
    As per instruction...

    PHP Code:
    <?php
     
    // Make sure you're using correct path here
     
    include_once 'ckeditor/ckeditor.php';
     
     
    $ckeditor = new CKEditor();
     
    $ckeditor->basePath '/ckeditor/';
     
    $ckeditor->config['filebrowserBrowseUrl'] = '/ckfinder/ckfinder.html';
     
    $ckeditor->config['filebrowserImageBrowseUrl'] = '/ckfinder/ckfinder.html?type=Images';
     
    $ckeditor->config['filebrowserFlashBrowseUrl'] = '/ckfinder/ckfinder.html?type=Flash';
     
    $ckeditor->config['filebrowserUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
     
    $ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
     
    $ckeditor->config['filebrowserFlashUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
     
    $ckeditor->editor('CKEditor1');
    so....
    PHP Code:
    <!-- CKeditor -->
    <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES 'javascript/ckeditor/ckeditor/ckeditor.php';
     
     
    $ckeditor = new CKEditor();
     
    $ckeditor->basePath '/ckeditor/';
     
    $ckeditor->config['filebrowserBrowseUrl'] = '/ckfinder/ckfinder.html';
     
    $ckeditor->config['filebrowserImageBrowseUrl'] = '/ckfinder/ckfinder.html?type=Images';
     
    $ckeditor->config['filebrowserFlashBrowseUrl'] = '/ckfinder/ckfinder.html?type=Flash';
     
    $ckeditor->config['filebrowserUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
     
    $ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
     
    $ckeditor->config['filebrowserFlashUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
     
    $ckeditor->editor('CKEditor1');?>"></script>
    <!-- CKeditor End -->
    Or
    PHP Code:
    <?php
     
    // Make sure you're using correct paths here
     
    include_once 'ckeditor/ckeditor.php';
     include_once 
    'ckfinder/ckfinder.php';
     
     
    $ckeditor = new CKEditor();
     
    $ckeditor->basePath '/ckeditor/';
     
    CKFinder::SetupCKEditor($ckeditor'/ckfinder/');
     
    $ckeditor->editor('CKEditor1');
    so:
    PHP Code:
    <?php
     
    <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES . 'javascript/ckeditor/ckeditor.php'?>"></script>
     <script type="text/javascript" src="<?php echo DIR_WS_INCLUDES 'javascript//ckfinder/ckfinder.php';
     
     
    $ckeditor = new CKEditor();
     
    $ckeditor->basePath '/ckeditor/';
     
    CKFinder::SetupCKEditor($ckeditor'/ckfinder/');
     
    $ckeditor->editor('CKEditor1');
    ?>"></script>
    <!-- CKeditor End -->
    Not tested but should be close.....

    Good Luck

    Link broken below in SIG - need to fix.....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Active Member
    Join Date
    Mar 2004
    Posts
    139
    Rep Power
    15


    Default Re: integrating ckfinder into ckeditor

    Thanks for your help, JPF, but this addition gives me a blank page.
    I added the code at line 340 in admin/articles.php, tried both ways mentioned but same result: blank page.

    Hope you can try it out or something, thanks.

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: integrating ckfinder into ckeditor

    If you get a blank page then you have normally made a mistake in the php code. Goto application_top and change the error reporting to display errors - then instead of a blank screen you will see the reason - post it here and we should be able to help.
    pgmarshall
    _______________________________

  5. #5
    Active Member
    Join Date
    Mar 2004
    Posts
    139
    Rep Power
    15


    Default Re: integrating ckfinder into ckeditor

    This is the error i get:

    Notice: Constant AFFILIATE_NOTIFY_AFTER_BILLING already defined in /home/mysite/public_html/admin/includes/application_top.php on line 69

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/admin/includes/application_top.php:69) in /home/mysite/public_html/admin/includes/functions/sessions.php on line 100

  6. #6
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: integrating ckfinder into ckeditor

    Read this post

    Headers already sent - normally a whitespace problem after ?>

    Regards,
    pgmarshall
    _______________________________


Similar Threads

  1. Integrating a quantity discount contribution
    By purefusion in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-30-2006, 03:12 AM
  2. Integrating IdevAffiliate Affiliate Module
    By kenlyle in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 03-01-2006, 06:57 AM
  3. Integrating a Photo Gallery - Coppermine Perhaps?
    By groggory in forum osCMax v1.7 General Mods Discussion
    Replies: 5
    Last Post: 11-18-2005, 07:09 AM
  4. integrating flash session id's into oscmax
    By altenter in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 10-11-2004, 12:13 PM
  5. Integrating look and feel of osC with already designed site
    By liltyga in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 05-21-2004, 05:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •