Search Results for 'Add Url'

Viewing 25 results - 1 through 25 (of 1,708 total)
  • Author
    Search Results
  • #215584

    In reply to: URL Encodning


    Tahasin
    Moderator
    This reply has been marked as private.
    #215527

    Arianna Bellizzi
    Participant

    Hello,

    I was told in January that URL encoding would be added in the next update. Especially for S3 this was a huge barrier to the using the WPDM. There have been two updates since them and I don’t believe they were included. Is there a plan in the works to add url encoding?

    #215327

    In reply to: Invalid Download Link


    Brin
    Participant

    It is not working for guest users on our site. We have renewed your temp admin access since yesterday for a week.
    I sent you the log to your email address.
    The logs show:
    The download page returned HTTP 200.
    A related admin-ajax.php request returned HTTP 400.
    /wp-json/wpdm/email-to-download returned HTTP 200.
    The generated email download URL returned HTTP 200, but its response was only 1,220 bytes.

    The browser displayed “Invalid Download File” when opening the generated email link. Since the final request returned only 1,220 bytes, it appears the plugin may be returning the error message inside an HTTP 200 response rather than serving the actual file.

    Please check the token validation, guest-session handling, and file-index validation for the generated email link.

    #215273

    Nayeem Riddhi
    Moderator

    Hello Richard Cutts,

    Hope you are well. And thank you for such detailed investigation. You’re absolutely correct – the __wpdm_client cookie set by WP Download Manager Pro is indeed preventing Cloudflare APO from setting the f-edge-cache response header, which affects your entire site’s caching performance.

    Now I am going to provide you with verified solutions.

    WHAT THE COOKIE DOES:

    The __wpdm_client cookie is a session cookie that stores a unique 32-character device ID. It’s set on EVERY page load when the plugin initializes. This device ID is used for:

    1. Download Limit Tracking – Prevents users from exceeding download limits per package
    2. Password Protection – Remembers when users have unlocked password-protected packages
    3. Email Lock Verification – Tracks verified email access for up to 7 days
    4. Package Unlock State – Remembers when users have unlocked locked packages
    5. Expiring Download Keys – Stores temporary download access keys
    6. Social Authentication – Manages Google/Twitter OAuth flows temporarily
    7. License Validation Caching – Stores license key validation status

    The device ID and session data are stored in the wp_ahm_sessions database table with columns: deviceID, name, value, lastAccess, and expire.

    WHY IT CONFLICTS WITH CLOUDFLARE APO:

    Cloudflare APO’s edge cache bypasses any page that sets cookies because cookies indicate personalized content. The __wpdm_client cookie is set with path=”/”, httponly=true, and secure=true, which affects your entire domain even on pages without downloads.

    Here are the verified solutions to make both work together:

    SOLUTION 1: Use the Built-in Filter (Recommended)

    The plugin has a built-in filter wpdm_user_accept_cookies (Session.php line 92) that allows you to control when cookies are set. Add this code to your theme’s functions.php or a custom plugin:

    
    /
     * Disable WPDM client cookie on pages that don't need download functionality
     * This allows Cloudflare APO to cache those pages at the edge
     */
    add_filter('wpdm_user_accept_cookies', function($accept) {
        // Allow cookies on pages with actual download functionality
        if (is_singular('wpdmpro') ||              // Single download pages
            is_post_type_archive('wpdmpro') ||     // Download archive pages
            is_page() && has_shortcode(get_post()->post_content, 'wpdm_pkg') ||  // Pages with [wpdm_pkg]
            is_page() && has_shortcode(get_post()->post_content, 'wpdm_login') || // Login forms
            is_page() && has_shortcode(get_post()->post_content, 'wpdm_register') || // Registration forms
            is_admin() ||                          // Admin area
            (defined('DOING_AJAX') && DOING_AJAX)  // AJAX requests
        ) {
            return true;
        }
    
        // Deny cookies on all other pages for Cloudflare APO compatibility
        return false;
    });
    

    SOLUTION 2: Disable Cookies Globally

    If you don’t need session tracking features, you can disable cookies globally by adding this to your wp-config.php:

    define('WPDM_ACCEPT_COOKIE', false);

    Note: This will completely disable the following features:
    – Download limit tracking per visitor
    – Password protection persistence
    – Email lock verification sessions
    – Social authentication flows
    – Package unlock state memory

    SOLUTION 3: Early Hook Method with Must-Use Plugin

    Create a file at wp-content/plugins/wpdm-cloudflare-compat/wpdm-cloudflare-compat.php (create the wpdm-cloudflare-compat folder if it doesn’t exist):

    
    <?php
    /
     * Plugin Name: WPDM Cloudflare APO Compatibility
     * Description: Prevents WPDM session cookie on pages without downloads
     * Version: 1.0
     */
    
    // Run before plugins_loaded to catch Session initialization early
    add_action('plugins_loaded', function() {
        // Only disable if we're certain this page doesn't need WPDM sessions
        if (!is_singular('wpdmpro') &&
            !is_post_type_archive('wpdmpro') &&
            !is_admin() &&
            !(defined('DOING_AJAX') && DOING_AJAX)) {
    
            // Check current post for shortcodes (lightweight check)
            if (is_page()) {
                global $post;
                if ($post && !has_shortcode($post->post_content, 'wpdm')) {
                    define('WPDM_ACCEPT_COOKIE', false);
                }
            }
        }
    }, 0); // Priority 0 runs before WPDM initializes
    

    SOLUTION 4: Cloudflare APO Bypass Rules

    Configure Cloudflare APO bypass rules to exclude download-related pages from edge caching:

    In the Cloudflare WordPress plugin settings, add these URLs to the “Default Page Cache” bypass list:

    *yourdomain.com/*?wpdm*=*
    *yourdomain.com/downloads/*
    *yourdomain.com/wp-admin/*

    Or create Cloudflare Page Rules:

    Rule 1 – Bypass cache on download pages:

    *yourdomain.com/downloads/*
    *yourdomain.com/*?wpdm*=*
    *yourdomain.com/wp-admin/*
    Setting: Cache Level: Bypass

    Rule 2 – Cache everything else:

    *yourdomain.com/*
    Settings: Cache Level: Cache Everything, Edge Cache TTL: 2 hours

    RECOMMENDED APPROACH:

    I recommend Solution 1 combined with Solution 4. This approach will give you:

    ✅ Full Cloudflare APO edge caching for the majority of your site
    ✅ Full WPDM functionality on download-related pages
    ✅ The f-edge-cache header on cacheable content
    ✅ No loss of download tracking or session features
    ✅ No impact on password protection, email locks, or download limits

    The plugin has built-in support for this through the wpdm_user_accept_cookies filter and WPDM_ACCEPT_COOKIE constant, so you can maintain full functionality while still benefiting from Cloudflare APO.

    Please let me know if you need further assistance implementing any of these solutions or if you have any other questions.

    Thank you and regards


    Dave Filchak
    Participant

    Plugin version: Download Manager 3.3.62 (free version)
    Also installed: WPDM – Elementor add-on
    Site: staging environment (can provide live URL if needed)

    Description:

    We have several separate downloads set up (different files, different titles, different pages), but no matter which download page a visitor lands on, the page always shows the details and download button for just one specific file — our most-downloaded one. Clicking “download” on any of the other pages ends up delivering that same one file instead of the file that actually belongs to that page.

    Here’s what we’ve already ruled out:

    It’s not a caching issue — we cleared all caching layers and the problem persists.
    It’s not a permalinks issue — we reset permalinks with no change.
    It’s not a data problem — each download item has its own correct file, title, and settings in the admin editor. The mix-up only happens on the public-facing page.
    It’s not tied to one specific page design — we tried switching the “Page Template” option for an affected download to a different built-in template, and the problem still happened.
    We also temporarily deactivated the WPDM – Elementor add-on to test. That didn’t fix it — instead, it broke the download button entirely (it stopped working rather than pointing to the right file). Reactivating the add-on brought back the original issue.
    Since it happens consistently across every download page and isn’t fixed by anything on our end, this looks like it’s happening in the plugin’s own code rather than something misconfigured on our site. If it helps narrow it down: it seems related to how the plugin figures out “which download is this page about” — possibly connected to a related/similar-downloads lookup feature, since the file that keeps showing up everywhere is our single most-downloaded item.

    Happy to provide staging access or screen recordings if that would help you reproduce it.

    #214915

    In reply to: Show inside the posts


    portalkairos
    Member

    I asked ChatGPT to do it for me to get around this problem:

    /**
    * Makes [wpdm_package id='XXXXX'] appear as a public link,
    * even when WP Download Manager hides the package button. 
    *
    * Does not force a direct download. It only displays the link to the package page. 
    */
    add_action('init', function () {
    
        remove_shortcode('wpdm_package');
    
        add_shortcode('wpdm_package', function ($atts) {
    
            $atts = shortcode_atts([
                'id' ► 0,
            ], $atts, 'wpdm_package');
    
            $id = intval($atts['id']);
    
            if (!$id) {
                return '';
            }
    
            $url   = get_permalink($id);
            $title = get_the_title($id);
    
            if (!$url) {
                return '';
            }
    
            if (!$title) {
                $title = 'Acessar arquivo';
            }
    
    return '<p class="wpdm-link-forcado">
        <strong>📥 Baixe aqui:</strong>
        <a href="' . esc_url($url) . '" target="_blank" rel="noopener">
            ' . esc_html($title) . '
        </a>
    </p>';
        });
    }, 9999);

    But it doesn’t look good:
    “portalkairos.org/nossas-criancas-na-campanha-da-fraternidade-2026/”


    Nayeem Riddhi
    Moderator

    Hello Laura,

    Hope you are well. Thank you for your purchase of the Full Access Pack! We’re glad to hear you’re enjoying the plugin. Let me address each of your questions with verified solutions:

    1. Hiding Empty Social Media Icons

    The social icons (Facebook, Twitter, YouTube) in email templates will still display even when the URL fields are left empty in Downloads > Templates > Email Settings. This is because the templates contain the link HTML regardless of whether the URL is set.

    Solution – Override the Email Template:

    To make changes that survive plugin updates, use the template override system, following this documentation, https://www.wpdownloadmanager.com/doc/template-files/

    1. Create a folder named download-manager inside your active theme:
    – Path: /wp-content/themes/your-theme/download-manager/
    2. Create an email-templates folder inside it:
    – Path: /wp-content/themes/your-theme/download-manager/email-templates/
    3. Copy the email template you’re using from the plugin to your theme. For example, if using “Default” template:
    – From: /wp-content/plugins/download-manager/src/__/views/email-templates/default.html
    – To:/wp-content/themes/your-theme/download-manager/email-templates/default.html
    4. Edit the copied file and remove the social icon sections. For default.html, find and remove lines 202-214 (the social links section).
    5. Repeat for any other email templates you use (stripe.html, fabulous.html, etc.).

    Your custom template will now be used instead of the plugin’s default, and updates won’t overwrite your changes.

    2. Removing “Powered by Download Manager”

    Yes, with your Business/Full Access Pack license, you can remove this branding. The “Powered by Download Manager” link appears in all 14+ email template files.

    Solution – Override Each Template:

    Using the same override method above, edit each email template file in your theme and remove the line containing the “Powered by” link (usually near the end of each template file).

    For example, in default.html (line ~238), remove:
    <p style="margin: 16px 0 0 0;"><a href="https://www.wpdownloadmanager.com" style="...">Powered by Download Manager</a></p>

    Repeat this for all email templates you use.

    Note: For File-Cart emails, the email sent also uses this wrapper template, so removing the “Powered by” link from the template will apply to File-Cart emails as well.

    3. Removing “This link will expire after first use” from File-Cart Emails

    This message is hardcoded in the File-Cart plugin and cannot be removed via template override (it’s built in PHP, not HTML templates).

    Solution – Use a Translation Filter:

    Add this to your theme’s functions.php file (this survives plugin updates):

    add_filter('gettext', function($translation, $text, $domain) {
        if ($domain === 'wpdm-file-cart' && $text === 'This link will expire after first use.') {
            return ''; // Returns empty string, hiding the message
        }
        return $translation;
    }, 10, 3);

    Alternative – Edit Directly (Not Recommended):

    You can edit /wp-content/plugins/wpdm-file-cart/src/EmailService.php around line 158-160 and comment out those lines, but this change will be lost when the plugin is updated.

    Please kindly check and let me know, if it helps you

    Thank you and regards


    Laura Schulz
    Participant

    Hello WP Download Manager Team,

    I love your plugin, especially the File-Cart add-on. Our company recently purchased the Business version of the “Full Access Pack” for WP Download Manager.

    For the most part, everything is working great. However, we have a few questions that we have not been able to resolve through the available settings:

    1.) Under Downloads > Templates > Email Templates > Email Settings, the main email wrapper includes social media icons. Some of our clients do not use one or more of these platforms, but we have not found a way to remove individual icons. When we leave a URL field empty, the icon still appears in the email template, but without a link. Is there a way to hide or remove specific social icons?

    2.) Since we purchased the Full Access Pack, we wanted to ask whether full branding control is included. Specifically, is there a way to remove or disable the “Powered by Download Manager” text from the email templates?

    3.) Lastly, when a File-Cart email is sent, there is a message that says, “This link will expire after first use.” However, we have been able to download files multiple times, which is fine for our use case. However, is there a way to remove that message from the email so it’s not misleading?

    Thank you for your help. We appreciate the plugin and would be grateful for any guidance on these items.

    #214728

    Tahasin
    Moderator

    I have checked the product link. Could you share the temporary login credentials in a private reply to check the issue from your end?

    Guest checkout is working correctly in our test environment.

    After completing the payment, guest users are redirected to a page where they will see the Go To Guest Download Page button. When they click that button, they are taken to the Guest Download Page
    From there, they can access and download their purchased files.

    In addition, guest users receive an order confirmation email. You can include the Guest Download Page URL in that email so customers can easily access their downloads later.

    #214638

    Fabrizio Rutigliano
    Participant

    Hi and thanks for so prompt reply!
    No, it shows simply opening the page, whose this is URL: https://www.fondazionecdlmilano.it/_prova-pdf/

    Now you’ll see 2 download buttons as I wanted to test another download and created 2nd package.
    If I preview the package itself then no errors occurs

    I have created page with Elementor, as said, and selected the ‘WPDM Packages’ widget from “WordPress” list as I have not installed Elementor add-on yet.
    I have been using WPDM to just download PDFs on another website since 4-5 years now and never had any issue, with Elementor page builder for this site also. Only difference might be I was using shortcode on that site…

    #214602

    Tahasin
    Moderator

    Hello,

    Thanks for opening the support ticket.

    Kindly share the wp-admin credentials in a private reply, along with the related URL, so that we can take a closer look at the issue.

    If you are referring to this carousel view, then yes, it is possible to achieve this using either the free version of Download Manager or the Extended Shortcodes add-on.

    Regards


    Sean Thornton
    Participant

    Hello WPDM Support,

    I am currently using WPDM Pro, v7.3.1, with the addon, TinyMCE Button, v2.9.4.

    My issue is when I am in a Post or Page, and I click the Download Manager button in the editor, a popup appears, with the Insert Package tab selected. I can select the template I need, but, the list of packages in the Select Package window, are not appearing.

    Thinking it might be a cache issue, I have cleared the WPDM Cache (under Privacy in the Settings menu), but, that didn’t work.

    Any ideas or solutions?

    Thank you,

    Sean

    Here is the System Report:
    ### WordPress Environment ###
    WordPress Version: 6.9.4
    Site URL: https://intranet.ddicb-nhs.uk
    HTTPS: Yes
    Multisite: No
    WPDM Version: 7.3.1

    ### Server Environment ###
    PHP Version: 8.4.22
    MySQL Version: 10.11.14
    Web Server: Apache

    ### PHP Configuration ###
    Memory Limit: 256M
    Max Execution Time: 300s
    Upload Max Filesize: 2048M
    Post Max Size: 2048M
    Max File Uploads: 20
    Max Input Vars: 1000

    ### Required PHP Extensions ###
    cURL: Installed
    Zip: Installed
    Mbstring: Installed
    JSON: Installed

    ### Recommended PHP Extensions ###
    GD Library: Installed
    ImageMagick: Installed
    OpenSSL: Installed
    Fileinfo: Installed

    ### Directory Permissions ###
    Uploads: Writable
    WPDM Files: Writable
    WPDM Cache: Writable

    #214523

    In reply to: Youtube vidéos


    Sitcom Software
    Participant

    ok, maybe i didn’t click the + button when i added the url…

    sorry and thank you

    #214522

    In reply to: Youtube vidéos


    Tahasin
    Moderator
    This reply has been marked as private.
    #214520

    In reply to: Youtube vidéos


    Tahasin
    Moderator

    For that, you don’t need to do anything extra. Just create a package and add the YouTube video URL.

    When users click the download button for that package(which has the youtube video URL), they will be automatically redirected to the specified YouTube video.

    #214516

    In reply to: Youtube vidéos


    Tahasin
    Moderator

    Hello,

    You can add a YouTube video URL using the Insert URL field and display it with the Cinema (YouTube) page template. PDF thumbnail will be displayed as preview.

    When users click the Download button, they will be redirected to the corresponding YouTube video.

    Regards

    #214511

    Greg Borchardt
    Participant

    Hi Nayeem, Thanks for replying. I uploaded a file, well-maintenance.pdf, to DM and added it to a category, Helpful Info. I need the download url to include the category, so that it looks like this: /download/helpful-info/well-maintenance. Currently the category is not included in the url: https://prnt.sc/FsfkQVGnqqxp Can the files be configured to include their categories?

    #214030

    HappyHelper
    Member
    This reply has been marked as private.
    #214000

    Nayeem Riddhi
    Moderator

    Can you allow the specific your website URL following this documentation, https://developers.cloudflare.com/r2/buckets/cors/#add-cors-policies-from-the-dashboard? Please kindly check.

    Thank you

    #213924

    Pascal Zajac
    Participant

    According to the documentation on Media Protection there are options for Advanced protection that ensure signed, single-use URLs etc.

    However, in the admin UI of my site, when I go to Downloads ► Settings ► Media Protection, the only panels I can see are Server Information, Protection Method and Private Storage Status. Nowhere mentions the Advanced mode referenced in the documentation. I’m also not sure why Private Storage Status is appearing when I am using the PHP Proxy protection method.

    Additionally, the docs talk about a Protect Media button appearing in the regular WordPress media library, but I do not see this button. I’m not sure if I’m looking in the right place, though, because the package I have created does not involve a file stored in the media library (I uploaded it to the WPDM Package directly and so it is stored in the download-manager-files folder).

    #213889

    In reply to: Invalid Link


    Tahasin
    Moderator

    Thanks for sharing the URL. If you receive any additional reports, please share those package URLs as well.

    #213868

    In reply to: Invalid Link


    Tahasin
    Moderator
    This reply has been marked as private.
    #213702

    Pascal Zajac
    Participant

    We run an organisation where we sell digital content (via Event Espresso, because we also organise and sell events) and need to be able to generate secure links to downloads for those who have purchased. We were previously relying on LearnDash but have come to the conclusion it is unfit for purpose.

    I have purchased Download Manager Pro, have installed it on our staging website and added our license details.

    The frontend display of downloads seems broken: https://jtanstaging.wpengine.com/download/2026-fake-exam/

    I have enabled the Terms lock but nothing is appearing. Is there something I need to enable in my theme in order to make this page work correctly?

    In the backend, numerous functions are not working: the Generate Download URL and Email Download Link options on the All Packages screen do not work, when editing an individual Package the Access Control section does not list any Roles by which to limit access, etc.

    I am happy to grant access to our Staging site to someone from your support team to investigate these issues directly.

    #213213

    In reply to: Check su Moduli


    Tahasin
    Moderator

    We sincerely apologize for the misunderstanding caused by our support staff.

    Kindly paste this line in the choices field, add your terms page URL in href=””
    Field type: radiobutton
    I accept the <a href="your terms page url here" target="_blank">Terms & Conditions</a> of this site.
    Here is the full screenshot

    Let me know, how it goes.


    Nayeem Riddhi
    Moderator

    Hello Willy Lin,

    Hope you are well. The One drive add on working properly in your testing site. Please kindly share the related URLs. if possible, please, give your temporary wp-admin login details in a private reply to check the issue.

    Thank you and regards

Viewing 25 results - 1 through 25 (of 1,708 total)