• Resolved FROM_ROB

    (@from_rob)


    Hello,

    I am writing to ask if its possible to have the download link open in a new browser window, rather than download directly to my HD?

    I am using it to upload PDF’s and have the title template set, if there is a way to make these PDF’s open in a new browser window that would be excellent.

    Thank you!

    https://wordpress.org/plugins/download-monitor/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I also desperately needed to know how to do this!!! I finally found the answer:

    Go to Downloads/Configurations/Custom Output Formats

    Change them to this:

    Download Image
    <img src=”{image_url}” alt=”{title}” />

    Download Title
    Download {title}

    Thread Starter FROM_ROB

    (@from_rob)

    Hi lisarae,

    Thank you pointing out how to do this.
    However, I cannot find the folder named Configurations or Custom Output Formats.
    Just to be clear, you are referring to the actual files within the plugin and not using the WordPress admin area when you are logged in?

    Which version of the plugin are you using?

    Thank you for your help!

    – WordPress Admin Area
    – Left side of page Click on Downloads
    – Then Configurations
    – Then Custom Output Formats
    – You will see a Download Image field and a Download Title Field
    – You need to add to both:
    target=”_blank”
    right after:
    a href=”{url}”
    before the closing >
    -save changes

    I copied and pasted the code into the post last time and it remove most of it… I am going to try again but the directions above tell you what to do.

    Download Image
    <a href="{url}"target="_blank"><img src="{image_url}" alt="{title}" /></a>

    Download Title
    Download <a href="{url}" target="_blank">{title}</a>

    I am using Version 3.3.6.2

    Thread Starter FROM_ROB

    (@from_rob)

    I think we might be using different versions since I do not have those options when I access the Downloads section in the WordPress Admin Area.
    I am using Download Monitor Version 1.4.2.

    If I click Downloads on the left side of the page, I am taken to a new page where I can add an item to be downloaded.

    And if I hover over Download, the flyout gives me the following options:
    All Downloads
    Add New
    Categories
    Tags
    Logs
    Settings
    Add-Ons

    Inside each of these there still aren’t any sections named Configurations or Custom Output Formats.

    Are you able to let me know which version you are using since there seems to be differences.

    Many thanks for your help!

    Thread Starter FROM_ROB

    (@from_rob)

    Oh – your last post updated to reveal the version you are using.
    I see now that you are using the Legacy version.
    I will give that a shot.

    If you happen to figure out who to do this with the current version please let me know.

    Thank you!

    andymiller

    (@andymiller)

    I think the answer might be to create a new content template with the magic target=”_blank” added to the link. The instructions are here:

    https://github.com/mikejolley/download-monitor/wiki/Content-Templates

    you’ll need to read to the end of that section. I haven’t tried this.

    Hi, Guys,

    I had the same problem from FROM_ROB but I found the SOLUTION.

    You can check here on this site how it works: http://bestaudioeditingsoftware.com/wpressforum

    Here we go!

    1- Go to Plugins > Editor;

    2-After you select the Plugin Download Monitor to edit (Top right dropdown bar);

    3- Select the file “download-monitor/templates/content-download-box.php” listed on link side;

    4- Find the code line “…href=”<?php $dlm_download->the_download_link(); ?>” rel=”nofollow”>” ;

    5 – Here is the code again with XXXXX ” href=”<?php $dlm_download->the_download_link(); ?>” XXXXXXX ” rel=”nofollow”>”;

    6 – Where you see XXXXXX, insert the code (target=”_blank”)

    7- The Final Code will looks like: href=”<?php $dlm_download->the_download_link(); ?>”target=”_blank” rel=”nofollow”>

    I hope I could help you guys.

    Evandro.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Open download link in New Window’ is closed to new replies.