-
Search Results
-
I’m having trouble creating a custom page with Elementor for URLs, such as the page: https://try.wpdownloadmanager.com/download/67c1c0d6ed620/
I want to add the title and the bradcrumb. I haven’t used it for a long time, so I must have forgotten how to do it.
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.
In my wordpress shop (using woocommerce), I use gifs as primary image for my products. In WPDM, I tried to do the same, and set a gif as the main image of a download, but the gif gets processed by the plugin. Instead of loading the image from my wordpress library, it puts the image into wpdm-cache and loads it from there. I opened the direct url to the gif, and the gif is no longer playing, seems like it was processed/resized and now its a static gif. Is there any way not to use the wpdm cache and when I add a photo to a download, just have it load from my wordpress library? Instead of processing the images (and thus, making the gif static.
Thanks in advance for the reply!
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