Welcome to Geeklog, Anonymous Monday, July 14 2025 @ 04:52 am EDT

Geeklog Forums

Setting CKeditor library


Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Previously the setting for FCKeditor library was made in the public_html/siteconfig.php file

$_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';


Switching to CKeditor, the library is automaticaly set to /images/library
Where can I set/change this?

Thanks.
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
In public_html/filemanager/index.php there is:
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
    'Image' => 'images/library/Image/',
    'Flash' => 'images/library/Flash/',
    'Media' => 'images/library/Media/',
    'File'  => 'images/library/File/',
    'Root'  => 'images/',
);


So where can I override this? Mr. Green
 Quote

Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
In the Geeklog Configuration under the Paths tab you will find the path_editors setting.

Under Users and Submissions and the Submissions tab you will find the config option advanced_editor and advanced_editor_name where you can enable and select which editor to use.

If you want to add another editor, to start you need to create a directory under the path_editors and add a functions.php with the correct info along with your editor files (plus any required changes).



 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Hi Tom,

Thanks for the reply.

1. Path for editors is ok
2. Users can use the advanced editor is ok (CKeditor in my case)

What I need to do is to allow CKeditor to use the folder where the FCKeditor stored the files. Where can I set this without hacking the core files?
 Quote

Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
So you are switching from FCKeditor to the CKEditor and want to change the location that the CKEditor uses by default for the image locations.

Hmmm I am not sure. I haven't really played around with the editor code. I believe the CKEditor also uses the Geeklog File Manager for uploading/selecting the files so this may affect to components.

You should send an email to Dengen as he is the one who updated the editor integration and ask him to respond here with the answer.

If it can't be done without hacking core then you should add a feature request for this.
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Yes I try to switch from FCKeditor to CKeditor on a site where I just maked an upgrade from Geeklog 1.8.2 to 2.1.1.

Also, if I use the FCKeditor it is not honoring the setting from the siteconfig.php file. The filemanager display content from images/library not from /images/custom_folder/library

Rolling Eyes
 Quote

Status: offline
Site Admin
Admin
Registered: 03/19/06
Posts: 100
Quote by: ::Ben

In public_html/filemanager/index.php there is:

Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
    'Image' => 'images/library/Image/',
    'Flash' => 'images/library/Flash/',
    'Media' => 'images/library/Media/',
    'File'  => 'images/library/File/',
    'Root'  => 'images/',
);
So where can I override this? Mr. Green

As of Geeklog-2.1.1, the paths are hard-coded at the lines you quoted. If you would like to change these values, please rewrite them on your own, or make a feature request to make them configurable at https://github.com/Geeklog-Core/geeklog/issues . Thanks.

 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
My hack to make it work:

In siteconfig.php
Text Formatted Code
    $_CONF['site_enabled'] = true;
    $_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';
    $_CONF_FCK['root'] = 'images/custom_folder/';
    $_CONF_FCK['imgl'] = 'images/custom_folder/library';



and in filemanager/index.php
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
    'Image' => $_CONF_FCK['imgl'] . '/Image/',
    'Flash' => $_CONF_FCK['imgl'] . '/Flash/',
    'Media' => $_CONF_FCK['imgl'] . '/Media/',
    'File'  => $_CONF_FCK['imgl'] . '/File/',
    'Root'  => $_CONF_FCK['root'],
);


I will add a feature request.

Thanks.
 Quote

Status: offline
Site Admin
Admin
Registered: 03/19/06
Posts: 100
Quote by: ::Ben

My hack to make it work:

In siteconfig.php

Text Formatted Code
    $_CONF['site_enabled'] = true;
    $_CONF_FCK['imagelibrary'] = '/images/custom_folder/library';
    $_CONF_FCK['root'] = 'images/custom_folder/';
    $_CONF_FCK['imgl'] = 'images/custom_folder/library';



and in filemanager/index.php
Text Formatted Code
// Values to be overridden by Geeklog (system)
$relPaths = array(
    'Image' => $_CONF_FCK['imgl'] . '/Image/',
    'Flash' => $_CONF_FCK['imgl'] . '/Flash/',
    'Media' => $_CONF_FCK['imgl'] . '/Media/',
    'File'  => $_CONF_FCK['imgl'] . '/File/',
    'Root'  => $_CONF_FCK['root'],
);


I will add a feature request.

Thanks.



Fixed with changeset 52f150a. The Filemanager will respect $_CONF_FCK['imagelibrary'], and optionally $_CONF_FCK['root'] and $_CONF_FCK['imgl'].
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Thank you Mystral-kk Smile
 Quote

All times are EDT. The time is now 04:52 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content