开发者 | Potsky |
---|---|
更新时间 | 2016年4月8日 05:49 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 4.2.7 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
[s2member_secure_files_browser /]
.
The shortcode will display a file browser item with only granted directories for current user.
The shortcode can handle :
access-s2member-level0
directory for level #0 and more usersaccess-s2member-level1
directory for level #1 and more usersaccess-s2member-level2
directory for level #2 and more usersaccess-s2member-level3
directory for level #3 and more usersaccess-s2member-level4
directory for level #4 and more usersaccess-s2member-ccap-*
custom capabilities directories for according userscollapseeasing
: Easing function to use on collapsecollapsespeed
: Speed of the collapse folder action in mscutdirnames
: Truncate directory names to specific chars lengthcutfilenames
: Truncate file names to specific chars lengthdirbase
: Initial directory from the s2member-files directorydirfirst
: Show directories above filesdisplayall
: Display all items without checking if user is granted to download themdisplaybirthdate
: Display files birth datedisplaycomment
: Display files commentdisplayname
: Display files displayname instead of regular files namedisplaydownloaded
: Show if a file has already been downloadeddisplaysize
: Display files sizedisplaymodificationdate
: Display files modification datedirzip
: Let directories be downloadedexpandeasing
: Easing function to use on expandexpandspeed
: Speed of the expand folder action in msfilterdir
: A full regexp directories have to match to be displayedfilterfile
: A full regexp files have to match to be displayedfolderevent
: Event to trigger expand/collapsehidden
: Show hidden files or notmultifolder
: Whether or not to limit the browser to one subfolder at a timenames
: Replace files name with custom valuesopenrecursive
: Whether or not to open all subdirectories when opening a directorypreviewext
: Display file preview button for these extensionss2alertbox
: Display the s2member confirmation box when a user tries to download a filesearch
: Let user search filessearchgroup
: Group shortcodes with a single single search boxsearchdisplay
: How to display search resultssortby
: Sort files in directories by a criteriaDashboard > s2Member > Secure File Browser
panel for admin (manage_options capability)Dashboard > Tools > Secure File Browser
panel for users[s2member_secure_files_browser folderevent="mouseover" expandeasing="linear" expandspeed="200" collapseeasing="swing" collapsespeed="200" multifolder="0" openrecursive="1" dirbase="/" hidden="1" dirfirst="0" openrecursive="1" filterdir="%2F(access%7Ctata)%2Fi" filterfile="%2F%5C.(png%7Cjpe%3Fg%7Cgif%7Czip)%24%2Fi" names="access-s2member-level0:General|access-s2member-ccap-video:Videos" search="1" searchdisplay="4D" /]
You can generate a shortcode with complex options with the Shortcode Generator
in the Dashboard > s2Member > Secure File Browser
panel
小工具s
You can display both fully customizable widgets for :
/s2member-secure-file-browser
folder to your /wp-content/plugins/
directory.It is recommended to add a deny from all
directive in your httpd.conf
for your s2member-files directory in order to avoid people directly access your protected files. Do not put the deny
directive in the s2member-files/.htaccess
because this file is always regenerated by s2member and your modifications are always overwritten.
Even if you set shortcode option hidden
to 1
, .htaccess
will never been displayed.
access-s2member-level*
protected if they are not in the root directory ?Yes ! And access-s2member-ccap*
too !
Invalid nonce
for registered users.The authentication on your website is broken because of a plugin (AJAX requests not correctly handled).
This behaviour is correct and it is protecting your files !
It happens for example when your authentication is only performed in a HTTPS form and the navigation is done in HTTP.
If you use the Wordpress HTTP
plugin from http://mvied.com/projects/wordpress-https/ for example, you have to force HTTPS on each page which includes the s2member Secure File browser.
s2member-files/app_data
windows directory ?In windows installations, put all files in s2member-files\app_data
instead of s2member-files
directory.