• Hi, I’m usually a reader rather than a poster but this has me utterly defeated.

    I’m working on a client site and trying to reproduce a list of downloadable files with email address form popping up once they click at least one file to download (as per this thread: https://www.ads-software.com/support/topic/sharing-select-files-first-then-display-the-form-and-finally-download-file?replies=19#post-4957656 ).

    This is the shortcode I am using (have tried the workaround as suggested in the second suggestion on the thread above. When I enter one download ID, I get the form. If I enter more than one I get a mess of fatal error messages.

    Here’s my shortcode:

    <div class=”ebdrk”>[email-download download_id=”1838,1836,1833″ contact_form_id=”1824″]
    </div>

    I added the PC Custom CSS plugin and CSS snippet as provided.

    Where am I going wrong?!

    Plugin conflict?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi totallylaura,
    Thanks for the interest in our plugin.
    Just a s note, rhkeahey workaround is addressing a different issue and it is used to move the checkboxes to the left. Recently we updated our plugin as it was mentioned in the same forum thread, and now all you need is add custom tag, either <ebd /> or <ebd_left /> to your Contact Form 7.
    So as we understand your issue is different.
    Your shortcode looks correct. We also assume that you checked option 13 in the Email Before Download settings form. If not, then you have to add one more attribute to your shortcode: hidden_form=”yes”. Also the default state of the ckeboxes should be unchecked (option 12 on the settings form, or attribute: checked=”no”).
    Please make sure that everything else is working correctly. You can check the list of items in this thread https://www.ads-software.com/support/topic/plugin-email-before-download-sticky-getting-faster-support

    Thread Starter totallylaura

    (@totallylaura)

    Thanks for the speedy reply – the options at #12 and 13 are correct – just checking your link before coming back. Thanks so much. Am at the point of giving up and going with single files.

    Thread Starter totallylaura

    (@totallylaura)

    1. Shortcode and a URL showing the WordPress Download Monitor working successfully:

    Shortcode: [download id=”1842″]
    URL: no idea how to get a URL to show the Download Monitor operating correctly?

    2. Shortcode and a URL showing the Contact Form 7 working successfully
    Shortcode: [contact-form-7 id=”1824″ title=”Brochures & Factsheets”]
    URL: https://www.geo-strategies.com/big-data-for-dummies/ (this one works fine)

    the code in this form is as follows:

    <ebd />

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Company
    [text* your-company] </p>

    <p>Job title
    [text* your-job-title] </p>

    <p>Your Email (required)
    [email* your-email] </p>

    <p>Telephone number</br />
    [text* your-phone] </p>

    <p>[submit “Download”]</p>

    *seems that when I add the <ebd/> code it might be breaking?*

    3. Shortcode and a URL showing the Email Before Download failing
    Shortcode: [email-download download_id=”1838,1833″ contact_form_id=”1824″]
    URL: https://www.geo-strategies.com/mulitple-files-testing/ (same code as above but trying to add one extra file already added to Download Monitor)

    Hi totallylaura,

    Thanks for quick and detailed reply.
    We think that the issue is caused not by <ebd /> tag but by the the other broken tag in your Contact Form 7: </br />
    At least we copied it in our form and had the same issue that you described.
    Fix that and try again.

    Yep – I duplicated the </br /> in my test site and it produced the same errors.

    Looks like a simple fix!

    PS – the M&S Consulting guys are very responsive. Kudos!

    Thread Starter totallylaura

    (@totallylaura)

    Thanks so much! This worked a treat BUT…. Now I see the check boxes and no data entry – not even after I tick a box?

    Link here: https://www.geo-strategies.com/testing-multi-files/

    Shortcode: <div class=”ebdrk”>[email-download download_id=”1838,1836,1833″ contact_form_id=”1824″]</div>

    Contact Form code:

    <ebd/>

    <p>Your Name (required)
    [text* your-name] </p>

    <p>Company
    [text* your-company] </p>

    <p>Job title
    [text* your-job-title] </p>

    <p>Your Email (required)
    [email* your-email] </p>

    <p>Telephone number
    [text* your-phone] </p>

    <p>[submit “Download”]</p>

    Hi totallylaura,

    It looks like you tried to make changes in the email-before-download.php file. Please check the line 288, or somewhere close to this line if you modified the file a lot. The generated test page that you provided contains extra <p> tags, that break javascript.
    We strongly advise you now to restore this file to the initial state as if it was installed.

    hi rhkeahey, thank you for your support and nice words about our work

    Thread Starter totallylaura

    (@totallylaura)

    Thanks so much – can I grab the original php from somewhere easily? I deactivated and deleted the plugin but when I reinstalled it it has recalled the settings?

    Hi totallylaura,
    Can you confirm that you after you removed our plugin and re-installed it the modifications that you made on the files are gone?
    The problem is that we can still observe them on your page. This is what we are talking about:
    <p><script>
    function countChecked() {
    var n = jQuery( “input:checked[name*=ebd_downloads]” ).length;
    if(n > 0) jQuery( “#downloadinputform” ).show();
    else jQuery( “#downloadinputform” ).hide();
    };
    jQuery(document).ready(function(){
    jQuery( “input[name*=ebd_downloads]” ).on( “click”, countChecked );
    countChecked();
    });</p>
    <p> </script>

    All these <p> tags do not exist in the original. And the script is broken by the tags inside the <script> tag.
    Also can you clarify what you mean by “it has recalled the settings”? If it is only the settings on the Email Before Download settings page, then it’s ok. This can’t cause any issue.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Email Before Download] – my head hurts’ is closed to new replies.