source: trunk/plugins/ExtendedFileManager/Readme.txt @ 521

Last change on this file since 521 was 521, checked in by koto, 13 years ago

Ticket #811: Added ExtendedFileManager? plugin ver 1.1.1 (with Polish translation)
Currently the plugin depends on ImageManager? class files.
Added dirSize() method used by ExtendedFileManager? to ImageManager/Classes/Files?.php

File size: 4.0 KB
Line 
1Package : Extended File Manager EFM 1.1.1
2Plugin url : http://www.afrusoft.com/htmlarea
3Version 1.1 created from 1.0 beta by Krzysztof Kotowicz <koto@webworkers.pl>
4
5Overview :
6----------
7
8Extended File Manager is an advanced plugin for HtmlArea 3.0
9
10It works in two different modes.
111). Insert Image Mode and
122). Insert File Link Mode.
13
14In Insert Image Mode, it replaces the basic insert image functionality of HtmlArea with its advanced image manager.
15
16If Insert File Link Mode is enabled, a new icon will be added to the toolbar with advanced file linking capability.
17
18
19
20Complete 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
39Installation :
40--------------
41
42Installing involves extracting the archive to 'plugins' subdirectory of Xinha
43and selecting the plugin in appropriate xinha_plugins list.
44
45Plugin may be configured via xinha_config.ExtendedFileManager object.
46Look into ImageManager plugin documentation as this plugin uses almost identical
47settings.
48
49The plugin may share the same config array as ImageManager plugin - just specify
50the same storage location like this:
51
52// only snippets of code from initializing file shown below
53
54<?php
55
56    // define backend configuration for both plugins
57   
58    $IMConfig = array();
59    $IMConfig['images_dir'] = '<images dir>';
60    $IMConfig['images_url'] = '<images url>';
61    $IMConfig['thumbnail_prefix'] = 't_';
62    $IMConfig['thumbnail_dir'] = 't';
63    $IMConfig['resized_prefix'] = 'resized_';
64    $IMConfig['resized_dir'] = '';
65    $IMConfig['tmp_prefix'] = '_tmp';
66    $IMConfig['max_filesize_kb_image'] = 2000;
67    // maximum size for uploading files in 'insert image' mode (2000 kB here)
68
69    $IMConfig['max_filesize_kb_link'] = 5000;
70    // maximum size for uploading files in 'insert link' mode (2000 kB here)
71
72    // Maximum upload folder size in Megabytes.
73    // Use 0 to disable limit
74
75    $IMConfig['max_foldersize_mb'] = 0;
76    $IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
77    $IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
78                                                 "psd","png","html","swf",
79                                                 "xml","xls");
80
81    $IMConfig = serialize($IMConfig);
82    if(!isset($_SESSION['Xinha:ImageManager']))
83    {
84      $_SESSION['Xinha:ImageManager'] = uniqid('secret_code');
85    }
86
87?>
88
89  xinha_plugins = xinha_plugins ? xinha_plugins :
90  [
91   'ContextMenu',
92   'SuperClean',
93   'CharacterMap',
94   'GetHtml',
95   'ExtendedFileManager',
96   /*'ImageManager',*/  // replace image manager with EFM
97   'Linker'
98  ];
99
100...
101
102// pass the configuration to plugins
103if (xinha_config.ImageManager) {
104    xinha_config.ImageManager.backend_config = '<?php echo jsaddslashes($IMConfig)?>';
105    xinha_config.ImageManager.backend_config_hash = '<?php echo sha1($IMConfig . $_SESSION['Xinha:ImageManager'])?>';
106}
107
108if (xinha_config.ExtendedFileManager) {
109    xinha_config.ExtendedFileManager.backend_config = '<?php echo jsaddslashes($IMConfig)?>';
110    xinha_config.ExtendedFileManager.backend_config_hash = '<?php echo sha1($IMConfig . $_SESSION['Xinha:ImageManager'])?>';
111}
112
113
114=====
115afrusoft@gmail.com - author of EFM 1.0 beta
116koto@webworkers.pl - EFM 1.1 (most of the code taken from Xinha codebase)
Note: See TracBrowser for help on using the repository browser.