While there is a commercial file manager plugin for CKEditor called CKFinder, WebYep also supports a free alternative. This article will show you how to integrate 'Filemanager' from Core Five Labs.
This document assumes that you are fairly familiar with setting up WebYep and configuring web servers like Apache. It provides step by step instructions, without explaining everything in detail. If you don't know what permissions are, or have no idea what a "document root" might be, or where it is located, you might want to leave the installation/configuration to an experienced administrator.
Installation instructions for CKEditor can be found in the WebYep documentation (RichText element).
Important: since CKEditor and Filemanager are third-party products, we can't provide support for them!
/webyep-system/program/opt/
folder./webyep-system/data
and create a subfolder named "userfiles" there. This folder should have the permissions 755. If this doesn't work on your server, try 775 or 777./webyep-system/program/opt/filemanager/connectors/
delete every subfolder EXCEPT php
.
/webyep-system/program/opt/filemanager/connectors/php/filemanager.config.php
session_start();
' (without the quotes) like so:
<?php session_start();
function auth() {
". Replace this up to and including the next "}" with the following:
function auth() { return isset($_SESSION['WebYepIsAuthorized']) && $_SESSION['WebYepIsAuthorized']; }
$config['culture'] = 'en';
" and change the "en" accordingly.
You'll find all available languages in the folder /webyep-system/program/opt/filemanager/scripts/languages/
.
Every file in there represents another language, so if you want your filemanager to speak french, write:
$config['culture'] = 'fr';
$config['date'] = 'd.M.Y H:i';This will display a date like "29.2.2000 13:57". For a detailed explanation of the available format options, please refer to http://www.php.net/date
// $config['doc_root'] = '/home/user/userfiles'; // No end slashand replace it with the following:
$config['doc_root'] = '/path/to/your/document_root';You'll have to adapt this example to your server configuration. Note that if your WebYep installation is located in a subfolder, you must append its path to the URL (e.g. '/path/to/your/document_root/subfolder' instead of '/path/to/your/document_root'). Also don't add a trailing slash to the path!
/webyep-system/program/opt/filemanager/scripts
you will find a file named filemanager.config.js.default
.
Rename this file to filemanager.config.js
(i.e. remove the trailing .default)/webyep-system/program/opt/filemanager/scripts/filemanager.config.js
var culture = 'en';
" and change the "en" accordingly.
You'll find all available languages in the folder /webyep-system/program/opt/filemanager/scripts/languages/
.
Every file in there represents another language, so if you want your filemanager to speak french, write:
var culture = 'fr';
var fileRoot = '/' + am + 'userfiles/';
" and replace it by the following:
var fileRoot = '/webyep-system/data/userfiles/';
To check whether the installation was successful, do the following: