I have tried customising the link like this and also php hooks etc.
<div class=”ml-3″ align=”right”>
[download_link]
</div>
FYI, from Flywheel:
—————————————————-
This File: wp-content/plugins/download-manager/libs/class.FileSystem.php
This Function: imageThumbnail
This line $path = str_replace(site_url(‘/’), $abspath, $path); This is giving us the wrong path to the file.
Some plugins and themes make the assumption that one of these files/folders (most commonly wp-load.php) will be in the site root, and will try unsuccessfully to hardcode a link to it there. In order to fix it the plugin shouldn’t rely on ABSPATH when gathering URLs. As a temporary fix we set $abspath to the correct path by hand in wp-content/plugins/download-manager/libs/class.FileSystem.php.
Yep. I have the link template selected on each package. However, the file still downloads immediately without displaying the popup form.
If I lock it, it displays the wrong link template layout.
This reply has been marked as private.
Perfect. Now I have a new problem though. Efter updating the plugin WPDM Archive Page doesn’t work. The shortcodes aren’t loaded anymore.
Under Downloads -> Settings -> Archive Page Options I’ve set the option to use “link template”. I’ve tried with shortcodes such as
[wpdm-archive cat_view=”compact” button_style=”default” link_template=”link-template-extended.php” order_by=”post_title” order=”asc” items_per_page=”20″]
and
[wpdm-categories cols=3 subcat=1]
but none of them work. I’ve followed the documentation here but without luck: https://www.wpdownloadmanager.com/doc/installation-usage/
Do you have an idea what might cause this problem?
This reply has been marked as private.
Hello,
When I forward the download link e-mail sent by the system to another e-mail, I do not want it to download the download link.
I just want people who have left me with their information on the site to be able to download files.
1 person leaves his information, he drops a mail from the system, there is a download link in the room, when he says forward the mail, someone else can download that file.
Can we prevent this?
Thank you.
Best Regards
We have followed all of the troubleshooting steps in the link you provided — we have flushed permalinks, ensured the correct WordPress rules are in the .htaccess file and can confirm that mod_rewrite is enabled on our server and this website’s account. The rest of the site is working fine, the 404 errors are only coming from the WP Download Manager plugin.
The 404 errors for this package are all referencing your plugin’s cache folder e.g. /wp-content/uploads/wpdm-cache/1601253451wpdm_P1050949-48×48.JPG
We have cleared the plugin’s cache and can confirm that files with matching names exist in the /wp-content/uploads/download-manager-files/ folder.
Can you please explain why your plugin is generating all of these 404 errors from the wpdm-cache folder, and why we can’t save changes to the “Select Members” option?
This reply has been marked as private.
This reply has been marked as private.
Great that works. FYI in the page you sent link for, the Example short-code to query any author’s downloads may have a typo: should “orderby” be “order_by”? Thanks.
I want the download button to look exactly like it currently does here: https://www.coldspringusa.com/building-materials/resources/, but I want it to function differently, and have it open the pop-up form, rather than downloading the link immediately.
This reply has been marked as private.
Hello,
I’d like for the download button on this page: https://www.coldspringusa.com/building-materials/resources/
To function like the download button on the individual pages: https://www.coldspringusa.com/download/3-way-split-retaining-wall/
How can I do this?
FYI. This functionality was working properly on our old server (using v5.0.4 of the plugin) We recently moved the site to Flywheel and it stopped working (now using v5.3.5 of the plugin)
I prefer not to share my URL as my website is of an adult nature. ‘
It is pretty clear as I have said.
When I enable the recaptcha lock on a download package clicking on any download link for that package on front end results in a new tab opening and two simultaneous downloads initiating for the same file after completing the captcha and clicking “download”. It is like the new tab initiates a download and also the original tab as well.
Without the recaptcha lock enabled on the download packages everything works fine, clicking the download button gives an intsant download no new tab opening now double downloads..
– Steven
-
This reply was modified 4 years, 6 months ago by
Steven Minix.
Yes this caused after restored my data base from February 25, 2021. All download link is empty. Normaly, what table have stocked all info for your Plugin? I can Try to restore only this table
We are not facing the issue with the dropbox addon. However, we would like to remove the dropbox add-on and want to upload files directly to the server. However, the plugin doesn’t create dynamic unique links that should change themselves after one download. Is there any addon to create dynamic unique links?
I Hope, this makes sense.
Ugh… not working for me. Or maybe I am too clumpsy with the php editor.
It is xtrange. Days ago, it did work perfectly without the Form Lock plugin. Yesterday it broke. I had to download (and buy) the Form Lock Extension. And now it works, but users are not getting the download link after sending CF7 form. I guess it is something about redirection, but I can not configure it properly.
Thanks for your help!
This reply has been marked as private.
by default, you are using link-template-default.php
for link template and page-template-default.php
for the page template. you can follow this doc, https://www.wpdownloadmanager.com/doc/template-files/ for back-up your files, As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in tpls>page-templates
for page template or tpls>link-templates
for link template.
For opening in new windows, please add this code replacing [download_link]
in page/link templates PHP file as i described above,
<a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>
thanks
This reply has been marked as private.
This reply has been marked as private.
Hi,
From the package settings, you shall get the option page-template
, you can also set link-template
for the package shortcode, please check the shortcodes here from this doc, https://www.wpdownloadmanager.com/doc/short-codes/
thanks
This reply has been marked as private.