Changes between Initial Version and Version 1 of Documentation/Plugins/ExtendedFileManager


Ignore:
Timestamp:
02/08/07 12:36:30 (12 years ago)
Author:
ray
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Plugins/ExtendedFileManager

    v1 v1  
     1= Extended File Manager EFM = 
     2 
     3Version 1.1 created from 1.0 beta by Krzysztof Kotowicz <koto@webworkers.pl> 
     4 
     5== Overview == 
     6 
     7Extended File Manager is an advanced plugin for Xinha  
     8 
     9It works in two different modes. 
     10 1. Insert Image Mode and  
     11 2. Insert File Link Mode. 
     12 
     13In Insert Image Mode, it replaces the basic insert image functionality of Xinha with its advanced image manager. 
     14 
     15If Insert File Link Mode is enabled, a new icon will be added to the toolbar with advanced file linking capability. 
     16 
     17 
     18 
     19== Complete Features == 
     20 * Easy config.inc file that enables individual options for both modes. 
     21 * Thumnail View  
     22 * List View  
     23 * Nice icons for both views  
     24 * Create Folders  
     25 * Vertical Scrolling  
     26 * Allowed extensions to view or upload. 
     27 * File Uploads  
     28 * Max File upload limit  
     29 * Max Upload Folder size (Including all subfolders and files. A must see option.) 
     30 * Dynamic display of available free space in the Upload Folder  
     31 * Dynamic Thumbnails using Image libraries or browser resize  
     32 * Image Editor (Actually done by Wei...a great addon)  
     33 * Can be used to insert images along with properties.  
     34 * Can be used to insert link to non-image files like pdf or zip. 
     35 * You can specify image margin / padding / background and border colors 
     36 * You may edit Alt/title tags for inserted images 
     37 
     38(Most of the features can be enabled/disabled as needed) 
     39 
     40== Installation == 
     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. 
     46You can find the [wiki:Plugins/ExtendedFileManager/Config available options here]. 
     47{{{ 
     48#!text/x-javascript 
     49// only snippets of code from initializing file shown below 
     50 
     51 
     52  xinha_plugins = xinha_plugins ? xinha_plugins : 
     53  [ 
     54   'ContextMenu', 
     55   'SuperClean', 
     56   'CharacterMap', 
     57   'GetHtml', 
     58   'ExtendedFileManager', 
     59   /*'ImageManager',*/  // replace image manager with EFM 
     60   'Linker' 
     61  ]; 
     62 
     63... 
     64 
     65//If you don't want to add a button for linking files and use only the advanced ImageManager 
     66xinha_config.ExtendedFileManager.use_linker = false; 
     67// pass the configuration to plugin 
     68if (xinha_config.ExtendedFileManager) { 
     69            with (xinha_config.ExtendedFileManager) 
     70        { 
     71            <?php 
     72 
     73            // define backend configuration for the plugin 
     74            $IMConfig = array(); 
     75            $IMConfig['images_dir'] = '<images dir>'; 
     76            $IMConfig['images_url'] = '<images url>'; 
     77            $IMConfig['files_dir'] = '<files dir>'; 
     78            $IMConfig['files_url'] = '<files 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 (5000 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---- 
     107afrusoft@gmail.com - author of EFM 1.0 beta[[BR]] 
     108koto@webworkers.pl - EFM 1.1 (most of the code taken from Xinha codebase)