Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 08:34 am EDT

Geeklog Forums

Setting CKeditor library


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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.
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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).




One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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?
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.

One of the Geeklog Core Developers.
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
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.


-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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.
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

mystral-kk

Site Admin
Admin
Registered: 03/19/06
Posts: 100
Location:Japan
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'].
-- mystral-kk, "Every cloud has a silver lining."
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Thank you Mystral-kk Smile
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 08:34 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