getredhawkstudio

getredhawkstudio supports this item

Supported

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

Show more

Contact the author

This author provides limited support for this item through this item's comments.

Additional information from getredhawkstudio:

Support for my items includes:
  • Responding to questions or problems regarding the item and its features
  • Fixing bugs and reported issues
  • Providing updates to ensure compatibility with new software versions
Item support does not include:
  • Customization and installation services
  • Support for third party software and plug-ins
by
by
by
by
by
by