Hello guys,
Right now, I’m using this code to generate my download button:
$data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' ► 'link'
));
It generates this kind of HTML:
<a class="wpdm-download-link btn btn-primary " rel="nofollow" href="#" onclick="location.href='https://mysite.com/?wpdmdl=5286&refresh=5c6d13a29aef41550652322';return false;"><span>Download</span></a>
In the <a>
tag, I would like to add a data-url attribute that will contain the href to the file. How can I do that? How can I get only the url, not the full <a>
tag ?
In fact, I need that because I want to create a “Download selected files” button, that will launch multiple downloads at once, depending on selected packages. (not all-in-one ZIP, but trigger each download separately). How would you do that?
Thank you in advance,
Cedric
We have just migrated multiple WordPress sites which use the Download Manager plugin to a new server with php 7.1.26 installed (the old server used 5.3). Ever since, the download buttons on WPDM package pages do not work – they do change the url of the window, but nothing downloads. However, if you remove the “WPDM Package URL Base” and the package name from the URL in the address bar, you not only get the download, but also the BEHAVIOUR configured in Download Manager settings (eg. if it is configured to try and open the file in browser, it does so, otherwise it simply downloads).
Can you please advise why this has happened, and is there a simple config change we can make to correct it?
Thanks in advance
All new uploads to my site have recently encountered this error:
<b>Notice</b>: A non well formed numeric value encountered in <b>/public_html/people/wp-content/plugins/download-manager/libs/class.DownloadStats.php</b> on line <b>35</b><br />
Line 35 of the mentioned file:
$udl[“”.$index] = isset( $udl[“”.$index] ) && is_int( $udl[“”.$index] ) ? $udl[“”.$index] + 1 : 1;
This has meant that all PDF previews do not work. I can still download the document, .docx previews do not work either.
The attached screenshot is what the preview is rendering the PDF as with the error at the top.
line 35 mentioned above was double checked with a previous post to ensure it was the same as required. I updated the plugin as well to see if that would fix it and it has not.
Need some help with this asap. Thanks.
I recently renewed my license and upgraded to DM Pro 4.9.2. How do I customize the look/feel of the all downloads page so that it doesn’t look like it does now?
Hi there,
Question for this evening, i am using Download manager since many many years and i’m completely satisfied.
Using the 4.1.3 since i installed it with another plugin to order download by alphabetical order, i decided to update it with the lastest version of WPDM.
Badly, i had to postpone the update due to some graphic changes/issues with my template that was not supported anymore with the lastest wordpress.
during the time i need to investigate to modify WPDM template to fit my old wordpress template, is there a way to order download by name? i saw few times on google some short code or other things, but there is actually no short code to input. I add a category, add downloads to it, and i add the link of the category on my menu. thats it (unless i missed something)
Which file should i modify for ALWAYS having all my downloads, from any category to be orderded by alphabetical order?
My goal is to remove the other plugin that was re-ordering downloads on top of WPDM.
Thanks!
actually using : “Alphabetic Pagination” plugin otherwise it’s always by date
A little question – just in case I have missed something!
So far if I have a download that I want to add, I do it manually: “New Download”, then give it a title, select the proper file for downloading, then select a category, then I go down and specify lock options (with some terms and conditions text to be accepted) and a custom icon.
But now I have just a few “types” of downloads, and I more or less have to copy over these data from one download to the next, and just change the title and the file name.
It would now be handy if I could just do one of the following:
– either “copy” a complete downlad definition with a new title, then “edit” and change the few things that are different
– or have some kind of “download template” that already includes all these things and from which I choose if I define a new download
Is this already there and I am only too stupid to find it? Or would it be part of another extension? Or is it just a “nice to have” that does not exist yet?
Regards,
Cornelis
Hi There;
I have several items I need help with, probably easy for you pros, but i’m unable to figure them out:
1) Users downloading from their cart get a 15 byte zip file regardless of the number of items in the cart. if they download individually or a complete package it works fine
2) I need to be able to display the file size and / or the file title in the cart vs. the file name – can this be done and if so how?
3) I need to modify the template i created for the package list to do the following:
a) the package title needs to be underlined in red to match the rest of the titles on the site
b) i need to remove the “related downloads” links at the bottom of the pages
thank you!
Bob
PS: I’ve been trying to post this for a couple of weeks, in firefox, if this works, it’s in safari… I wonder why?
Dear support
we moved WPDM to current version. Layout of templates were broken, so we deceided to change them…..At least we have a few problems left:
1. Pagination layout on mobile is weird… On some mobile devises pagination is loosing layout –> numbers not in one row, in two rows added… Is there a way to fix that problem? Maybe a option to change to forward / back function on mobile instead of pagination
2. if a second page is loaded through pagination, page does not jump to the start of the download overview. It stays at the end of the page. Normally it should jump to the beginning of the overview.
3. if we use “default” olayout for archive page –> how can we change categories to be
a. full width above the downloads
b. or above the downloads in two rows 50/ 50
4. if we use these layouts are used the page “jumps” always. does not reload smooth. Any way to change?
Thanks for your support Marc
Hi together,
i’ve a small issue with my download speed. For example:
– 5.75GB File download via http link (or added via http link in the download package) in 20 min
– Same file added via file manager loads in much longer time than 1 hour.
I testet also the download speed module with no entry (leave the field empty) or adding speed parameters like this: 100000000
The only option to get it fast again when a file was added via file explorer at the download package is: resumable downloads
When i deactivate it… its fast again. But then the webbrowser can’t calculate the time is left to get the download finished.
Has anyone an idea to get it better work?
Best regards
Christoph