Kategorie článku:
- Drupal
This is a short manual describing how to modify kfm (Kae's File Manager) version 1.3.1 (or similar) under fckeditor (wysiwyg editor) version 2.6.4 (or similar) to work on web servers with safemode turned on.
This package is with no warranty! Use only on your own risk!
Installation
- Download the hack pack v1.0.1 from kfm-safemode-on-hack-v1.0.1.zip .
- Go to [Drupal Root]/sites/all/modules/fckeditor/fckeditor/editor/filemanager/browser/default .
- Backup browser.html . A backup of browser.html from fckeditor version 2.6.4 is already in the archive as browser-original.html .
- Override browser.html with browser.html from the archive.
- Go to [Drupal Root]/sites/all/modules/fckeditor/fckeditor/editor/plugins/kfm , create this directory if doesn't exist.
- If there isn't yet kfm installed in this directory, copy kfm here. After that you should have file file [Drupal Root]/sites/all/modules/fckeditor/fckeditor/editor/plugins/kfm/fckplugin.js and many other files in this directory.
- If file configuration.php doesn't exist:
- Copy or rename configuration.dist.php to configuration.php .
- If you are using kfm under CMS Drupal and you want the kfm to use the same database settings as Drupal except table prefix, you can add content from autoconfiguration.php to the end of configuration.php .
- If you want, adjust the configuration now.
- Funny step: In initialise.php add two slashes ("//" without quote marks) to begin of line beginning "if (ini_get('safe_mode'))$m[] = ".
- Mystic step: In upload.php add two slashes ("//" without quote marks) to begin of line "if (!is_file($tmpname)) $errors[] = 'No file uploaded';".
- Check filemanager dialog in fckeditor. What do you see?
- If you see "Internal server error 500", you have to backup and delete or modify .htaccess and check filemanager again.
- If you see any other error message, e.g. "Missing configuration.php!", check if previous steps has been done right.
- If you don't like the default purple theme, download another theme, do following steps. Good theme is named blt and can be seen and downloaded at http://www.companytools.nl/kfm-blt-theme .
- Rename or backup and delete directory themes/default .
- Create new empty directory themes/default .
- Copy theme directories and files to themes/default , after that you should have the file themes/default/large_loader.gif and many other files in this directory.
- Clear memory and disk cache in web browser.
- Better way is to set $kfm_theme in configuration.php , but it didn't work for me.
- This package is with no warranty! Use only on your own risk! Enjoy kfm, the best web file manager!
Version history
- 1.0.1 (18.9.2009 14:29)
- bug fix: Error message appeared when user right clicked on image and clicked open or rotate.
- 1.0.0 (27.8.2009 19:38)
- first version
Comments
Very interesting, i like