Linux 软件免费装
Banner图

Library Viewer

开发者 pexlechris
更新时间 2026年5月30日 05:41
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2
版权网址: 版权信息

标签

file manager download manager FTP file list

下载

3.0.3 1.0.1 1.0.2 3.2.0 1.0.3 1.0.5 1.0.7 2.0.6 2.0.6.3 1.0.0 1.1.1 2.0.6.1 1.1.0 1.2.2 1.2.3 2.0.0 2.0.2 2.0.4 2.0.5 2.0.8 2.0.9 2.0.1 3.0.0 2.0.10 3.0.1 1.1.2 2.0.3 2.0.6.4 2.0.7 3.0.2 3.0.4 3.1.0 3.3.0 1.2.1 2.0.6.2

详情介绍:

New in Version 3.3.0: Admin Library Viewer! You can now manage and browse your library directly from your WordPress dashboard. Go to Media > Library Viewer to get started. With Library Viewer, you can display the containing files and the containing folders of a "specific folder" of your (FTP) server to your users. For the free version, the plugin displays the contents of the "library" folder in your site's root directory (e.g., yoursite.com/library). To display any other directory, you can use the path parameter available in Library Viewer Pro. Whether you want to share documents with your customers on the front-end or manage them internally from the WordPress dashboard, Library Viewer provides a seamless and secure experience. The significant difference from other similar plugins is that:
  1. You can allow users to view that the files exist, but cannot open them if they are not logged in (or if they are not administrators, or authors etc...).
  2. You can allow users to view files in a custom viewer or redirect them through a RESTful web service of your choice (examples exist below).
  3. Admin Integration: Administrators can now browse the library directly from the WordPress back-end, making file management easier than ever. DEMO
Key Features:

安装:

  1. Download the plugin from the Official WP Plugin Repository.
  2. Upload the plugin through your WordPress Dashboard (Plugins > Add New > Upload Plugin).
  3. Activate the plugin through the Plugins menu.
  4. For quick configuration and usage instructions, please refer to the Quick Start section at the beginning of this document.

屏幕截图:

  • Not all files and folders are displaying in the front-end Library Viewer because of their special names (hidden-folder, hidden-file, .php etc.)
  • The string-value of the $text_at_beginning variable is displayed between the breadcrumb and the folders, the string-value of the $text_at_end variable is displayed below the folders & files.
  • The settings of the default Library Viewer admin page
  • The displayed library according to the settings from the previous screenshot.
  • With Library Viewer File Manager Add-On, you can give the ability to some of your users to manage the library from the front-end.

常见问题:

How can I use the new Library Viewer Admin Page?

Starting from version 3.3.0, you can access your library directly from the WordPress back-end. Simply navigate to Media > Library Viewer. You can browse your files in the "Library" tab and customize the page title or access permissions in the "Settings" tab. This is perfect for administrators who need quick access without leaving the dashboard! Read more in ADMIN PAGE DOCUMENTATION

How can I grant library access only to my WooCommerce customers?

You can use the Library Viewer for WooCommerce Add-on. It allows you to link specific folders to WooCommerce products, granting access automatically upon purchase.

Can users upload or manage folders & files from the front-end?

Yes, by adding the Library Viewer File Manager Add-on. This enables front-end uploading, renaming, and deletion of files and folders based on user roles.

Can I display a folder that is outside of my WordPress root directory?

Yes, with Library Viewer Pro you can display any folder on the same server, even if it is outside your WordPress installation directory (e.g., above the public_html folder), as long as the server's PHP has access to it. This can be achieved using the lv_filter_global_abspath filter to change the default ABSPATH to the root path of the folder you want to display. For more detailed instructions and code examples on how to set this up, please feel free to ask in the support forum. As you can see, I usually respond within a few hours to help you out!

Can I hide specific folders or files from the library?

Yes. By default, the plugin hides:

  • Folders containing the string "hidden-folder" in their name.
  • Files containing the string "hidden-file" in their name.
  • All .php and .ini files. Rename your files or folders accordingly to hide them. For more advanced control (including specific inclusion/exclusion lists), you can use Library Viewer Pro.

Can I forbid the direct access to the files in my library?

Yes, with Library Viewer Pro you can protect your files so they are only accessible through the plugin's viewer, preventing direct URL access. See this support topic: wordpress.org/support/topic/executable-pdf-file

How can I deny users from executing PHP files in my library folders?

To enhance security, you should add the following code to a .htaccess file inside the folder you want to protect: <Files *.php> deny from all </Files>

Are there shortcode examples?

You can test your own use cases in the DEMO

Which Page Builders are compatible with Library Viewer?

Library Viewer have been tested with TinyMCE (Classic Editor), Gutenberg, WPBakery, Visual Composer, Elementor and works fine! Generally can be used, everywhere that shortcodes are accepted...

Library Viewer does not work properly and/or I get some ERRORS. Why?

  • Check your permalinks PLAIN PERMALINKS ARE NOT SUPPORTED. Please change your permalink from /wp-admin/options-permalink.php to something else.
  • Check the folders' and files' read permissions (safe choice is to use 644)
  • If you use the plugin Remove Uppercase Ascents and a CSS code like .library-viewer--folder{text-transform: uppercase;} maybe this cause the problem. The solution in this case is to use instead this CSS code: .library-viewer--folder h3 a{text-transform: uppercase;}
  • Check if the file or folder has special characters in its name. Some are not supported as names of folders and files such as %. In this case, contact me via email or via support forum to find a solution!
  • For other problems, you can open a support ticket in support forum

Can I add my custom text inside a folder of front-end library viewer?

Yes. If you want to add text above the front-end folders or below the front-end files, you can create via FTP a file with name "include.php" in the FTP folder that you want texts to be shown in front-end. HTML tags are allowed! Your texts must be values of php variables ($text_at_beginning , $text_at_end respectively) as you can see below: `   Also, you can use the hookslv_folder_text_at_beginningandlv_folder_text_at_end` respectively for this scope. = Is Library Viewer' file viewer supports all mime types (file extensions)? From 1.1.2, the Library Viewer' file viewer supports all mime types that WordPress supports. These that included in the function: wp_get_mime_types() If you want to add support for mime types that are not included, use the WP filter: lv_mime_types to include them. Read more in HOOKS DOCUMENTATION Read also how to add PHP hooks in your WordPress Site in my blog = I want all files to be downloaded. Is that possible? Yes, you need to use the Library Viewer' file viewer (my_doc_viewer="library-viewer") and to add the following hook in your functions.php add_filter('lv_mime_types', function(){ return array(); }); Read how to add PHP hooks in your WordPress Site in my blog

Can I change the colors or the fonts that plugin uses?

Yes. But only with plain CSS at the moment. So you can add your custom css from WP customizer (from Additional CSS)

I have a proposal for a new functionality of this plugin. Can I suggest it to you?

Yes. I need new ideas to improve my plugin. Send it to me via email or via support forum

更新日志:

3.3.0 3.2.0 3.1.0 3.0.4 3.0.3 3.0.2 3.0.1 3.0.0 2.0.10 2.0.9 2.0.8 2.0.7 2.0.6.3 2.0.6.2 2.0.6.1 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2
  • [Deprecated]: breadcrumb value has been removed from Library Viewer globals parameter of all hooks. From now, there is only in Library Viewer Pro's hooks
  • [Bug Fix]: Fix compatibility with Library Viewer Pro 2.0.1
2.0.1
  • [Bug Fix]: Fix bug of Library Viewer Pro. Files weren't opened...
2.0.0
  • Tested up to WP 5.7
  • [Enhancement]: Add compatibility for symbols #, ? for file names and folder names of your library
  • [Enhancement]: Security update: Hidden folders (that have in their name the string 'hidden-folder') and hidden-files (that have in their name the string 'hidden-ile'), now, are not accessible, if you know the full path of the hidden folder/file.
  • [Enhancement]: Now the file link is being encoded and then is appended to the my_doc_viewer parameter. If you don't want to be encoded use lv_my_doc_viewer_file_encoded filter.
  • [Deprecated]: library-viewer--current-breadcrumb-item class removed from breadcrumb current item. Replaced with the CSS rule .library-viewer--breadcrumb-item:last-of-type Hooks:
  • [Deprecated]: LV__folder_was_viewed action replaced with lv_folder_was_viewed action.
  • [Deprecated]: LV__array_replace_to__in_foldernames filter replaced with lv_folder_fake_path_symbols filter.
  • [Deprecated]: LV__array_replace_from__in_foldernames filter replaced with lv_folder_real_path_symbols filter.
  • [Deprecated]: LV__array_replace_to__in_filenames filter replaced with lv_file_fake_path_symbols filter.
  • [Deprecated]: LV__array_replace_from__in_filenames filter replaced with lv_file_real_path_symbols filter.
  • [Deprecated]: LV__folder_html filter replaced with lv_folder_html filter.
  • [Deprecated]: LV__file_html filter replaced with lv_file_html filter.
  • [Deprecated]: LV__file_was_viewed filter replaced with lv_file_was_viewed filter.
  • [New]: lv_file_identifier filter introduced. With this you can change the '/LV/' that is the part of URL of a file.
  • [New]: lv_before_breadcrumb_start action introduced.
  • [New]: lv_after_breadcrumb_start action introduced.
  • [New]: lv_breadcrumb_folder_delimiter_html action introduced. You can change the delimiter of folders of breadcrumb.
  • [New]: lv_breadcrumb_items action introduced. With this filter, you can alter the breadcrumb items, for example the folder name and folder fake link.
  • [New]: lv_before_breadcrumb_end action introduced.
  • [New]: lv_after_breadcrumb_end action introduced.
  • [New]: lv_empty_folder_html filter introduced. If the current folder contains neither files nor folders, an equivalent message will be displayed an with filter. With this filter you can change it.
  • [New]: lv_folder_text_at_beginning filter introduced. This filter allow us to add or change the text at beginning of the folder, i.e. the text before the first containing folder.
  • [New]: lv_containing_folders filter introduced. Containing folders of current folder filter.
  • [New]: lv_folder_icon_html filter introduced. Used to filter the html of folder icon.
  • [New]: lv_folder_html filter introduced. Used to filter the html output of printed folder.
  • [New]: lv_before_folder action introduced.
  • [New]: lv_after_folder action introduced.
  • [New]: lv_containing_files filter introduced. Containing files of current folder filter.
  • [New]: lv_file_icon_html filter introduced. Used to set a file icon using php.
  • [New]: lv_file_html filter introduced. Used to filter the html output of printed file.
  • [New]: lv_before_file action introduced.
  • [New]: lv_after_file action introduced.
  • [New]: lv_folder_text_at_end filter introduced. This filter allow us to add or change the text at end of the folder, i.e. the text after the last containing file.
  • [New]: lv_folder_was_viewed action introduced. Do some actions if a folder was accessed/viewed.
  • [New]: lv_file_was_viewed action introduced. Do some actions if a file was accessed/viewed.
  • [New]: Filter lv_my_doc_viewer_file_encoded introduced. With this filter you can determine if the file will be appended to my_doc_viewer as encoded or not default is true (encoded).
  • [New]: Filter lv_mime_types introduced. If you want to add support for mime types that are not included, use this filter.
1.2.3
  • Tested up to WP 5.6
  • [Enhancement]: In filter LV__folder_html introduced the $attributes parameter
  • [New]: filter LV__file_html introduced
1.2.2
  • Tested up to WP 5.5.3
  • [Enhancement]: Change Library Viewer Pro URL in plugins' page on dashboard
1.2.1
  • [Bug Fix]: False Positive: shortcode [library-viewer] seams to be used more than 1 times in the same page, but not
1.2.0
  • Tested up to WP 5.5.1
  • [New]: LV__folder_was_viewed wordpress action was added in the code
  • [Enhancement]: From 1.2.0, the shortcode settings are saved in database, not in files. Also, the folder /wp-content/uploads/library-viewer will be deleted!
  • [Bug Fix]: Now Library Viewer' shortcode is supported in the homepage too
  • [New]: library-viewer has been added to the available values that my_doc_viewer can get
  • [Bug Fix in PRO]: The shortcode [library-viewer] cannot be used more than 1 times in the same page. This feature is available in Library Viewer Pro
1.1.2
  • LV__mime_types wordpress filter was added in the code
  • LV__file_was_viewed wordpress action was added in the code
  • Tested up to WP 5.4.2
1.1.1
  • Some errors has been fixed!
1.1.0
  • now is possible to restrict users from open files by a capability using the have_file_access parameter
  • php die() replaced by wp_die() for more pretty messages
  • enhancement in code
  • delete folder library-viewer of your uploads folder on uninstall
  • now you can more easily add an icon in the front of a file using CSS
1.0.7
  • Library Viewer has been tested up to WP 5.3.2
  • PHP Notices fixed
1.0.6
  • Folders icons NOW are printed by css background-image attribute
  • Compatibility with sites that exist in a subdirectory fixed
1.0.5
  • SECURITY PATCH (Please update NOW)
1.0.3
  • Library Viewer has been tested up to WP 5.2.3
  • readme file was translated in Greek
  • Compatibility with Visual Composer have been tested and works fine
  • Instruction to fix the conflict with Remove Uppercase Ascents Plugin added in FAQ
  • Go Back button have been added in error messages
1.0.2
  • Library Viewer has been tested up to WP 5.2.2
  • Link notice for Library Viewer Pro has been added in the backend (WP Plugins Page)
  • Plugin URI has been fixed
  • A screenshot has been added in the Official WP Page of Library Viewer Plugin
  • Minor typo fixes in the readme file and Official WP Page of Library Viewer Plugin
1.0.1
1.0.0