Ignore:
Timestamp:
04/01/11 14:24:09 (8 years ago)
Author:
gogo
Message:

Updates to http://www.github.com/sleemanj/mootools-filemanager from GerHoblett?

http://www.github.com/GerHoblett/

Changes to said updates by gogo (sleemanj @ github)

Modifications to MootoolsFileManager? to work with those updates, some courtesy of GerHoblett?, some sleemanj

GerHoblett? provided a large diff which accomplished the goal in a quite different way. It has merit, however I have opted for a less-affecting path in so far as Xinha's "way" is concerned, namely, not splitting the config for a single plugin into several calls to backend config passing functions which seemed a little cumbersome.

Instead I take the option of using POST to send backend data around, at the minor expense of an extra round trip when displaying thumbnails (for each one). This could be reduced by checking for thumbnail existence and returning the thumbnail name directly in "onView" rather than the backend request to generate said thumbnail.

Still to do, is to make the preview pane thumbnail also work.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MootoolsFileManager-Update/plugins/MootoolsFileManager/config.php

    r1300 r1302  
    8989  $IMConfig['images_url'] = FALSE; // No trailing slash 
    9090   
    91   $IMConfig['thumbs_dir'] = NULL;  // Will default to images_url/.thumbs or files_url/.thumbs 
    92  
     91  $IMConfig['thumbs_dir'] = NULL;  // Will default to images_dir/.thumbs or files_dir/.thumbs 
     92  $IMConfig['thumbs_url'] = NULL;  // Will default to images_url/.thumbs or files_url/.thumbs 
    9393  /** 
    9494    == Turning On Uploads == 
     
    127127// ------------------------------------------------------------------------- 
    128128 
     129/** Expanded Permissions */ 
     130 
     131$IMConfig['allow_images_create_dir']  = NULL;  // Defaults to allow_images_upload 
     132$IMConfig['allow_images_move']        = false;  
     133$IMConfig['allow_images_download']    = false;  
     134   
     135$IMConfig['allow_files_create_dir']  = NULL; // Defaults to allow_files_upload 
     136$IMConfig['allow_files_move']        = false;  
     137$IMConfig['allow_files_download']    = false;  
     138   
     139   
    129140/** 
    130141 
     
    197208  $IMConfig['thumbs_dir'] = (isset($IMConfig['images_dir']) ? $IMConfig['images_dir'] : $IMConfig['files_dir']) . '/.thumbs'; 
    198209} 
     210 
     211if(!isset($IMConfig['thumbs_url'])) 
     212{ 
     213  $IMConfig['thumbs_url'] = (isset($IMConfig['images_url']) ? $IMConfig['images_url'] : $IMConfig['files_url']) . '/.thumbs'; 
     214} 
     215 
     216if(!isset($IMConfig['allow_images_create_dir']))  
     217{ 
     218  $IMConfig['allow_images_create_dir'] = $IMConfig['allow_images_upload']; 
     219} 
     220 
     221if(!isset($IMConfig['allow_files_create_dir']))  
     222{ 
     223  $IMConfig['allow_files_create_dir'] = $IMConfig['allow_files_upload']; 
     224} 
     225 
     226 
     227 
    199228?> 
Note: See TracChangeset for help on using the changeset viewer.