开发者 | fabifott |
---|---|
更新时间 | 2017年6月20日 19:03 |
捐献地址: | 去捐款 |
PHP版本: | 3.1 及以上 |
WordPress版本: | 4.8 |
wp-filebase
folder with all it's files to wp-content/plugins
/wp-content/uploads/filebase
and make it writable (FTP command: CHMOD 777 wp-content/uploads/filebase
) for the webserver.location /wp-content/uploads/filebase { deny all; return 403; }
Read more in WP-Filebase documentation.This feature is called File Browser. Go to WP-Filebase settings and click on the tab 'File Browser'. There you can select a post or page where the tree view shoud appear.
In the post editor click on the WP-Filebase button. In the appearing box click on File list, then select a category. Optionally you can select a custom template.
To list all categories and files on your blog, create an empty page (e.g named Downloads). Then goto WP-Filebase Settings and select it in the post browser for the option Post ID of the file browser. Now a file browser should be appended to the content of the page.
Upload all files you want to add to the WP-Filebase upload directory (default is wp-content/uploads/filebase
) with your FTP client. Then goto WP-Admin -> Tools -> WP-Filebase and click Sync Filebase. All your uploaded files are added to the database now. Categories are created automatically if files are in sub folders.
You can change the HTML template under WP-Filebase -> Settings. To edit the stylesheet goto WP-Admin -> Tools -> WP-Filebase and click Edit Stylesheet. Since Version 0.1.2.0 you can create your custom templates for individual file lists. You can manage the templates under WP-Admin -> Tools -> WP-Filebase -> Manage templates. When adding a tag to a post/page you can now select the template.
WP-Filebase uses WordPress' default file type icons in wp-includes/images/crystal
for files without a thumbnail. To use custom icons copy the icon files in PNG format named like pdf.png
or audio.png
to wp-content/images/fileicons
(you have to create that folder first).
Goto WP-Filebase Settings and disable Permalinks under "Download". Try to disable other plugins. Disable WP_CACHE. Enable WP_DEBUG to get more info about possible errors.
WPFILEBASE_DISABLE_FILE_PAGES
GetPermissionWhere
Dashboard
wpfilebase_ajax_public_actions
.tmp
folder.0
in file size format for <1000 B%file_url_no_preview%
exec
$user_ID
%button_edit%
, %button_delete%
class getid3_lib not found
X._[key].thumb.(jpg|png)
-- This prevents thumbnails from being added as actual files when meta data is lost (on site migration)jquery-treeview
to wpfb-treeview
to avoid conflicts`%is_mobile%
Could not store rsync meta
%file_small_icon%
added to dropdown menuInline Add
to toggle the display of Add File/Category linksmysql_close
only called if exists%search_term%
Auto-detect thumbnails
is enabledfile://
scheme%file_user_can_edit%
Unknown column
errors%cat_edit_url%
%'
chars are escaped in download urls (see Github issue)preg_replace(): The /e modifier is deprecated
plugin_dir_url
function for better compatibility (from GitHub)%cat_id%
wp_check_filetype
GetFileHash
(thanks to Samir Megueddem)Fake MD5
to improve performance if MD5 not requiredapplication/x-windows-gadget
01.01.01-01.02.03.mp3
wpfilebase_file_downloaded
hook for download logging%cat_has_icon%
Destroy session when downloading
, this will now work in a different way'
func_get_args() can't be used as a function parameter
)sort
Small Icon Size
in File Browser settings to adjust the size of icons and thumbnails%file_display_name:20%
limits the name to 20 charactersInaccessible category message
%cat_user_can_access%
and %file_user_can_access%
%file_cat_folder%
debug
is set to 1 (add &debug=1 to the sync page URL and see the HTML source for backtrace)Download-button
TitleFilter
Destroy session when downloading
application/notebook
Frontend upload
controls the upload widget accessFiles before Categories
Default Category
Late script loading
for file browserWrong parameter count for trim()
GetRelPath
Attachments in post lists
to show attachments on index and search resultsedit_others_posts
(usually editor role and above) can edit others filesNo file was uploaded
folder.jpg
)Private Files
%file_added_by%
is now replaced by User NameInaccessible file message
is a URLThumbnail Path
Use path instead of ID in Shortcode
Attachment Position
wpfilebase_sync
to sync WP-Filebase from your pluginfile_category_name
to sort files by the name of their categorySend HTTP-Range header
Redirect to referring page after login
%search_form%
in list template footer or header)Automatic Sync
which enables hourly synchronizationsHide inaccessible files
is enabledProtect upload path
wpfb-ajax.php
%post_id%
, %file_type%
, %file_extension%
sample-v1.2.ext
)wp-content/images/fileicons
(see FAQ).file_url
in the download JavaScript for proper trackingETag
header (for caching)Missing argument 1 for WPFB_Item::WPFB_Item()
Uncategorized Files
Sync Filebase
to add uploaded files)Fatal error: Cannot redeclare wpfilebase_inclib()
private
in class property declarations to make the plugin compatible with PHP 4Direct linking
label of upload form[filebase:attachments]
which lists all files associated with the current articlefile_requirements
template field. You should reset your WP-Filebase settings if you want to use this.