CodeIgniter Forums
[ASK] Adding New Resource Types CKFinder failed - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [ASK] Adding New Resource Types CKFinder failed (/thread-57097.html)



[ASK] Adding New Resource Types CKFinder failed - El Forum - 02-14-2013

[eluser]zykapratama[/eluser]
my blog using ckeditor and ckfinder, i want to create a "Resource Types" to my different user accessing my blog, i follow instruction in
Code:
http://docs.cksource.com/CKFinder_2.x/Developers_Guide/PHP/Configuration/Resource_Types/New
but not working in my blog.

my "Resource Types" like this :
Code:
$config['ResourceType'][] = Array(
    'name' => 'User',
    'url' => $baseUrl . 'User',
    'directory' => $baseDir . 'User',
    'maxSize' => '2M',
    'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
    'deniedExtensions' => '');

and my configuration in "AccessControl" like this

Code:
if ($_SESSION[IDRole] == '3') {
    $config['AccessControl'][] = Array(
        'role' => '3',
        'resourceType' => 'User',
        'folder' => '/',
        'folderView' => true,
        'folderCreate' => false,
        'folderRename' => false,
        'folderDelete' => false,
        'fileView' => true,
        'fileUpload' => true,
        'fileDownload' => false,
        'fileRename' => false,
        'fileDelete' => false,
        'fileDownload' => false);
} else {
    $config['AccessControl'][] = Array(
        'role' => '*',
        'resourceType' => '*',
        'folder' => '/',
        'folderView' => true,
        'folderCreate' => true,
        'folderRename' => true,
        'folderDelete' => true,
        'fileView' => true,
        'fileUpload' => true,
        'fileRename' => true,
        'fileDelete' => true);
}

why ckfinder always show basket ???

not my folder "User" in my upload folder ???

thank's before....Resource Types