-
Search Results
-
Hello
the documentation says this is not working anymore?
https://www.wpdownloadmanager.com/doc/templates/prettify-your-download-link/
Where can I customize or add my own buttons?
Thanks you
KatleenThe 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 centerHello. I just purchased the Pro version. How do I go about changing the popup to resemble the simpler version of the two screenshots attached? The first is how it current looks, the second how I want it to look.
https://www.dropbox.com/scl/fi/ku5d4yxr4mjq4nks7ebty/download-form-current.jpg?rlkey=v1u41bax2inqry0rfd9rbbhxy&dl=0
https://www.dropbox.com/scl/fi/q45qfnhwbib4e2iwbicib/download-form-new.jpg?rlkey=p046umvbe8udbp2p4wmiupjpl&dl=0The changes are:
1. Reduce form to one submit button rather than 2
2. Remove the ‘Subscribe to download’ text
3. I would like to style the remaining submit button (for ‘submit’ ‘processing’ and ‘invalid request’ but cant find a way to do this.In addition, is it possible to use custom fonts in the popup (not Google)? I have them working for the link template but not the popup.
Thanks very much!
Topic: Files can’t be downloaded
Dear developers, I’m using and recommend this plugin for all my sites. But now I need your help.
My site has PDF files (and I’ve already configurate the file types in configuration)
I’ve already deactivate all my plugins, fot test, and nothing happens, when i clic download the file just change the url for https://crv.com.br/download/modulo-de-oportunidades/?wpdmdl=13586&refresh=65a685aecc35b1705412014 and nothing happens, can you please, give me any kind of consideration for this?
The page I need help with: https://crv.com.br/download/modulo-de-oportunidades/
note this is one file, the problem is with all files https://crv.com.br/download/WordPress
Version
6.4.2
Website language
pt_BR
User language
pt_BR
Time zone
America/Sao_Paulo
Homepage URL
https://crv.com.br
Website URL
https://crv.com.br
Permalink Structure
/%postname%/
Is this site using HTTPS?
Yes
Is this a multisite?
No
Can everyone register on this site?
No
Is the site hindering search engines?
No
Default status for comments
Closed
Type of environment
production
User count
5
Communication with WordPress.org
WordPress.org is accessibleI’ve make a test with theme but nothing happen, the error continues theres the screens you need
https://drive.google.com/drive/folders/1nqoo_fVj6XD0nKABZ2ASDgM6eL-fMkwu?usp=sharing
I remove ALL the plugins and the theme and nothing happensWordpress.org thread
https://wordpress.org/support/topic/files-cant-be-downloaded/#post-17353878
Good evening,
I have issues with your plugin. I’m a pro user and I’ve installed the Download Manager Pro, Google Drive Explorer and Advanced Custom Fields.
On my website the user can fill a custom form, and when them click on “Send”, they will receive an email with the link for the download.
When I installed Google Drive Explorer I followed your instructions to create the API KEY. Every file I upload on my Drive account is visible for people that have the link. The issue is on template email lock email.
I used package_url but it opens the same page I used to fill the form, it’s a loop. I use download_link, download_url they didn’t work. How can I modify the template to obtain a result similar to this: “Download file“, where in the href attribute there’s the correct link to make the download?
Thank youGood afternoon –
I followed the steps, I believe correctly, for a package to download an .exe file. Yet, when I click on the Download button (tried both), it does not download. While I am not necessarily paranoid, I am pretty sure I hear it laughing at me. This could, I suppose, be my imagination.When I go into the package and copy the file download link, https://tristarmonitoring.com?wpdmdl=26551&ind=2318, and place it into a new window, bingo, downloads perfectly.
The page is: https://tristarmonitoring.com/download/remote-support-file-download/
Thoughts?
Thank you!
Jay Brand
Hello,
This error is being thrown on a page where we use a template. It also seems to impact all of our download links throughout the website. When clicking the linked files, for example:
I am redirected to the home page. When clicking on our policies page, where I use a template with a modal pop-up, I get the critical/fatal error:
Kind regards,
-Scott[08-Jan-2024 19:58:12 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/neonet.org/wp-content/plugins/wpdm-elementor/src/helper-functions.php:28 Stack trace: #0 /var/www/neonet.org/wp-content/plugins/wpdm-elementor/src/widgets/CategoryWidget.php(49): get_wpdmcategory_terms() #1 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(2358): WPDM\Elementor\Widgets\CategoryWidget->register_controls() #2 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/widget-base.php(1044): Elementor\Controls_Stack->init_controls() #3 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(541): Elementor\Widget_Base->init_controls() #4 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/widget-base.php(181): Elementor\Controls_Stack->get_stack() #5 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(313): Elementor\Widget_Base->get_stack() #6 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(2445): Elementor\Controls_Stack->get_controls() #7 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(1130): Elementor\Controls_Stack->sanitize_settings() #8 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(2190): Elementor\Controls_Stack->get_data() #9 /var/www/neonet.org/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack->get_init_settings() #10 /var/www/neonet.org/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings() #11 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(1144): Elementor\Core\Base\Base_Object->get_settings() #12 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/controls-stack.php(1235): Elementor\Controls_Stack->get_parsed_dynamic_settings() #13 /var/www/neonet.org/wp-content/plugins/elementskit/modules/wrapper-link/wrapper-link.php(58): Elementor\Controls_Stack->get_settings_for_display() #14 /var/www/neonet.org/wp-includes/class-wp-hook.php(324): Elementor\ElementsKit_Wrapper_Link->before_section_render() #15 /var/www/neonet.org/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /var/www/neonet.org/wp-includes/plugin.php(517): WP_Hook->do_action() #17 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/element-base.php(442): do_action() #18 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #19 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #20 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #21 /var/www/neonet.org/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #22 /var/www/neonet.org/wp-content/plugins/elementor/core/base/document.php(1749): Elementor\Element_Base->print_element() #23 /var/www/neonet.org/wp-content/plugins/elementor/core/base/document.php(1144): Elementor\Core\Base\Document->print_elements() #24 /var/www/neonet.org/wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper() #25 /var/www/neonet.org/wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content() #26 /var/www/neonet.org/wp-includes/class-wp-hook.php(324): Elementor\Frontend->apply_builder_in_content() #27 /var/www/neonet.org/wp-includes/plugin.php(205): WP_Hook->apply_filters() #28 /var/www/neonet.org/wp-includes/post-template.php(256): apply_filters() #29 /var/www/neonet.org/wp-content/plugins/elementor/modules/page-templates/module.php(190): the_content() #30 [internal function]: Elementor\Modules\PageTemplates\Module->print_callback() #31 /var/www/neonet.org/wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func() #32 /var/www/neonet.org/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content() #33 /var/www/neonet.org/wp-includes/template-loader.php(106): include('...') #34 /var/www/neonet.org/wp-blog-header.php(19): require_once('...') #35 /var/www/neonet.org/index.php(17): require('...') #36 {main} thrown in /var/www/neonet.org/wp-content/plugins/wpdm-elementor/src/helper-functions.php on line 28