dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] Email subject No FilenameLook at setting #11 in the EBD settings. You can change the subject text of the email there. If you want the filename to show up in the subject then I think you put [files] or something like that in there (there should be help text underneath the input box on #11 I think).
See this item: https://wordpress.org/support/topic/multiple-downloads-not-working/
If that isn’t the problem, then post a URL so I can go try it myself.
Forum: Plugins
In reply to: [Email Before Download] Trouble getting download descriptions to displayIf I remember correctly, the last time I put my email address in here one of the admins removed it and told me not to do that anymore.
My changes in that item you referred to were only changes to the code that runs if you did ebd_left. So, if yours is working with ebd and not with ebd_left then I suspect you must have some sort of error in the ebd_left portion of your code (which would likely be due to the changes you made trying to follow that prior ticket). Did you cut and paste out of that previous ticket or did you try and retype? Maybe you retyped something incorrectly?
If you have your errors logging to a file then you probably have an error showing up somewhere. It could be in your webserver error log or it might be in a php error log. PHP error logs can be in various places — kind of depends on your host provider and/or what you configured in php.ini or other possibilities.
If you can’t figure it out, then put a URL to your page in here and I’ll go run it and put in my email address in there and you can get my email address that way (you would need to make the form work I guess so that you would get the notification email of me running it .. I guess that means you’d need to put it on ebd rather than ebd_left so that I could then run it with my email address and then you could email your file to that email address .. kinda complicated but I don’t want to the moderators to yell at me again or ban me)
Forum: Plugins
In reply to: [Email Before Download] 404 erorr not found after submitting formEdit the CF7 form that you created and fix it so that the name of the email field in the html form you made is called “your-email” (without quotes). It must be your-email or it won’t work. See the 2nd pic on the screenshot page for an example:
https://wordpress.org/plugins/email-before-download/screenshots/
Forum: Plugins
In reply to: [Email Before Download] Email sent fromForum: Plugins
In reply to: [Email Before Download] 500 Internal Server errorGreat, glad to hear you got it working.
If you are set to ‘inline’ in the EBD settings you are probably all good. If you’re set to ’email’ or to ‘both’ then be sure and check to make sure that the website visitor is actually getting the email with a link in it to download the file. Use a different, separate email account from your wordpress administrator account to test with — ideally, you should see 1 email to the website visitor test email address you made (and that email will have a link to the download) and 1 email to the wordpress administrator email address (and that email will tell you what the user downloaded, but won’t have a link to the download). I mention this because a lot of people are on shared hosting for their wordpress and it is common for many email providers (Yahoo Mail for example) to block the email going to the website visitor because it thinks it might be spam (because the From: value will be goofy because you’re on shared hosting). If you have that problem, you’ll need to install Postman SMTP to configure your email or install the Custom Sender for Email Before Download plugin and set the From value in there. (the From needs to be a real email address that matches your domain name).
Forum: Plugins
In reply to: [Email Before Download] NOT WORKINGYour form is missing the download_id value when I submit it. That’s probably because of your shortcode. Your shortcode needs to look like the one on the screenshots page (obviously with different numbers in there) … the download_id part will need the id from the pdf file you uploaded into Download Monitor (again, see the screenshots page):
https://wordpress.org/plugins/email-before-download/screenshots/Fix that and try again. I saw something else that didn’t look right, but can’t be sure until this first issue is fixed.
Also, are you set for ‘inline’, ’email’, or ‘both’ in the EBD settings?
Forum: Plugins
In reply to: [Email Before Download] Email sent fromAre you set for ‘inline’ or are you set for ’email’ or ‘both’ in the EBD settings?
Forum: Plugins
In reply to: [Email Before Download] Default select radio buttonyeah mine does the same thing
Forum: Plugins
In reply to: [Email Before Download] Default select radio buttonglad to hear it works. Make sure to test it for the positive too … as in, select a radio button and submit and make sure it still works. Now that I’m looking at it again, I’m not 100% sure it will.
Forum: Plugins
In reply to: [Email Before Download] Default select radio buttonI have never actually tried using radio buttons, only checkboxes. Obviously, with checkboxes it’s a multiple download, while radio buttons -should- require a single one to be selected.
With checkboxes, you can put checked=”yes” in the shortcode and that will default all the checkboxes to the checked state … that helps some, but the user can still deselect all of them and then hit submit, meaning it goes through without anything selected and EBD does not handle it well. I suspect that the end result is the same thing as your radio buttons with none of them selected. In my own copy of the plugin, I adjusted the source code to fix the issue I was seeing with nothing selected (for checkboxes). I’m guessing that the same fix might work for you. It requires you to modify a line of code in email-before-download.php. Once you do that, obviously you’ll need to remember to make the same modification again if you ever update the plugin (assuming some new version came out in the future .. something that is pretty rare, fortunately).
Anyway, here is the code change. At around line 562 of email-before-download.php you should see this line:
else if(!empty($d) || !empty($ebd_item->file) ){Change it to be this:
else if( (!empty($d) || !empty($ebd_item->file)) && strpos($ebd_item->download_id,',') === FALSE ){(note that that scrolls off to the right so make sure you get the whole thing as it’s quite a bit longer than before)
Then test again and this time it should catch it if nothing is selected (hopefully) and give an error.
- This reply was modified 9 years, 10 months ago by dtynan.
Forum: Plugins
In reply to: [Email Before Download] Download a .wav fileput this in your EBD shortcode: force_download=”yes”
Forum: Plugins
In reply to: [Email Before Download] After submission: PDF never loads in new tabyes, I was about to mention that. In case you are interested in more info: https://wordpress.org/support/topic/email-before-download-just-hangs-after-clicking-link/
Forum: Plugins
In reply to: [Email Before Download] After submission: PDF never loads in new tabare you using Chrome? If so, try Firefox and report back whether or not it worked.
Forum: Plugins
In reply to: [Email Before Download] Error 503 Service UnavailableYeah, try what I suggested.
Also, where did you put the URL to the S3 file? Is that in the Download Monitor part where you would normally have a local path or did you use file=”http://blahblahblah” in the EBD shortcode or did you put in both places?