Remove Error "There are no files to list."

Home \ forums/topic \ Remove Error "There are no files to list."

Support Home Page Forums Joomla Software Easy Folder Listing Pro Plugin Remove Error "There are no files to list."

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #132
    DaveOzric
    Participant

    I just purchased your plugin and it is perfect, although I wish I could delete files too. So with that in mind I had to buy RSFiles for deleting and uploading files for my users from the frontend. Long story short, it was the only thing I could find that worked.

    RSFiles puts everything in sub directories not in the root folder you select. So I need to remove the error that shows up in the root. There are no files to list. I figure it’s in a php file, but wanted to make sure I don’t mess it up. Not a code person.

    Thanks

    #1195
    Michael Gilkes
    Keymaster

    @DaveOzric. Thanks for purchasing my plugin. Actually, there is no need to edit any code to do that. Just go to the Plugin Manager and change the value of “Show Empty Message” to No. You can either do that, or change it in the instance:

    {easyfolderlistingpro showempty=0}

    I have a full list of the parameters and their function here: http://michaelgilkes.info/joomla-plugin-easy-folder-listing-pro/

    The Easy Folder Listing Pro is very flexible and configurable so please have a look at the available features before tinkering with the code. It will save you a lot of time.

    #1196
    Reid
    Participant

    I agree it is not an error but I also like the looks of it better without the “There are no files uploaded to this directory.” message when your root directory has no files in it. I think this is what DaveOzric is referring to.

    @DaveOzric, if you’re feeling somewhat brave and want to tinker with the code, you can go into the easyfolderlisting.php file on make the following change:

    Around line 650…

    FROM:

    //get the files in the root folder and display them

    $filelist = $this->sortedFileList($this->_params_array);

    $html.= $this->formatTableFileRows($filelist, $this->_params_array, 0);

    TO:

    //get the files in the root folder and display them

    $filelist = $this->sortedFileList($this->_params_array);

    //check if root folder is empty, otherwise fill filerows

    if (!empty($filelist))

    {

    $html.= $this->formatTableFileRows($filelist, $this->_params_array, 0);

    }

    I too wish to be able to delete the files through this plug-in as I have some advanced users and files are duplicates. I’ll be exploring how to do that next… 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove Error "There are no files to list."’ is closed to new replies.