Hi,
You are using the Free version of Download Manager there. The free version has limited number of templates. It doesn’t have the link-template-panel-1-3
link template. If you purchased the Pro version of plugin please install it to render the Panel template.
Thanks.
Please send me the URL to check. I will suggest required CSS that you can add to change download link color. You can also use Image Button add-on to show beautiful download buttons instead of just links.
Hi Andrew,
PHP is not supported in link/page template. But you don’t need PHP for what you are trying to do. You can hide a custom field when it is empty by adding [hide_empty:template_tag]
as a CSS class in wrapping node.
For example,
<tr class="[hide_empty:acf_DownloadFields_title]"><td>ACF Download Fields Title</td><td>[acf_DownloadFields_title]</td></tr>
This table row will be hidden if [acf_DownloadFields_title]
value is empty.
Let me know if you any question.
Thanks.
I am using the Divi Template and I changed the theme link color, but the download links are still using the old color. I can’t seem to find a place to change this. Can you help? (I did look through the documentation and the website and was unable to find this information). There must be a way to style links. Do I have to put the html for font color in the actual template? if so, that is kind of gross as I should be able to change the link color in a theme and have all links get updated.
—Andrew
I am new to WordPress and Download Manager. I am creating a link template using custom fields that I want to show up in the template only if the field is not empty. Is there an easy way to do this? I looked through the site and I couldn’t find any examples but it does appear that php is useable, but I can’t seem to get it to work. Can you help?
Here is what I tried:
<?php
if(!empty($[acf_DownloadFields_source]) {$var=”[acf_DownloadFields_title]” . “, [acf_DownloadFields_source]”;}
else {$var=”[acf_DownloadFields_title]”};
if(!empty($[acf_DownloadFields_doc-date]) {$var .= “([acf_DownloadFields_doc-date])”
?>
%%a href=”[download_url]”%%$var%%/a%%
(In the last line, I substituted < and > with %% so the text does not resolve into an actual link)
php is obviously not my language of choice, but I am pretty sure I got the syntax right.
Any suggestions?
—Andrew
Hi,
I have removed the old [wpdm_package_id]
input and added a new hidden field with the same default value. Also applied the embedded form ( Used a page template with [download_link_extended]
). Now lock is working.
Thanks.
Hi,
I’m trying to replace the wordpress native author page with this shortcode:
<?php echo do_shortcode('[wpdm_user_profile template="link-template-id" items_per_page=12]'); ?>
I followed all steps mentioned here in your docs, but it seems like the shortcode always points to the current user’s public profile (not the author of the current package). Is there any parameter I can pass to the shortcode to catch the current package’s author?
Thanks.
No need to zip the .eps file before uploading. Just tested a .eps file downloaded by WPDM. Works fine. Could you please send me the original file and the download link?
Hi,
Yes, there is a template tag [pdf_thumb]
that shows the PDF thumb ( first page of pdf ). In your link downloads are shown using WPDM link template. Now, to show PDF thumb you have to create a custom link template with this tag [pdf_thumb]
.
You can create custom link template from Dashboard Downloads Templates page.
Related documentation: https://www.wpdownloadmanager.com/doc/templates/creating-a-new-template/
Please read more about custom templates here https://www.wpdownloadmanager.com/building-a-wordpress-download-manager-link-template-from-scratch/
Thanks.
After a user enters a password (correct or incorrect) the link displays “Processing” and freezes, as per the second screen shot. None of our downloads work any more.
(Ignore the first screen shot)
We want to show all downloads from one category on one page with preview images.
Our downloads are only images (HI-RES) and we want to show our customers the complete category in a table format.
Preview Image, Download Size, Download Button
Thats it.
How do we do this?
I have linked to the category in our main menu, but it does not look nice. I also dont understand how to edit this category view.
Any help would be appreciated.
THX
PS: I have attached a screenshot from our current category view.
Looks like new uploads and newly created packages aren’t allowing file upload at all when looking for the file in FTP.
On this page: https://cls.welsrc.net/download-cls/general-documents/
Now, when adding a NEW file to a download package, both URLS
now appear as FILE-NOT-FOUND.txt (37 bytes)
File added: Purchasing Center Fee Schedule
Backend Link Icon URL –
https://cls.welsrc.net?wpdmdl=3106&ind=1530107725720
Frontend Download button URL –
https://cls.welsrc.net/download-cls/general-documents/?wpdmdl=3106&ind=1530107725720
I cleared cache both WPDM and Server – no difference.
I reset server file permissions – no difference.
Existing file uploads work just fine. Example of…
Exisiting File: Thoughts of Faith Newsletter
Frontend:
https://cls.welsrc.net/download-cls/general-documents/?wpdmdl=3106&ind=1523374274611
Backend:
https://cls.welsrc.net?wpdmdl=3106&ind=1523374274611
Looking at the file via FTP, the file doesn’t exist. I tried uploading a file as admin and it did not upload to the dir /wp-content/uploads/download-manager-files/
The file size is 131 KB and the WPDM Upload Setting limit is 1024KB chunk size.
I tried uploading on one of the other sub sites (technology) and had the same outcome.
Next, I created a new download package and that also had the same outcome.
It is possible to add any custom link in details page using custom template tag. Where do you want the user to go back from details page?
Having problems with DM and Amazon S3.
It seems the add-on has a bug. After linking to S3 when we try to download it throws an fatal error saying Fatal error: Uncaught Error: Class ‘WPDM\libs\DownloadStats’ not found in …/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php:392
This reply has been marked as private.
Hi Christine,
Your key is linked to conproco.com If you are having the license issue there, please install the latest version of Download Manager. You can download it here https://www.wpdownloadmanager.com/user-dashboard/?udb_page=purchases
Deactivate and delete the old version before installing the new one. You won’t lose any data.
If you are trying to move the license to another site then I have to unlock it from conproco.com Let me know in that case.
Thanks.
The URL is generated by the [download_url]
template tag. But it doesn’t generate the index.html in the download link. wget is setting this name as there is no static file name is URL.
You can modify the tag output if you want using this filter hook, https://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/
1 ) Added a new function wpdm_decrypt_legacy
in your theme’s functions.php file.
2 ) Added some custom code in /download-manager/wpdm-start-download.php
file.
if( $indfile == '' ){
if (isset($_GET['ind'])) {
$indfile = isset($files[esc_attr($_GET['ind'])]) ? $files[esc_attr($_GET['ind'])] : wpdm_decrypt_legacy(esc_attr($_GET['ind']));
} else if ($fileCount == 1) {
$indfile = array_shift($files);
}
}
https://www.evernote.com/l/AUeFGTYbxM5BgZ9SxlmqrvJ9iq3VYd9Ir20B/image.png
Now old file download links are working too.
Thanks for your reply. The solution your reference is simply to use a cli output option of wget, which is always available to anyone downloading a file from anywhere.
I understand WPDM generates dynamic download links, however, really only the keys are dynamic–the base url is always the same. Can you tell me what piece of code contains the ‘index.html’ static name? At least then I could change it to ‘billybob.zip’, or whatever…
Thanks,
Scott
This reply has been marked as private.
I am not familiar with CSV bulk import. Here is a screen shot of what I am talking about. I can only attach one file. I have a folder that has 3 images in it. I want the user to be able to download the link and see all three images in the folder.
Hi,
Sorry for the delayed reply. It seems there is nothing to do from WPDM side as wget
uses the URL to name the file. WPDM download links are dynamic, it doesn’t contain the exact file name which wget
can use to name the file.
But there is an option to set the file name and the download URL contains the package name. So, I think your users can utilize it.
Thanks.
Hi,
Yes, you can control which columns to show for the [wpdm_all_packages] shortcode.
Here is the shortcode:
[wpdm-all-packages items_per_page="20" jstable=1 order_by="date" order="DESC" cols="title|post_content|package_size|download_link" colheads="Title|Description|Size|Download"]
For more information please check this link: https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/
Thank you.
Hi,
It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php
to apply it,
if( isset( $_SESSION[ '_wpdm_unlocked_'.$package['ID'] ] ) == 1 ) {
$download_url = \WPDM\Package::expirableDownloadLink( $package['ID'] );
$link_label = get_post_meta($package['ID'], '__wpdm_link_label', true);
$link_label = trim($link_label) != '' ? $link_label : __('Download', 'wpdmpro');
$data = "";
}
But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.
Thanks.
When customers attempt downloading from IE 11 browser they click the download link and nothing happens. I will post a link privately.
Everything works in Firefox and Chrome. This needs a fast resolution.