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

Last change on this file since 580 was 579, checked in by ray, 13 years ago

ExtendedFileManager? updates:

*to complete cofigurability through js directories can now be set for images and files individually (optional & backwards compatible)

  • relocated button from the end of toolbar next to createlink
  • insert image/link with double click
  • preview img didn't have src when no image selected, which showed a "image not found icon" in IE
  • slight modifications and updates in Readme.txt (kicked out afru's website. The domain isn't even registered anymore)
File size: 4.0 KB
RevLine 
[521]1Package : Extended File Manager EFM 1.1.1
[579]2
[521]3Version 1.1 created from 1.0 beta by Krzysztof Kotowicz <koto@webworkers.pl>
4
5Overview :
6----------
7
[579]8Extended File Manager is an advanced plugin for Xinha
[521]9
10It works in two different modes.
111). Insert Image Mode and
122). Insert File Link Mode.
13
[579]14In Insert Image Mode, it replaces the basic insert image functionality of Xinha with its advanced image manager.
[521]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
[579]38* You may edit Alt/title tags for inserted images
[521]39
[579]40(Most of the features can be enabled/disabled as needed)
41
[521]42Installation :
43--------------
44
45Installing involves extracting the archive to 'plugins' subdirectory of Xinha
46and selecting the plugin in appropriate xinha_plugins list.
47
48Plugin may be configured via xinha_config.ExtendedFileManager object.
49Look into ImageManager plugin documentation as this plugin uses almost identical
[579]50settings. All available options can be found in the file config.inc.php.
[521]51
52// only snippets of code from initializing file shown below
53
54
55  xinha_plugins = xinha_plugins ? xinha_plugins :
56  [
57   'ContextMenu',
58   'SuperClean',
59   'CharacterMap',
60   'GetHtml',
61   'ExtendedFileManager',
62   /*'ImageManager',*/  // replace image manager with EFM
63   'Linker'
64  ];
65
66...
67
[579]68//If you don't want to add a button for linking files and use only the advanced ImageManager
69xinha_config.ExtendedFileManager.use_linker = false;
70// pass the configuration to plugin
[567]71if (xinha_config.ExtendedFileManager) {
72            with (xinha_config.ExtendedFileManager)
73        {
74            <?php
[521]75
[567]76            // define backend configuration for the plugin
77            $IMConfig = array();
78            $IMConfig['images_dir'] = '<images dir>';
79            $IMConfig['images_url'] = '<images url>';
[579]80            $IMConfig['files_dir'] = '<files dir>';
81            $IMConfig['files_url'] = '<files url>';
[567]82            $IMConfig['thumbnail_prefix'] = 't_';
83            $IMConfig['thumbnail_dir'] = 't';
84            $IMConfig['resized_prefix'] = 'resized_';
85            $IMConfig['resized_dir'] = '';
86            $IMConfig['tmp_prefix'] = '_tmp';
87            $IMConfig['max_filesize_kb_image'] = 2000;
88            // maximum size for uploading files in 'insert image' mode (2000 kB here)
89
90            $IMConfig['max_filesize_kb_link'] = 5000;
[579]91            // maximum size for uploading files in 'insert link' mode (5000 kB here)
[567]92
93            // Maximum upload folder size in Megabytes.
94            // Use 0 to disable limit
95            $IMConfig['max_foldersize_mb'] = 0;
96           
97            $IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
98            $IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
99                                                         "psd","png","html","swf",
100                                                         "xml","xls");
101
102            require_once '/path/to/xinha/contrib/php-xinha.php';
103            xinha_pass_to_php_backend($IMConfig);
104           
105            ?>
106        }
[521]107}
108
109=====
110afrusoft@gmail.com - author of EFM 1.0 beta
111koto@webworkers.pl - EFM 1.1 (most of the code taken from Xinha codebase)
Note: See TracBrowser for help on using the repository browser.