PEDKA
Улыбающийся КС | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору 1) Редактируем конфиг файл-менеджера: fck\editor\filemanager\browser\mcpuk\connectors\php\config.php или fck\editor\filemanager\browser\default\connectors\php\config.php Ищем строчку Код: $fckphp_config['UserFilesPath'] = "/UserFiles" ; | Это директория, в которой будут содержаться все наши директории Далее: Код: $fckphp_config['ResourceAreas']['File'] =array( //Files(identified by extension) that may be uploaded to this area 'AllowedExtensions' => array("zip","doc","xls","pdf","rtf","csv","jpg","gif","jpeg","png","avi","mpg","mpeg","swf","fla"), //Not implemented yet 'AllowedMIME' => array(), //Set the maximum single upload to this area to 2MB (2048Kb) 'MaxSize' => 2048, //Set disk quota for this resource area to 20MB 'DiskQuota' => 20, //By Default hide all folders starting with a . (Unix standard) 'HideFolders' => array("^\."), //By Default hide all files starting with a . (Unix standard) 'HideFiles' => array("^\."), //Do not allow images to be edited in this resource area 'AllowImageEditing' => false ); //Image area | У меня, например, такая. Теперь то, что выделено красным — эта и есть та папка (File) Ты можешь поменять имя, место в ней, формат загружаемых файлов. А можешь удалить или добавить. Итак, мы меняем папку File на папку All Новый код: Код: $fckphp_config['ResourceAreas']['All'] =array( //Files(identified by extension) that may be uploaded to this area 'AllowedExtensions' => array("zip","doc","xls","pdf","rtf","csv","jpg","gif","jpeg","png","avi","mpg","mpeg","swf","fla"), //Not implemented yet 'AllowedMIME' => array(), //Set the maximum single upload to this area to 2MB (2048Kb) 'MaxSize' => 2048, //Set disk quota for this resource area to 20MB 'DiskQuota' => 20, //By Default hide all folders starting with a . (Unix standard) 'HideFolders' => array("^\."), //By Default hide all files starting with a . (Unix standard) 'HideFiles' => array("^\."), //Do not allow images to be edited in this resource area 'AllowImageEditing' => false ); //Image area | Далее, спускаемся ещё ниже: Код: $fckphp_config['ResourceTypes'] = array('File','Image','Flash','Media'); | Заменяем на: Код: $fckphp_config['ResourceTypes'] = array('All','Image','Flash','Media'); | Закрываем и сохраняем файл. 2) Открываем файл fck\editor\filemanager\browser\mcpuk\frmresourcetype.html или fck\editor\filemanager\browser\default\frmresourcetype.html Ищем: Код: var aTypes = [ ['File','File'], ['Image','Image'], ['Flash','Flash'], ['Media','Media'] ] ; | Заменяем на: Код: var aTypes = [ ['All','All'], ['Image','Image'], ['Flash','Flash'], ['Media','Media'] ] ; | Сохраняем, закрываем. 3) Идем в папку UserFiles и создаем там папку All. Все. |