Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 03:32 pm EDT

Geeklog Forums

FCKEditor


Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
I am a bit perplexed,
I downloaded the latest FCK Editor and now I can't upload files...
The Editor seems to want to put them in it's own file tree but the system used to put them in documents/Images/library/....
I can't see how to tell FCKEditor to do this, i've downloaded the latest geeklog to see if I deleted a file by mistake, it must be really simple but does anyone know ???
 Quote

Status: offline

samstone

Forum User
Full Member
Registered: 09/29/02
Posts: 820
Let me see if I can remember. Change the following file to include the following codes:

\fckeditor\editor\filemanager\browser\default\connectors\php\config.php

Text Formatted Code
 * File Authors:
 *              Frederico Caldeira Knabben (www.fckeditor.net)
 */
include ('../../../../../../../lib-common.php');
global $Config ;

// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
// $Config['UserFilesPath'] = '/userfiles/' ;
$Config['UserFilesPath'] = $_CONF['site_url'] . $_CONF_FCK['imagelibrary'] ;
 


Do the same thing for upload in:

\fckeditor\editor\filemanager\upload\php\config.php

Change the /fckeditor/fckconfig.js on the following lines to use php:

Text Formatted Code
var _FileBrowserLanguage        = 'php' ;       // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage        = 'php' ;       // asp | aspx | cfm | lasso | php


Hope this helps.

Sam
 Quote

Status: offline

trampoline

Forum User
Full Member
Registered: 02/24/06
Posts: 392
Hmm done all that, but had to make a few adjustments for our system (Paths etc)
Still no joy.... ???
Text Formatted Code
include ('../../../../../lib-common.php');
global $Config ;

// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;

// Path to user files relative to the document root.
$Config['UserFilesPath'] = $_CONF['site_url'] . $_CONF_FCK['imagelibrary'] ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = $_CONF['path_html'] . $_CONF_FCK['imagelibrary'];
 Quote

geoak

Anonymous
angry
Why do we have to smash our head in oerder to configure this great editor? I am trying to change the path of the filemanager and I have to read the whole code of the editor !!!! Anyone who knows how to set this "rocket to the moon"?
 Quote

Status: offline

Ook

Forum User
Chatty
Registered: 07/26/06
Posts: 39
Try this:

http://www.geeklog.net/forum/viewtopic.php?forum=6&showtopic=76681

"A conclusion is the place where you got tired of thinking."--Steven Wright
 Quote

All times are EDT. The time is now 03:32 pm.

  • 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