• Hi,

    Few questions if anyone could help?

    1) For some downloads (PDF in this case) How can I make the download button shortcode open these in a new tab? _blank target?

    2) Is there a way to make login required to download ANY file? I see the Frontend Access page has login page but no where on each download to make it a requirement? The only requirements I can see is: Must Agree with Terms / Enable Password Lock / Enable Captcha Lock no Require Login? I want zero guest downloads.

    – I’m stupid! I just noticed “Allow Access” tab, d’oh!

    3) Is there an SQL query to bulk update all downloads with “enable captcha” AND “login required” to avoid editing every file one-by-one?

    4) I want to use “Call To Action 3” style but “Download” be the login from “Call To Action 2” with modal login. How can I render this style short-code per category?

    4.1) Okay, so I think I’ve figured this one out using the “Categories Download Manager Category” block set to “include categories” (=PDF), link template “Call to Action 3” 1 column but still don’t know how to make that blue “Download” button a red “Login” and then when logged in it open the PDF link in a new-tab.

    Source: * https://demo.wpdownloadmanager.com/wpdmpro/ready-to-use-templates

    Cheers!

    • This topic was modified 3 years, 3 months ago by davidblood. Reason: i'm silly
    • This topic was modified 3 years, 3 months ago by davidblood. Reason: silly me
    • This topic was modified 3 years, 3 months ago by davidblood.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @davidblood

    1)You can open the file in a new tab by following this:

    i. Copy page-templates directory from /plugins/download-manager/src/package/views
    directory to your active theme directory.

    ii. Make a new directory as download-manager on your active theme directory.

    iii. Now remove all files from {active-theme}/download-manager/page-templates
    except the template files you need to update.

    iv. Update template file(s) in {active-theme}/download-manager/page-templates
    directory as per your need. As you need to add open in a new tab you have to add
    this <a href="[download_url]" target="_blank" rel="noopener">[link_label]</a>

    3) You can do this with WPDM Default Values.

    4) To change the color follow this. To change the Download button to Login button follow this.

    Please let me know for further assistance.

    • This reply was modified 3 years, 3 months ago by Sohrat.
    • This reply was modified 3 years, 3 months ago by Sohrat.
    • This reply was modified 3 years, 3 months ago by Sohrat.
    Thread Starter davidblood

    (@davidblood)

    Hey, @sohrat

    Many thanks for that! I’m using a link template – Would that be the same code? I’m using the “Categories” Block it seems there is no page template option only link template.

    link-template-calltoaction3 is the template I’m using.

    themes/looper-child/download-manager/link-templates/link-template-calltoaction3.php is my override file.

    3) Will check it out, thankyou.

    4) That worked perfectly but it still allows anybody to download. Is there no option for it to be automatic? So if a guest it’s a login button if they’re logged in then it’s a download button.

    Like the demo I want the login w/ padlock to show (if guest) and a download button to show when logged in

    • This reply was modified 3 years, 3 months ago by davidblood.

    1) Yes, you can do the same for the link template.

    4) I’m not clear about your question. If you want users to be logged in before downloading any file you can set the login link or any custom message on WPDM settings:

    • This reply was modified 3 years, 3 months ago by Sohrat.
    • This reply was modified 3 years, 3 months ago by Sohrat.
    Thread Starter davidblood

    (@davidblood)

    Hi, @sohrat

    1) I can’t seem to get it to work with link template, is it because I use “Enable Captcha Lock” setting opening in the pop-up modal blocking login modal?

    1.a) Do you know if hCaptcha support will ever be added? Prefer it over reCAPTCHA and other elements of the site uses hCaptcha so will match.

    2)
    Basically I’m using the “Call to Action 3” template from the Ready To Use Templates page. However, I cannot seem to get it to work with the login system?

    Example: Visiting https://demo.wpdownloadmanager.com/wpdmpro/ready-to-use-templates and it says “Login” red button (if you aren’t logged into demo). However, when you login to the Demo it becomes “Download” instead – that’s what I’m trying to achieve – in simple terms make all downloads require login.

    On a download file page I don’t see this option, I only see “Must Agree with Terms”, “Enable Password Lock” and “Enable Captcha Lock”.

    Under “Package Settings” Tab I’ve my roles in the “Allow Access” but guests can still download (and verify captcha) without logging in despite the allow roles only saying Subscriber and Administrator.

    Changing the “Link Label:” seems to change it fully not depending on login state/visitor

    Cheers
    David.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Download Button (New tab)’ is closed to new replies.