Hi,
We found out that all downloads appear in the default language (EN). However, we translated everything and it used to work.
We use WPML.
You can see it here. The names should be in German but those are the English downloads.
https://www.truma.com/de/service/download-center/
Is there any further setting required to show the correct language?
Thanks. im trying to create a new topic for another question, it doesnt allow me
The below code is pasted on function.php
It allows us to automatically send a notification via email when a visitor downloads a file from WPDM on Website.
I have pasted the below code on function.php, however, I found out that it is only able to display a single character for the field “Company” when it is sent notification email (the field is an extra field created using Advanced Custom Fields.) refer screenshot below.
i have check all the script it was fine. is there anything wrong with the core code? or bugs?
https://pasteboard.co/XBPNft0Nhr3p.png
/** * This code notifies via email when visitor downloaded a file from wpdm. last updated 14Nov2023 */
add_action("wpdm_before_email_download_link", "your_function", 10, 2);
function your_function($post, $package){
$package_data = get_post( $package['ID'] );
$headers = 'From: NSW Download Center <example@nxxxxxxx.com>' . "\r\n";
$headers .= 'Content-type: text/html' . "\r\n";
//If it's in the trash, you won't be able to download it.
if( $package['post_status'] == 'trash' ){
status_header( 403 );
die;
}
// Set the time zone to Asia/Singapore
date_default_timezone_set('Asia/Singapore');
$current_date_time = date('Y-m-d h:i:s A');
$company = $post['custom_form_field']['Company-Name'];// Use Advanced custom field to send out company name.
$file_type_array = WPDM()->package::fileTypes($package['ID'], false);// Send out file type of the packages downloaded.
$file_types = implode(', ', $file_type_array);// Send out file type of the packages downloaded.
$message = '<html><body>';
$message .= '<strong>Attention Sales Team</strong>: A visitor has downloaded files from the NSW website. <br>This could indicate potential interest in our marketing materials or whitepaper. <br> Please review the information for possible follow-up with potential clients.
';
$message .= '<strong>Leads/Downloader information:</strong>
';
$message .= '<table style="border: 1px solid #ccc; background-color: #f5f5f5; border-collapse: collapse;">';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Name:</td><td style="border: 1px solid #ccc;">' . $post['name'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Company:</td><td style="border: 1px solid #ccc;">' . $company['EmailLock/Company'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Email:</td><td style="border: 1px solid #ccc;">' . $post['email'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloaded File:</td><td style="border: 1px solid #ccc;">' . $package_data->post_title . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File Type:</td><td style="border: 1px solid #ccc;">' . $file_types . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">IP Address:</td><td style="border: 1px solid #ccc;">' . $_SERVER['REMOTE_ADDR'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File downloaded Date/Time:</td><td style="border: 1px solid #ccc;">' . $current_date_time . ' (GMT+8 Malaysia Time)</td></tr>';
$message .= '</table>';
$message .= '<br>This email is auto generated by web script when any files on NSW website download center is requested.
<br><br>';
$message .= '<br></body></html>';
$recipients = array(
'Email@email.com',
'xxxxxxx@gmail.com'
);
$to = implode(', ', $recipients);
wp_mail($to, "Potential Leads - Visitor downloaded a file from the NSW website.", $message, $headers);
}
not sure if i have created mutiple post to this forum?
it seems doesnt allow me to post new topic here on the support center
The below code is pasted on function.php
It allows us to automatically send a notification via email when a visitor downloads a file from WPDM on Website.
I have pasted the below code on function.php, however, I found out that it is only able to display a single character for the field “Company” when it is sent notification email (the field is an extra field created using Advanced Custom Fields.) refer screenshot below.
i have check all the script it was fine. is there anything wrong with the core code? or bugs?
https://pasteboard.co/XBPNft0Nhr3p.png
/** * This code notifies via email when visitor downloaded a file from wpdm. last updated 14Nov2023 */
add_action("wpdm_before_email_download_link", "your_function", 10, 2);
function your_function($post, $package){
$package_data = get_post( $package['ID'] );
$headers = 'From: NSW Download Center <example@nxxxxxxx.com>' . "\r\n";
$headers .= 'Content-type: text/html' . "\r\n";
//If it's in the trash, you won't be able to download it.
if( $package['post_status'] == 'trash' ){
status_header( 403 );
die;
}
// Set the time zone to Asia/Singapore
date_default_timezone_set('Asia/Singapore');
$current_date_time = date('Y-m-d h:i:s A');
$company = $post['custom_form_field']['Company-Name'];// Use Advanced custom field to send out company name.
$file_type_array = WPDM()->package::fileTypes($package['ID'], false);// Send out file type of the packages downloaded.
$file_types = implode(', ', $file_type_array);// Send out file type of the packages downloaded.
$message = '<html><body>';
$message .= '<strong>Attention Sales Team</strong>: A visitor has downloaded files from the NSW website. <br>This could indicate potential interest in our marketing materials or whitepaper. <br> Please review the information for possible follow-up with potential clients.
';
$message .= '<strong>Leads/Downloader information:</strong>
';
$message .= '<table style="border: 1px solid #ccc; background-color: #f5f5f5; border-collapse: collapse;">';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Name:</td><td style="border: 1px solid #ccc;">' . $post['name'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Company:</td><td style="border: 1px solid #ccc;">' . $company['EmailLock/Company'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Email:</td><td style="border: 1px solid #ccc;">' . $post['email'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloaded File:</td><td style="border: 1px solid #ccc;">' . $package_data->post_title . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File Type:</td><td style="border: 1px solid #ccc;">' . $file_types . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">IP Address:</td><td style="border: 1px solid #ccc;">' . $_SERVER['REMOTE_ADDR'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File downloaded Date/Time:</td><td style="border: 1px solid #ccc;">' . $current_date_time . ' (GMT+8 Malaysia Time)</td></tr>';
$message .= '</table>';
$message .= '<br>This email is auto generated by web script when any files on NSW website download center is requested.
<br><br>';
$message .= '<br></body></html>';
$recipients = array(
'Email@email.com',
'xxxxxxx@gmail.com'
);
$to = implode(', ', $recipients);
wp_mail($to, "Potential Leads - Visitor downloaded a file from the NSW website.", $message, $headers);
}
not sure if i have created mutiple post to this forum?
it seems doesnt allow me to post new topic here on the support center
Hi,
So you want to display downloads only when the user clicks on a category. In other words, want to stop loading all packages when the page loads.
It is not possible out of the box but with minor code adjustments, you can implement it. As long as this feature is not added to the add-on you have to make these changes after each update of the addon ( if you update the addon ).
In /plugins/wpdm-archive-page/assets/js/scripts.js
file comment the line no 353 as shown in the following screenshot,

Also, add the following CSS to your customizer’s Custom CSS option,
.wpdmap-header-card .card-footer {
display: none;
}
Use the following shortcode,
[wpdm_archive button_style="primary" template="default" order_by="post_title" order="ASC" items_per_page=12 cols=1]
Best regards.
Download Manager not working. It doesn’t show as option to see files in wordpress media library or on posts.
Then when i go to downloads and show files i upload i cant download them. I get this message: Package you are trying to download is not available!
Also when i go to all files i can see any of my cloud library files.
The reason i brought this plugin was for offload media files, images, and other assets from your WordPress server to pCloud storage.
Hello conceptfbo,
Hope you are well. For updating the WPDM PRO plugin, Please simply click the Save Settings again for the license key option from Downloads > Settings > License
, and then please update the plugin from the wp-admin > plugins panel
.
For saving settings again for the license key option from Downloads -> Settings -> License
, that will regenerate the access token. Thus the plugin will be updated, hope that, it will solve your issue.
If still, the problem exists then you can also manually update the plugin
Thank you and regards
This reply has been marked as private.
Bug: If you click “Tigo Energy” in the categories and then “Leistungsoptimierer”, suddenly all downloads appear instead of just those under Performance optimizer (or tigo energy)
This reply has been marked as private.
Hello,
Could you please share related download package link to check the issue further?
All I see the downloads are set expired like below

Regards
Tanvir
hi, I have 2 question to ask
Question 1. how do i add a drop-down menu to filter out catagories of each items. since i have many files and videos it would be nice that i could allow my visitor to filter the items based on the media they wan to find. example as below screnshot..

Question 2. Im trying to change the CSS of this page. https://nswautomation.com/NSW/dashboard/?udb_page=my-downloads
it is not overwriting, even i used “!important”, i have tried to change it on appearance -> customize. it doenst work either.
i have also followed https://www.wpdownloadmanager.com/how-to-add-custom-css-in-wordpress/
it doesnt seem to change anything.
help ..
Hello Anh Tuyet Ha,
Hope you are well. For collecting the cron URL you can navigate here, Downloads > Settings > Privacy > Cache & Stats > Cron URL
as I image attached,

And for setup cron URL you can check this doc, https://www.wpdownloadmanager.com/mastering-cron-jobs-a-comprehensive-guide-to-creating-cron-jobs-with-cpanel-and-plesk-parallel/
Please check and let me know
Thank you and regards
Hello Amit,
Hope you are well. To restrict certain files/packages with roles, you can check your File/Package > Package Settings > Allow Access
option. For more details, you can check the doc here, https://www.wpdownloadmanager.com/doc/add-new-package/package-settings/allow-access-access-control-option/. And setting login required message You can check Downloads > Settings > Basic > Login Required Message
section.
Please check and let me know
Thank you and regards
Hi Support Team
I need to be able to pull either the page title or the download title into a field in the Formidable form in the locked pop-up modal. The field will be a hidden field called source, and will be used to indicate which file has been downloaded, as the information in Formable will then be synced with Zapier to other platforms.
I have tried to use the [page_title] shortcode, but as it reads the title from the pop, it title is labeled as Download, instead of it being the page or download title.
I can used [server param=”REQUEST_URI”] to get the URL with is ok for a source, but would prefer if i can just get a simple heading or title.
Can I get some assistance with this?
Test page.
Best practices in video analytics
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
Hey Team Support. For some reason. My downloads are all giving me this error
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>XT94DRD5PATB2PK9</RequestId>
<HostId>JSPc+y/FwWFLWIxD/VVCLhDFjlriHQHdtCU70SOlvEzpS4wQ2+v8Dsr9gf/63U8F7DPPP0G20c4=</HostId>
</Error>
Any idea? its happening to downloads across my entire site, particularly older downloads
When the captcha link opens the popup it isn’t centered on the screen and you have to click the download button 2 times before the file actually downloads. This only seems to happen when on an iPhone though… could you please help?
Specially in the page My Downloads
This reply has been marked as private.
Hello Chelsea,
Unfortunately I am not getting the issue.
I have deleted all files from your csv and kept only one file to take care properly. But that still is not working to load the preview.
On the other hand, I have created another csv from the sample file that is working properly.
However, I am sharing that, I will suggest to modify and add your columns there with necesary changes. Also keep the fields as it is which are not need. At first I will suggest to add one/two downloads to check if it works properly.
Download Sample
Regards
Tanvir
Hello,
The PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature error is usually displayed by WordPress as a result of one of three things: There’s an issue with the zip file you’re uploading. WordPress doesn’t have enough memory on the web server to unzip and upload the contents of the zip file.
For updating the WPDM plugin, Please simply click the Save Settings again for the license key option from Downloads > Settings > License
, and then please update the plugin from the wp-admin > plugins panel
.
For saving settings again for the license key option from Downloads -> Settings -> License
, that will regenerate the access token. Thus the plugin will be updated, hope that, it will solve your issue.
If still, the problem exists then you can also manually update the plugin
Thank you and regards
Hi Humayon,
I have purchased and installed the pro plugin. I’m still not seeing the function working. I have clicked “open in new window”, unchecked “open in browser” and I have also additionally checked “Disable Auto Download”. Still though, when I check the captcha it automatically downloads in the same window.
Hello,
Please set up cron to auto-clean cache and session data. You can copy the cron URL from Downloads Settings Privacy
and for the cron setup details instruction you shall find it here,
Mastering Cron Jobs: A Comprehensive Guide to Creating Cron Jobs with cPanel and Plesk Parallel
Please check and let me know, if you have more queries.
Thank you and regards