| 1 | Package : Extended File Manager EFM 1.1.1
|
|---|
| 2 | Plugin url : http://www.afrusoft.com/htmlarea
|
|---|
| 3 | Version 1.1 created from 1.0 beta by Krzysztof Kotowicz <koto@webworkers.pl>
|
|---|
| 4 |
|
|---|
| 5 | Overview :
|
|---|
| 6 | ----------
|
|---|
| 7 |
|
|---|
| 8 | Extended File Manager is an advanced plugin for HtmlArea 3.0
|
|---|
| 9 |
|
|---|
| 10 | It works in two different modes.
|
|---|
| 11 | 1). Insert Image Mode and
|
|---|
| 12 | 2). Insert File Link Mode.
|
|---|
| 13 |
|
|---|
| 14 | In Insert Image Mode, it replaces the basic insert image functionality of HtmlArea with its advanced image manager.
|
|---|
| 15 |
|
|---|
| 16 | If Insert File Link Mode is enabled, a new icon will be added to the toolbar with advanced file linking capability.
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | Complete Features :
|
|---|
| 21 | -------------------
|
|---|
| 22 | * Easy config.inc file that enables individual options for both modes.
|
|---|
| 23 | * Thumnail View
|
|---|
| 24 | * List View
|
|---|
| 25 | * Nice icons for both views
|
|---|
| 26 | * Create Folders
|
|---|
| 27 | * Vertical Scrolling
|
|---|
| 28 | * Allowed extensions to view or upload.
|
|---|
| 29 | * File Uploads
|
|---|
| 30 | * Max File upload limit
|
|---|
| 31 | * Max Upload Folder size (Including all subfolders and files. A must see option.)
|
|---|
| 32 | * Dynamic display of available free space in the Upload Folder
|
|---|
| 33 | * Dynamic Thumbnails using Image libraries or browser resize
|
|---|
| 34 | * Image Editor (Actually done by Wei...a great addon)
|
|---|
| 35 | * Can be used to insert images along with properties.
|
|---|
| 36 | * Can be used to insert link to non-image files like pdf or zip.
|
|---|
| 37 | * You can specify image margin / padding / background and border colors
|
|---|
| 38 | ** You may edit Alt/title tags for inserted images
|
|---|
| 39 |
|
|---|
| 40 | Installation :
|
|---|
| 41 | --------------
|
|---|
| 42 |
|
|---|
| 43 | Installing involves extracting the archive to 'plugins' subdirectory of Xinha
|
|---|
| 44 | and selecting the plugin in appropriate xinha_plugins list.
|
|---|
| 45 |
|
|---|
| 46 | Plugin may be configured via xinha_config.ExtendedFileManager object.
|
|---|
| 47 | Look into ImageManager plugin documentation as this plugin uses almost identical
|
|---|
| 48 | settings.
|
|---|
| 49 |
|
|---|
| 50 | The plugin may share the same config array as ImageManager plugin - just specify
|
|---|
| 51 | the same storage location like this:
|
|---|
| 52 |
|
|---|
| 53 | // only snippets of code from initializing file shown below
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | xinha_plugins = xinha_plugins ? xinha_plugins :
|
|---|
| 57 | [
|
|---|
| 58 | 'ContextMenu',
|
|---|
| 59 | 'SuperClean',
|
|---|
| 60 | 'CharacterMap',
|
|---|
| 61 | 'GetHtml',
|
|---|
| 62 | 'ExtendedFileManager',
|
|---|
| 63 | /*'ImageManager',*/ // replace image manager with EFM
|
|---|
| 64 | 'Linker'
|
|---|
| 65 | ];
|
|---|
| 66 |
|
|---|
| 67 | ...
|
|---|
| 68 |
|
|---|
| 69 | // pass the configuration to plugins
|
|---|
| 70 | if (xinha_config.ExtendedFileManager) {
|
|---|
| 71 | with (xinha_config.ExtendedFileManager)
|
|---|
| 72 | {
|
|---|
| 73 | <?php
|
|---|
| 74 |
|
|---|
| 75 | // define backend configuration for the plugin
|
|---|
| 76 | $IMConfig = array();
|
|---|
| 77 | $IMConfig['images_dir'] = '<images dir>';
|
|---|
| 78 | $IMConfig['images_url'] = '<images url>';
|
|---|
| 79 | $IMConfig['thumbnail_prefix'] = 't_';
|
|---|
| 80 | $IMConfig['thumbnail_dir'] = 't';
|
|---|
| 81 | $IMConfig['resized_prefix'] = 'resized_';
|
|---|
| 82 | $IMConfig['resized_dir'] = '';
|
|---|
| 83 | $IMConfig['tmp_prefix'] = '_tmp';
|
|---|
| 84 | $IMConfig['max_filesize_kb_image'] = 2000;
|
|---|
| 85 | // maximum size for uploading files in 'insert image' mode (2000 kB here)
|
|---|
| 86 |
|
|---|
| 87 | $IMConfig['max_filesize_kb_link'] = 5000;
|
|---|
| 88 | // maximum size for uploading files in 'insert link' mode (2000 kB here)
|
|---|
| 89 |
|
|---|
| 90 | // Maximum upload folder size in Megabytes.
|
|---|
| 91 | // Use 0 to disable limit
|
|---|
| 92 | $IMConfig['max_foldersize_mb'] = 0;
|
|---|
| 93 |
|
|---|
| 94 | $IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
|
|---|
| 95 | $IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
|
|---|
| 96 | "psd","png","html","swf",
|
|---|
| 97 | "xml","xls");
|
|---|
| 98 |
|
|---|
| 99 | require_once '/path/to/xinha/contrib/php-xinha.php';
|
|---|
| 100 | xinha_pass_to_php_backend($IMConfig);
|
|---|
| 101 |
|
|---|
| 102 | ?>
|
|---|
| 103 | }
|
|---|
| 104 | }
|
|---|
| 105 |
|
|---|
| 106 | =====
|
|---|
| 107 | afrusoft@gmail.com - author of EFM 1.0 beta
|
|---|
| 108 | koto@webworkers.pl - EFM 1.1 (most of the code taken from Xinha codebase) |
|---|