HowTo: Install FCKEditor in s9y

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

HowTo: Install FCKEditor in s9y

Post by TKS »

Here's how I got FCKEditor working in s9y.

Install the event plugin first and make sure in your user config that you are using WYSIWYG editors (check the box).

Next, follow the plugin instructions by downloading FCKEditor from its sourceforge page. Extract it to the even plugin directory which should be:

Code: Select all

../public_html/plugins/serendipity_event_fckeditor
This means you'll have the folder FCKEditor (contained inside their zipped archive) inside the serendipity_event_fckeditor directory. The path blank is the key here (the one from the configuration page for the plugin)...Serendipity will attempt to fill in a value for you here...erase it. Then type where your plugin is at compared to the HTML PUBLIC directory.

For example, my path is:

Code: Select all

plugins/serendipity_event_fckeditor/FCKEditor/
Yours should be similar.

One more configuration step is to get image browsing enabled in the editor so that you can browse to your image directory to post images. To do this, open plugins/serendipity_event_fckeditor/FCKEditor/editor/filemanager/connectors/php/config.php

and edit the following by making it true instead of false:

Code: Select all

$Config['Enabled'] = false ;
Update the absolute path to your media:

Code: Select all

$Config['UserFilesAbsolutePath'] = '/home/user/publichtml/uploads/' ;
You can do more with this configuration file...for example, I changed the permissions it would upload from 777 to 755 to be a bit more strict (don't want people editing my image files!!). If you want to do that, edit the following:

Code: Select all

$Config['ChmodOnUpload'] = 0755 ;
$Config['ChmodOnFolderCreate'] = 0755 ;
Save the file and close. You should be set. If there are updates on how to do this, I'll post them here. I'll also attempt to get the other WYSIWYG editors up and online and write how-to's for them as well since this is a major pita.
Last edited by TKS on Tue May 06, 2008 11:08 pm, edited 1 time in total.
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

Update: I also had to change the paths at the bottom of the config.php file to match that I had already made for my uploads/ directory. You may have to do the same yourself.

Otherwise, current images won't display :)

I updated:

Code: Select all

$Config['AllowedExtensions']['Image']   = array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image']    = array() ;
$Config['FileTypesPath']['Image']               = $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
$Config['QuickUploadPath']['Image']             = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
to / instead of image/ and adjusted the others accordingly.
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

I've noticed that uploading is problematic at best for this plugin for images and other stuff.


I recommend using the built in s9y media manager to handle your uploads...the hotlinking function is still ok with the plugin but I'd handle your images with s9y :D
Post Reply