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

Last change on this file since 967 was 677, checked in by ray, 13 years ago

set svn:keywords property for the new files & all plugins

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 4.0 KB
Line 
1Package : Extended File Manager EFM 1.1.1
2
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 Xinha
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 Xinha 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* You may edit Alt/title tags for inserted images
39
40(Most of the features can be enabled/disabled as needed)
41
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
50settings. All available options can be found in the file config.inc.php.
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
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
71if (xinha_config.ExtendedFileManager) {
72            with (xinha_config.ExtendedFileManager)
73        {
74            <?php
75
76            // define backend configuration for the plugin
77            $IMConfig = array();
78            $IMConfig['images_dir'] = '<images dir>';
79            $IMConfig['images_url'] = '<images url>';
80            $IMConfig['files_dir'] = '<files dir>';
81            $IMConfig['files_url'] = '<files url>';
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;
91            // maximum size for uploading files in 'insert link' mode (5000 kB here)
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        }
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.