
內容簡介
s2Member Secure File Browser 是一個 WordPress 外掛,用於從 s2Member® WordPress Memberships 外掛的 secure-files 位置瀏覽文件。
簡碼
您可以通過簡碼 [s2member_secure_files_browser /] 顯示文件瀏覽器。
簡碼將顯示僅該當前用戶被授權的目錄的文件瀏覽器。
簡碼可以處理以下類型:
access-s2member-level0 目錄,用於 #0 级及更高級別的用戶
access-s2member-level1 目錄,用於 #1 级及更高級別的用戶
access-s2member-level2 目錄,用於 #2 级及更高級別的用戶
access-s2member-level3 目錄,用於 #3 级及更高級別的用戶
access-s2member-level4 目錄,用於 #4 级及更高級別的用戶
access-s2member-ccap-* 自定義能力目錄,根據對應用戶
任何只能以只讀權限僅供所有用戶查看的目錄。
所有這些功能文件夾都可以位於任何位置,它們可以使用多次。
單擊文件將根據 s2member 文件訪問控制啟動下載。
請在儀表板 > s2Member 菜單 > 安全文件瀏覽器中使用簡碼生成器生成複雜值。
可用的簡碼選項
collapseeasing:收起時使用的過渡函數
collapsespeed:折疊文件夾操作的速度(以毫秒為單位)
cutdirnames:截斷目錄名稱的特定字符長度
cutfilenames:截斷文件名稱的特定字符長度
dirbase:從 s2member-files 目錄的初始目錄
dirfirst:在文件上方顯示目錄
displayall:顯示所有項目而不檢查是否授予用戶下載權限
displaybirthdate:顯示文件的創建日期
displaycomment:顯示文件的註釋
displayname:顯示文件的顯示名稱而不是常規文件名
displaydownloaded:顯示文件是否已經被下載
displaysize:顯示文件大小
displaymodificationdate:顯示文件的修改日期
dirzip:讓目錄能夠被下載
expandeasing:展開時使用的過渡函數
expandspeed:展開文件夾操作的速度(以毫秒為單位)
filterdir:完整的正則表達式目錄必須匹配才能顯示
filterfile:完整的正則表達式文件必須匹配才能顯示
folderevent:觸發展開/折疊的事件
hidden:是否顯示隱藏文件
multifolder:是否限制瀏覽器僅顯示一個子文件夾
names:使用自定義值替換文件名稱
openrecursive:是否在打開目錄時打開所有子目錄
previewext:為這些擴展名顯示文件預覽按鈕
s2alertbox:當用戶嘗試下載文件時顯示 s2member 確認框
search:讓用戶搜索文件
searchgroup:用單個搜索框聚合簡碼
searchdisplay:如何顯示搜索結果
sortby:按標準對目錄中的文件進行排序
外掛標籤
開發者團隊
② 後台搜尋「s2member Secure File Browser」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
s2Member Secure File Browser is a wordpress plugin for browsing files from the secure-files location of the s2Member® WordPress Memberships plugin.
Shortcode
You can display the file browser via the shortcode [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 users
access-s2member-level1 directory for level #1 and more users
access-s2member-level2 directory for level #2 and more users
access-s2member-level3 directory for level #3 and more users
access-s2member-level4 directory for level #4 and more users
access-s2member-ccap-* custom capabilities directories for according users
any directory for all users in read only (unable to download)
All these featured folders can be located anywhere and they can be used several times.
Clicking on a file will launch the download according to the s2member files access control.
Please use the shortcode generator in the Dashboard > s2Member Menu > Secure File Browser to generate complex values.
Available shortcode options
collapseeasing : Easing function to use on collapse
collapsespeed : Speed of the collapse folder action in ms
cutdirnames : Truncate directory names to specific chars length
cutfilenames : Truncate file names to specific chars length
dirbase : Initial directory from the s2member-files directory
dirfirst : Show directories above files
displayall : Display all items without checking if user is granted to download them
displaybirthdate : Display files birth date
displaycomment : Display files comment
displayname : Display files displayname instead of regular files name
displaydownloaded : Show if a file has already been downloaded
displaysize : Display files size
displaymodificationdate : Display files modification date
dirzip : Let directories be downloaded
expandeasing : Easing function to use on expand
expandspeed : Speed of the expand folder action in ms
filterdir : A full regexp directories have to match to be displayed
filterfile : A full regexp files have to match to be displayed
folderevent : Event to trigger expand/collapse
hidden : Show hidden files or not
multifolder : Whether or not to limit the browser to one subfolder at a time
names : Replace files name with custom values
openrecursive : Whether or not to open all subdirectories when opening a directory
previewext : Display file preview button for these extensions
s2alertbox : Display the s2member confirmation box when a user tries to download a file
search : Let user search files
searchgroup : Group shortcodes with a single single search box
searchdisplay : How to display search results
sortby : Sort files in directories by a criteria
All informations about these options are well documented in :
Dashboard > s2Member > Secure File Browser panel for admin (manage_options capability)
Dashboard > Tools > Secure File Browser panel for users
Example (A shortcode has to be defined on one line, here is on several lines below only for better understanding) :
[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
Widgets
You can display both fully customizable widgets for :
Top downloads
Latest downloads
Latest available files
Dashboard
The admin panel is reachable via the Dashboard > s2Member Menu > Secure File Browser menu.
Available features are :
Statistics : display all downloads/top downloads/top downloaders, sort and apply filters by date, user, file, IP Address, …
Statistics : download stats in XML and CSV format
Statistics : display current s2Member accounting, sort and apply filters by date, user, file and file
File Browser : Rename, delete, comment and add a display name for files and folders
Cache management : Rebuild file cache
Shortcode generator
Shortcode documentation
Settings : Received an email each time a user downloads a file
Settings : Received scheduled reports
Settings : How many logs you want to keep ?
Settings : Delete logs
Settings : Give access to others users to some parts of the admin menu
Don’t hesitate to ask me new features or report bugs on potsky.com !
What’s next?
All futures requests are handled on GitHub
Translators
Serbo-Croatian : Borisa Djuraskovic at http://www.webhostinghub.com
French : Potsky
