Is it possible to create a temporary download link for a package programmatically through PHP?
I know how to do this from the WordPress dashboard, but I would like to do it in a function.
I’ve been having the same issue since 6.7.4. Please check if your S3 bucket names or subdirectory names have a space in the name. After testing all morning, I’ve narrowed it down to this in my case:
If a bucket has a space in the name OR if a subdirectory within a bucket has a space in the name and you try to add a NEW file, the file is removed along with any existing files that were from that same bucket/directory. Be careful not to update packages for now where the files come from buckets/directories with spaces in the names or it will remove all of the files that came from that bucket/directory (I found out the hard way) .
If you add a file from a bucket that has no spaces in the name, then the files attach and stay attached successfully. I have another ticket open about this and I updated support in that ticket so that hopefully they can fix the issue on their end. We shouldn’t have to rename our buckets or subdirectories since the issue started with version 6.7.4 AND doing so would break most or all of our download links. I hope this information is helpful.
Please kindly adjust page link from Downloads > Settings > Frontend Access > User Dashboard > Dashboard Page, I have already adjusted a page, you can choose yourself too. Please kindly check.
Hi Mister Riddhi,
It doesn’t matter which package we use. In ALL packages or download variants it sends an e-mail to the person who starts a download.
I have activated the global function “Download Instantly” in the “After Submitting form” settings
and deactivated “Mail download link”.
But it still sends an e-mail. This should not happen. I don’t want to send an e-mail.
I am using the plugin on a simple site with only 5 documents. 3 of the 5 links work correctly where they preview the document in the browser window. The other two prompt for the document to be downloaded before viewing. I want all the links to work the exact same way, preview in the browser. How can this be adjusted? https://bomepharma.com/ is the website. Resources is where the downloads are.
I have a question regarding the shortcodes used to display files from a package directly in the “Downloads” tab of a product.
How does the following scenario work:
We’re exporting products from Shop A and importing them into Shop B.
However, Download Manager is only installed in Shop A – it’s not installed in Shop B.
Since the shortcodes are transferred during export, I’m wondering:
Will the linked files still load and display correctly in the new shop (Shop B)?
Or will the shortcodes be ineffective because the files are no longer available or properly linked in the new environment?
On New link Template123 you have used PHP code , please only use HTML from editor, it supports html only there. If you want to use PHP you can directly edit PHP file. For editing files and backup you can check this doc, https://www.wpdownloadmanager.com/doc/template-files. Please kindly check and let me know.
For search issue I think it can be conflicted with other scripts/plugins/active theme, Am i able to disable one by one other plugins for testing if there any conflicts, switching theme to another for checking. Please kindly let me know.
For emails issue, you can find them from Downloads > Templates > Email templates, please kindly check.
For deactivating membership plan issue you can check the options from Membership > Subscriber/Subscriptions section. Please kindly check.
For hide issue, you can customize templates from Downloads> templates > Link/Page Template , you can clone/create new template from theere and assign the templates from the package settings. Please kindly check.
My files are stored on on amazon S3. Since we switched over when one clicks the download button the tab switches and opens the file. my client wants it to download directly and the user should stay on the sites page.
You can use our advanced Custom Fields Add-on to add the old package link as a custom field in the new package settings. This custom field tag can then be easily inserted into your download page template.
If you’d like, I’d be happy to create a quick demo video to show you how it works!
I hope this message finds you well and thanks for reaching out.
If you’d like to link two packages together, you can do so using a page template. Simply create a template for the new package’s download page and include a link to the previous package within it. This way, when users visit the download page for the new package, they’ll also have the opportunity to discover and explore the older one.
ich würde gerne ein älteres Paket in einem neuen Paket verlinken.
Hintergrund: ich habe mehrere Pakete, die unter anderem die selbe Datei beinhalten. Damit ich bei einer Änderung dieser Datei nicht jedes Paket bearbeiten muss, möchte ich ein Paket mit nur dieser Datei immer wieder verlinken.
Mit dem einfachen Shortcode funktioniert das bisher nicht.
Kann mir jemand weiterhelfen?
Search Results for 'download link'
Topic: Sort and Search Result doesn’t work.
Stefano Sudati
Hi, I can’t get both sort and search to work on the download page.
I used:
[wpdm_category id="126" operator="IN" toolbar="1" paging="1" orderby="title" order="asc" items_per_page="100" cols=1 async=1 template="link-template-calltoaction3"]
Can you help me please.
Thanks!
Topic: Create a temporary download link via PHP
Paul Phillips
Is it possible to create a temporary download link for a package programmatically through PHP?
I know how to do this from the WordPress dashboard, but I would like to do it in a function.
Topic: Links working differently
Glenn Davila
I am using the plugin on a simple site with only 5 documents. 3 of the 5 links work correctly where they preview the document in the browser window. The other two prompt for the document to be downloaded before viewing. I want all the links to work the exact same way, preview in the browser. How can this be adjusted?
https://bomepharma.com/ is the website. Resources is where the downloads are.
Topic: Advanced Access Control Errors
Benjamin Hurley
Im trying to customize the template ID and the category for Advanced Access Control via the following that is causing the site to crash.
1. Works fine
[wpdm_my_downloads]
2. Crashes site
[wpdm_my_downloads template=”link-template-default” category id=”mail”]
Please advise.
Topic: Shortcodes Package from A to B with Export and Import
Lina Christmann
Hey,
I have a question regarding the shortcodes used to display files from a package directly in the “Downloads” tab of a product.
How does the following scenario work:
We’re exporting products from Shop A and importing them into Shop B.
However, Download Manager is only installed in Shop A – it’s not installed in Shop B.
Since the shortcodes are transferred during export, I’m wondering:
Will the linked files still load and display correctly in the new shop (Shop B)?
Or will the shortcodes be ineffective because the files are no longer available or properly linked in the new environment?
Thanks in advance for your feedback!
Topic: download link is sending to new tabe
Mordy Rubin
Hi,
My files are stored on on amazon S3. Since we switched over when one clicks the download button the tab switches and opens the file. my client wants it to download directly and the user should stay on the sites page.
Can you please help me with this?
Thank you!
Topic: Andere Download-Pakete in neuem Paket verlinken
E. Wehrle GmbH
ich würde gerne ein älteres Paket in einem neuen Paket verlinken.
Hintergrund: ich habe mehrere Pakete, die unter anderem die selbe Datei beinhalten. Damit ich bei einer Änderung dieser Datei nicht jedes Paket bearbeiten muss, möchte ich ein Paket mit nur dieser Datei immer wieder verlinken.
Mit dem einfachen Shortcode funktioniert das bisher nicht.
Kann mir jemand weiterhelfen?
Topic: How to upload a custom template with a parent or child theme?
Lou Friedman
I created my own template and put it in /plugins/download-manager/Package/views/link-templates/my-template.php
Is there a location I can use in the parent theme or child theme so that when I update the plugin, the custom template is not overwritten/lost?
Thanks!