How to make a Download Link to a downloadable item in Directory Theme 8.9.7

  • Jason
    Jason
    Titan
     
    657 points

    Hiya,

    May I ask if someone knows the way to make a Download Link to a downloadable item in Directory Theme 8.9.7 with PP themes please,

    And merry Xmas to you all

    Thanks in advance


    Jason
    Jason
    Titan
     
    657 points

    Thanks in advance


    JamesD
    JamesD
    Elite Member
     
    579 points

    Hi Jason,

    As far as I’m aware a custom solution or at the least a custom form with the correct parameters.

    You’re probably already aware, but here’s an example just in case:

    <form method="post" action="<!-- YOUR MAIN URL -->/index.php" target="_blank" style="margin:0px;">
        <input type="hidden" name="pid" value="<!-- YOUR POST ID -->" /> 
        <input type="hidden" name="free" value="1" />
        <input type="hidden" name="purchased" value="1" />
        <input type="hidden" name="downloadproduct" value="1" />
        <button type='submit' class='btn btn-primary'>Download</button>
    </form>

    You can alter it and/or styling to display it as just a link and not a button.

    This is actually one of those things I’ve been wanting to add into a little helping type plugin I’ve been working on. I’ve just been hesitant on adding any new functionality with the release of v9 around the corner.


    Jason
    Jason
    Titan
     
    657 points

    Attached

    Attachments:
    You must be logged in to view attached files.

    JamesD
    JamesD
    Elite Member
     
    579 points

    You can look for some sort of download/protector plugin.

    Attached is a plugin I’ve used for a long while that has worked fine for me without any problems, HOWEVER, it is an older plugin and no longer supported by the author.

    It’s relatively straight forward and you can put the files to be where ever and/or set the location of them..

    Attachments:
    You must be logged in to view attached files.

    JamesD
    JamesD
    Elite Member
     
    579 points

    Wait… what’s the file type of the “downloadable” item in the DT?
    How do you set the items to be downloadable?


    Jason
    Jason
    Titan
     
    657 points

    Anyone ???


    JamesD
    JamesD
    Elite Member
     
    579 points

    I’m still not sure what you’re looking for.

    < a href="FULL_URL_TO_ZIP" class="btn btn-default" role="button">Download File</ a>

    Are you needing something as simple like this or integrated with the theme?

    Note: Had to intentionally add an extra space at the beginning, and end, of the ‘a’ tag to display properly.


    Jason
    Jason
    Titan
     
    657 points

    that above doesnt work at all.

    Here is what I found works

    GET FILE NOW


    Jason
    Jason
    Titan
     
    657 points

    This is it hopefully

    < class="btn btn-primary btn-lg" href="www.web_link_here.com">GET FILE NOW</ a>

    Marie
    Marie
    Super Guru
     
    1,190 points

    Thanks for sharing :)


    JamesD
    JamesD
    Elite Member
     
    579 points

    @Jason
    “This is it hopefully”
    You do realize that what you put is the same thing, right? You’re funny. 😉

    I can probably help you with what you’re attempting to do, but you would need to provide more information on EXACTLY what you’re trying to do other than asking for a button to download a file.

    What ever works best for you, was just trying to help.


Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.