WordPress.org

Ready to get started?Download WordPress

Forums

Email Before Download
[Feature Request] - Add WP Download Monitor fields to EBD form (4 posts)

  1. barkmadley
    Member
    Posted 2 years ago #

    Currently (version 3.1.7) EBD will generate this html for the download form (approximately):

    [repeat]
    <br /> <input type="checkbox" name="edg_downloads[]" value="{id}" /> {title}
    [/repeat]

    It would be really good to be able to specify other WPDM fields to put into the text. i.e. version numbers or tags.

    WPDM has "Custom Output Formats", so a relatively simple way to achieve this would be allow the EBD short-code accept a format name|id such that it can look up the format, then there is probably a function defined in WPDM that will do the required formatting.

    If I get some time I will try to implement this myself and send a patch.

    http://wordpress.org/extend/plugins/email-before-download/

  2. mandsconsulting
    Member
    Plugin Author

    Posted 2 years ago #

    Hi barkmadley,

    Thank you for the advice. You might have already noticed that we use WPDM custom formats when they are present to output the links into HTML, however what you suggest seems interesting and maybe a good addition as well. If you happen to implement your patch before we do it we would be happy to include it into one of our next releases.

  3. barkmadley
    Member
    Posted 2 years ago #

    This was actually very simple to implement.

    http://pastebin.com/tKDheAMf

  4. barkmadley
    Member
    Posted 2 years ago #

    obviously I should write how to use it:

    create a custom format in download monitor configuration (preferably one that doesn't contain a link since that would circumvent the whole point of EBD).

    to the email-download short-code in a page, add the form_download_format_id="<id>" as an attribute, where <id> = the id of the custom format you just created.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags