Ignore:
Timestamp:
09/13/06 19:24:04 (13 years ago)
Author:
koto
Message:

ExtendedFileManager? update:

  • EFM now supports new way of passing configuration variables to backend introduced in changeset:565
  • updated Readme.txt to encourage the new way
  • added German translation (by sven schomacker)
  • added support for editing 'title' attributes for inserted images (new config options 'images_enable_alt' and 'images_enable_title')
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/Readme.txt

    r521 r567  
    3636* Can be used to insert link to non-image files like pdf or zip. 
    3737* You can specify image margin / padding / background and border colors 
     38** You may edit Alt/title tags for inserted images 
    3839 
    3940Installation : 
     
    5253// only snippets of code from initializing file shown below 
    5354 
    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 ?> 
    8855 
    8956  xinha_plugins = xinha_plugins ? xinha_plugins : 
     
    10168 
    10269// pass the configuration to plugins 
    103 if (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'])?>'; 
     70if (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        } 
    106104} 
    107  
    108 if (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  
    113105 
    114106===== 
Note: See TracChangeset for help on using the changeset viewer.