| 开发者 | kistenstein |
|---|---|
| 更新时间 | 2026年6月23日 23:47 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
kistenstein-club-document-portal text domain; the interface follows each user’s WordPress language[kcdp_explorer folder="documents"]
Renders a file explorer for the named sub-folder. The area’s protection mode is configured in the setup wizard.
[kcdp_explorer folder="members" manage_password="1"]
Adds a shared-password manager panel for editors (requires the Password-Protected Page ID to be set under File Portal → Advanced).
[kcdp_trash]
Trash view with restore and permanent-delete actions. Visible to administrators only.
[kcdp_audit]
Audit log of all file actions (upload, download, delete, restore …). Visible to administrators only.
Configuration
[kcdp_trash] to a restricted admin page to manage deleted files..htaccess file written into the upload folder. This is honoured by Apache and LiteSpeed. If you run nginx, add an equivalent rule that denies direct access to the portal’s upload folder (e.g. location ^~ /wp-content/uploads/file-portal/ { deny all; }), so that protected files are only reachable through the plugin.
Privacy
When a file is deleted, the following metadata is stored in a trash index file on the server: the original file path, the WordPress user ID and display name of the user who deleted it, and the timestamps for deletion and scheduled expiry. The audit log additionally records, per action, the acting user, a timestamp and the request IP address. This data is stored only on your server and is never transmitted off-site.
[kcdp_explorer folder="documents"] shortcode to any page yourself.All files are stored in your WordPress uploads directory, inside the sub-folder you configure (default: wp-content/uploads/file-portal/). The trash folder (.trash/) is protected with an .htaccess file to prevent direct HTTP access.
Deleted files are moved to a hidden trash folder rather than immediately destroyed. An administrator can restore them or delete them permanently from the [kcdp_trash] view. Items older than the configured retention period (default 180 days) are automatically purged on the next trash-list request.
Yes. Each [kcdp_explorer folder="..."] instance is independent. Use a different folder value for each one.
By default: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, JPG, JPEG, PNG, ZIP. You can customise the list in Settings → File Portal.
The WordPress media library is built for editors working inside wp-admin. This plugin gives your members a front-end file explorer on a normal page — with their own folders, drag-and-drop upload, search and access control — without giving them access to the dashboard.
Yes. Use the shared password mode: the area is protected by a single page password that you hand out to your members — no individual accounts required. For named, per-person access use the role/group mode instead.
No. Every file is streamed through WordPress after the access check, and the upload folder is blocked from direct HTTP access via .htaccess. Protected files cannot be reached by guessing their URL. (On nginx, add the deny rule shown above.)
Yes. Add the Document Portal block to any page and choose the folder in the block sidebar. The [kcdp_explorer] shortcode remains fully supported.
Uploads use WordPress' standard handling, so the limit is whatever your server's upload_max_filesize / post_max_size allow. Ask your host to raise these if you need larger files.
Yes. The text domain is kistenstein-club-document-portal and the interface follows each user’s WordPress language. German (de_DE and de_CH) is bundled; create additional .po/.mo files in the languages/ folder, or use Loco Translate.
uninstall.php — optionally remove all plugin data (options and audit table) when you delete the plugin; off by default so nothing is lost by accident[kcdp_audit] audit-log shortcode documentation