Code

Support for File Manager Plugin For WordPress

Support for File Manager Plugin For WordPress

Cart 3,842 sales

getredhawkstudio does not currently provide support for this item.

Popular questions for this item

How do I stop .tmb file from displaying inside the filemanager?

Find connector.php inside the filemanager plugin folder, open it in an editor and add these lines to the roots array below accessControl:

'attributes' => array(                
   array(
             'pattern' => '/.tmb/',
             'read' => false,
             'write' => false,
             'hidden' => true,
             'locked' => false
            )

)

If you want more than one type of files to stop showing up in the filemanager, you can do this:

'attributes' => array(                
   array(
             'pattern' => '/.tmb/',
             'read' => false,
             'write' => false,
             'hidden' => true,
             'locked' => false
            ),
   array(
             'pattern' => '/.quarantine/',
             'read' => false,
             'write' => false,
             'hidden' => true,
             'locked' => false
            )
)

The whole $opts will look like this:

$opts = array(
    'roots' => array(
        array(
            'driver'        => 'LocalFileSystem',   // driver for accessing file system (REQUIRED)
            'path'          => $abspath['path'],         // path to files (REQUIRED)
            'URL'           => $abspath['URL'],  //$plugin_arr, // URL to files (REQUIRED)
            'accessControl' => 'access',             // disable and hide dot starting files (OPTIONAL)
            'attributes' => array(                
               array(
                         'pattern' => '/.tmb/',
                         'read' => false,
                         'write' => false,
                         'hidden' => true,
                         'locked' => false
                        )

            )
        ),

    )
);

How to change the default levels depth when selecting a folder?

In the file manager plugin folder, edit the settings.php file and on line 5 you will see: define('FILE_LEVELS', 3); The 3 represents the folder depth, you can change it to 4 or more for more folder depths.

How can I change the folders list in the backend from root of wordpress installation to a subfolder?

You can edit the settings.php file inside the plugin folder, on around line 16, you will see this: $directory = ABSPATH; $directory = str_replace('\\', '/', $directory); You can change it to you own path: $directory = ABSPATH; $directory = str_replace('\\', '/', $directory); $directory = "your_own_folder_path";

Any folder path you write, all its subfolders will show up in the folders list. But make sure you copy the path from the server exactly, the paths are usually like this:
/public_html/www/mysite/wp-content/uploads/

How can I change the default folder created for each user?

You can edit the filemanager.php file and change the folders like this: On Line 312 and 313, replace this:
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/'.$user->user_login.'/'); $newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/'.$user->user_login.'/'); With:
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/users/'.$user->user_login.'/'); $newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/users/'.$user->user_login.'/');
And do the exact same thing at line 198 and 199 too. Follow this link for clear code:
https://gist.github.com/jamalkhan2k6/ef10156cd20b75fc7673

How to change the default folder which is assigned to each user to a single shared folder among all the users?

To change the default folder that has been assigned to each user to a single shared folder, you need to edit the file named “filemanager.php” and on lines 198-199 and line 312-313 you will find this:
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/'.$user->user_login.'/'); $newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/'.$user->user_login.'/');
With something like this:
$newdir = str_replace("\\", "/", $upload_dir['basedir'].'/clients/'); $newurl = str_replace("\\", "/", $upload_dir['baseurl'].'/clients/');
This will make set the default folder for each user to be “clients” inside uploads folder. Also make sure you make these changes on both locations (line 198-199 and line 312-313).

Show more

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey