-
Search Results
-
Topic: Package page not public
I have created a package for each user of the website. When I create a package in the “Access” option I remove “All visitors” and I select only the specific user I need. This way noone else can download the files uploaded for that user.
The issue is that his download page URL is still visible and public and you can see the list of all his files names.
Example: https://gbfersrl.it/download/slug-of-package/
Even if a visitor can’t download any file, it is a privacy issue to show the names of the downloads.
So far I have solved the issue by creating this snippet that hides the subpages of the download page from logged out users,
add_action('init', 'restrict_download_subpages_to_logged_in_users'); function restrict_download_subpages_to_logged_in_users() { // Get the current path $request_uri = $_SERVER['REQUEST_URI']; // Check if the URL starts with /download/ and is not exactly /download/ if (preg_match('#^/download/.+#', $request_uri)) { // If user is not logged in, redirect to login if (!is_user_logged_in()) { wp_redirect(home_url()); exit; } } }HOWEVER I need a solution in order to show the entirety of the package url only to the user I have attributed the Access to.
Hei!
I am able to add and view custom fields, but they are lacking important attributes and functionality.
- URL: It must allow 3 properties when rendering inputs for this type, namely:
- Link text: How the link will be displayed
- Link URL: (this is the only thing that is provided now)
- Target: Same window or a new window (_self | _blank)
- Date:
- Format: Currently only ‘mm/dd/yyyy’ is supported for input, and displays only “%l %d, %Y” (php date format). This should be user specifiable as it is very much region dependent. We use ‘dd.mm.yyyy’ and “%d.%D.%Y” for input and display.
- Datetime: Currently type not supported. Can be its own or as part of Date
Screenshot: Admin UI for input
Will greatly appreciate if these can be added!
Thanks and regards,Hei!
1. When a document is uploaded (so it is natively available in wordpress), the preview renders properly.
2. However, if the document is added as a remote url, the preview is not generated/shown. An empty screen appears, instead.Attaching screenshots–
- Test scenario: https://app.screencast.com/cOmAFJqfXDUGu
- Working case: https://app.screencast.com/gZ7BgtrPDy9VI
- Error case:
- Empty preview (with error): https://app.screencast.com/LbqBYE9ndvf9l
- Error detail: https://app.screencast.com/j4HvCbwavJlIq