Forum Replies Created

Viewing 15 replies - 76 through 90 (of 777 total)
  • On the EBD plugin page ( https://wordpress.org/plugins/email-before-download/ ) scroll down to the “Screenshots” part of the page. Then, look at the last screenshot, which I think is the 7th screenshot. I think the page shows you little icons of each page, but only shows you the first 6, so to get to the last one you’ll need to click to the right or click one of the others and then get the last one to kinda scroll into view. Anyway, on the last screenshot you’ll see a screenshot of the CF7 form that you create for EBD. Note the little ebd tag. You can use ebd or you can use ebd_left — using one of those tags on your form will cause your downloads to appear with checkboxes next to them. You probably want ebd_left as it generally looks better. Note that there is a space character after the text and before the slash, so like:

    
    <ebd_left />
    

    In your EBD shortcode, you will list multiple download_ids (one for each file you want to have available for download with a checkbox next to it), like download_id=”424,57,382″ or something like that. Only put the EBD shortcode on your page once (which will mean the form will only appear once on the page).

    EBD cannot do exactly what you want. There may be a plugin that can do that, but I’m not aware of one that can.

    That said, EBD can get sort of close:

    It can display a list of 10 files to download, but they have to be determined in advance. They cannot be “the 10 most recent”. You’d have to pick them when you made the page & put in the shortcode. Additionally, the list of files would have to have a checkbox next to each file. When the user checked any one of the files, then the form would appear. It can do that. The user could check one or more files and fill in the form and hit submit. Then, links would appear for each checked file. The links appear below the form he just filled in. He would then click each link to download each file. Alternatively, you can set it up to send the user an email and in the email it can have each checked file attached or it can have a link for each file and he’d have to click each link to download each file.

    That’s it as far as flexibility. If you need things to work exactly as you described and you can’t find a plugin to do it, then you’re looking at a custom programming job from some wordpress knowledgeable developer. Probably wouldn’t be cheap…

    EBD Setting 9.1 lets you put in custom stuff for the email that goes out. If you look underneath the box for 9.1 you will see a little bit of help text that tells you about tags you can put in there like [filename] or [file_name] (can’t remember which it is). I don’t know if that works, but it’s supposed to .. try it and see.

    It’s difficult to say without seeing the page myself.

    A couple of things you can check:

    Make sure the field names in the CF7 form you created are “your-name” and “your-email” (without the quotes). EBD will not work properly if the email field is not called your-email. If yours is not your-email then change it and retest and see if it’s fixed.

    If still not fixed, try checking the “Hide/Mask” setting in the EBD Settings and save the settings, then retest.

    If that still doesn’t fix it, post a link to your page and the shortcode you are using in here.

    There is no way to do that with a single instance (a single form on the page) of EBD, unless you modified the plugin code itself (which would be some work).

    You can do it if you’re willing to make 3 instances of EBD on that page. Each instance would be for 1 category of downloads. The downside of that is that the 3 would operate independently — visitors would have to enter their name & email address & hit submit 3 times if they wanted 1 or more downloads from each category. And, obviously the form would display 3 times on the page. Not really a good UI experience.

    There is no built-in way to do that. After form submission, EBD can put the link to the download on the page (or it can email it to the user, or both), but it has no way to just start downloading without the user needing to click a link somewhere.

    For the email that goes to the email address that the website visitor typed into the form on your page, you need to either install Postman SMTP plugin or the Custom Sender For Email Before Download plugin in order to set the From: of that email. You should set the From: to a real email address for you domain name (in other words, make sure that the From: email address you put in there can actually receive email and that it goes with your domain name — that will help make sure that mail providers like Yahoo or Gmail don’t just silently throw the email away).

    For the other email, which I call the notification email, the settings for that are controlled by the CF7 form that you created (on the Mail tab of that form). Normally the From: on that is fine and it normally goes to the wordpress admin, which is usually what you want (as the purpose of that email is just to tell you that someone visited the site, filled in the form, and downloaded the file .. or got an email with the file attached or whatever).

    I have only seen this a couple of times in the past where we couldn’t figure out what was going on. You might want to look through this item, particularly the end of it where someone has updated with a solution (at least for that particular person .. may not apply to you):

    https://wordpress.org/support/topic/everything-appears-okay-but-stil-get-contact-form-7-404-not-found/

    What happens behind the scenes is that EBD runs the Contact Form 7 shortcode by calling the do_shortcode() function. It takes the value of the contact_form_id from the EBD shortcode and puts it in the CF7 shortcode when it calls it. That’s about it. So, there’s nothing magic happening…

    That means that the problem is either that it is not reading the contact_form_id properly from the EBD shortcode (which sounds like that was the case in that URL I referenced above, because the HTML editor had pasted in extra stuff into the shortcode that the guy didn’t notice until he went to text mode editor), or something is preventing a plugin from calling do_shortcode, or other plugins or the theme are somehow conflicting in a non-obvious way, or perhaps something related to what files have loaded by the time EBD tries to run that do_shortcode.

    Of those possibilities, the most likely seems to be the issue that the other person had with invisible html codes stuffed inside the EBD shortcode from the wordpress editor. The next most likely, perhaps, is that a security plugin of some type is blocking EBD from being able to properly call CF7. If it’s not either one of those, then I think you’re gonna have to disable most of your plugins, maybe switch your theme, and then run another test .. if it works, start enabling, testing, enabling, testing until it breaks again.

    Ok, I tried out checkboxes with hidden form and it works as it should.

    I then tried a bunch of different stuff to try and break it and I eventually managed to do it and reproduce the error message you’re seeing. I did that by editing my CF7 contact form and just putting a div tag in there without the closing /div tag. That broke things and spit out those loadxml errors like you’re seeing.

    So, I’m guessing you have unclosed/unmatched HTML tags that you’ve put into your CF7 contact form. Check for that.

    I have not seen that before. You’re doing multiple downloads (checkboxes)? What is your shortcode?

    I have a couple of things you can check or try:

    Make sure you have WP_DEBUG turned off. If it’s currently turned on, which I think it is, then turn it off and test again ( or if you want to leave it turned on then make it’s output go to a file — see https://codex.wordpress.org/Debugging_in_WordPress ).

    If that didn’t fix it, then make sure none of the Titles of your download files have any unusual characters in them. No apostrophes, no quotes, no less-than, no greater-than. If you have an apostrophe or whatever in the Title then take it out and retest. By “Title” I’m referring to the Title field in Download Monitor (which is text you provide, not the filename itself).

    If that still didn’t fix it, then change your shortcode to be just 1 download rather than multiple. Test again. There used to be a bug where multiple downloads didn’t work with the hidden option, but I thought the plugin author fixed it .. maybe they didn’t. Try and see. If it works for one then either they didn’t fix it or there’s something goofy with your filenames or filetitles (though there shouldn’t be because of the previous step I had you do).

    Try checking the Hide/Mask option in the EBD Settings and see if that helps.

    Looking at the Network tab of Chrome Developer Tools while your page loads I do see a couple of errors. One is related to jquery.js and the other to unslider.js. I don’t know if those would cause the issue that you’re seeing or not. Other than that, I don’t see any obvious problems.

    What I would do in your shoes is:

    • Fix those errors to make sure they’re not the cause.
    • Make a brand new contact form 7 form from scratch (not duplicating an existing one).
    • Make a new page in WordPress to test with and try to make it as simple as possible (don’t put a bunch of content in it).
    • Put the Contact Form 7 shortcode in that new page (NOTE: do not put the Email Before Download shortcode … put the Contact Form 7 shortcode … we want to test CF7, not EBD, so don’t use the EBD shortcode).
    • Test that and see if it shows up or gives a 404. If it gives a 404 then something whacky is going on like plugins you have enabled are conflicting or you’re loading jquery too many times & getting conflicts or something.

    Unfortunately, it looks like EBD doesn’t save the remote IP address at any point. However, there are a couple of things that might help…

    Download Monitor may save the remote IP address in its logs. Unfortunately, those logs are separate from the EBD CSV file, so you wouldn’t have everything in one place.

    Contact Form 7 has special tags you can use, one of which is for the remote IP address. It looks like that tag may only be valid in the “Mail” tab when you set up (or edit) your CF7 form. That means you could use the tag to get the remote IP, but it will be in the “notification email” (the email that normally gets sent to the wordpress admin), rather than in the database or in the EBD CSV file. Still, that might be helpful for you. The CF7 special tags are detailed at https://contactform7.com/special-mail-tags/

    It might be possible to use a combination of that remote ip special tag and then also one of the CF7 database plugins to try and get everything together somehow, if that’s important to you. I don’t know that it’s possible, or how hard it might be, but there are several plugins that let you get data from CF7 forms or emails into a database. I kind of doubt it’s worth looking into these, but up to you:

    https://contactform7.com/save-submitted-messages-with-flamingo/
    https://wordpress.org/plugins/contact-form-to-db/
    https://wordpress.org/plugins/contact-form-advanced-database/
    https://wordpress.org/plugins/contact-form-cfdb7/

    So it worked for a long time, but now doesn’t? Did you recently upgrade the EBD plugin?

    Edit the CF7 form and make sure that you are using “your-name” and “your-email” as the field names (without the quotes). See the 2nd screenshot for an example of what I mean ( https://wordpress.org/plugins/email-before-download/ ).

    If your form already has the right stuff in there, then duplicate your form (to get a new contact_form_id) then edit your shortcode and put the new contact_form_id in there. Try that. If it still doesn’t work, post a URL to your page

    If your site is hosted on a shared-hosting provider then the most likely cause is that the From: of the email sent by EBD will not match up with your domain name. If that is the case, then you either need to install the Postman SMTP plugin or install the Custom Sender for Email Before Download plugin. Set the From: to be a valid email account for your domain name.

    If you made a custom email template (EBD Setting 9.1 or 9.2) then that could also be contributing. I suggest not doing that until you have everything working well.

    If the above doesn’t help then post a URL to your page so I can try it.

Viewing 15 replies - 76 through 90 (of 777 total)