dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] Multiple document issuesI believe I fixed that problem on mine by changing one line in email-before-download.php. If you would like to try it, first make a copy of email-before-download.php and put it off in some other directory if you haven’t already done so (just in case).
Then, at about line 561 you should see these two lines:
// single download for the download monitor file or file lnk else if(!empty($d) || !empty($ebd_item->file) ){change it so that it looks like this:
// single download for the download monitor file or file lnk else if($dIds && (!empty($d) || !empty($ebd_item->file)) ){see if that fixes it.
Forum: Plugins
In reply to: [Email Before Download] Multiple document issuesOk, I tried out your page. Like you, I’m seeing checkboxes, not radio buttons.
Did you set it to use radio buttons in the settings page for Email Before Download or did you put it in the shortcode?
If you set it using the main settings page then I think you should try putting it in the shortcode and see if that will make it work. I’ve never actually tried using radio buttons, but it looks like it should work in the php code, as far as I can tell.
When you put in the shortcode, you need to make sure you make that part of it look like:
use_radio=”yes”
it needs to be lowercase yes like that.Let us know if that works. Also, post your shortcode in here if it’s not working.
The second and third issues you are seeing is because of your CSS (from your theme I assume). In your css file tc_common.min.css there is a wildcard type selector that selects any class beginning with a classname of “icon-” and applies a bunch of styles to it, including a background image and also setting display to inline-block. In EBD, where it displays the file titles/links after you click submit, it is a span with the file title text (“Standard Containers”, etc) and that span is surrounded by a span with a class of “et-icon” and that span is surrounded by an a href that makes the text clickable (makes it a link) and that thing has a classname that begins with “icon-button”. Thus, it is getting modified by that selector in your tc_common.min.css file.
In order to fix that, the easiest way is just to modify email-before-download.php and make it be “zicon-button” which will make the selector miss & everything will work properly. I tried it & it fixed issue #2 and #3 that you’re having. Alternatively, you can add some CSS with !important and get your selector really specific so that it just affects those file download lines & nothing else, but that’s going to be much harder to do.
Forum: Plugins
In reply to: [Email Before Download] Download takes a long time and times outThoughts:
Try both Chrome & Firefox for clicking on the download link. They exhibit different behaviors sometimes and it might help to see if they do the same thing (for example, one may give an error & not save the file, the other may save a zero byte file).
Are you using the latest version of Download Monitor (note that it’s Download Monitor, not Download Manager)?
In your Downloads section (where Download Monitor shows which files you’ve uploaded), you can get to a detail type page that displays info about the file you uploaded. In the top right area of the screen there will be a URL. That URL is the direct URL for the file you uploaded. You should be able to copy that URL & paste it into your browser & download the file. If that doesn’t download, then the problem is with your file or your environment or webserver config or a conflict with a plugin or your Download Monitor setup — not a problem with Email Before Download. If it does download the file, then the problem is more likely a plugin conflict or something weird in the filename itself or a theme conflict or something like that (more related to how Email Before Download deals with the file).
Try doing another file that is not a PDF … upload a jpg & try that.
Are you set to Inline or Both in the EBD settings? If you are set to Inline, then the email you are receiving is the “notification email” that goes to the Administrator (you). If you are set to Both then 2 emails should go out — one is the notification email and the other is to the web surfer who filled in the EBD form & left his email address (when testing, this is also you, though you should use a different email address so you can see which email is which & that you are really getting both of them). ……… IF you are getting both emails, then you could turn on Attachments in the EBD config settings and then try again and see if the email you receive (that would go to the web surfer who filled in the form) has the file attached — if not, then you know the issue is with the filename or the file itself somehow.
Forum: Plugins
In reply to: [Email Before Download] Fatal error: Class 'downloadable_file' not found in …You need Download Monitor, not Download Manager
Forum: Plugins
In reply to: [Email Before Download] Email to User Not SendingEBD sends the email itself using PHP and it sets the From: itself. You have a couple of choices:
1. Most people encountering that problem install the Postman SMTP plugin by Jason Hendriks. Everyone using that plugin has been able to get things working, so that’s your best bet.
2. Alternatively, you can install https://wordpress.org/plugins/custom-sender-for-email-before-download/ which will let you set the From: value in the outgoing email. You will need to set it to a real account associated with your domain name (or to a real account on the system doing the sending .. it kind of depends on how you’re configured) in order to get the email to make it through to certain providers like Yahoo.
You could also set up the various spam-related email things like SPF, Domainkeys, DKIM, etc
Forum: Plugins
In reply to: [Email Before Download] White Screen!You’re probably getting some sort of PHP error. You should look around in your error_log and there will be an error somewhere. Aside from that you could also give more info like:
Did you test Contact Form 7 to see if it was working? Also, did you test Download Monitor to make sure it was working?
What version of everything are you using?
What’s shortcode are you using?Forum: Plugins
In reply to: [Email Before Download] Form error / inline link not appearingWhen you press Submit on your form it never does a POST. It is getting stopped before that point. Most likely due to some javascript validation I’m guessing.
That said, there is another issue that I’ve seen occasionally on other people’s pages — your page is issuing an AJAX GET back to itself along with some Contact Form 7 query string parameters. The requested URL looks like:
http://www.cordelta.com/tools/pen-testing/?_wpcf7_is_ajax_call=1&_wpcf7=5553&_wpcf7_request_ver=1450242132132That may not be an issue, but it might. It looks like it’s probably related to some plugin that is related to Ajax or POSTing or debuggging or redirecting or something like that. Or it could a different symptom related to the same javascript or javascript validation issue with pressing the Submit button.
If I were you I would make a simpler test page without any stuff on it (if possible) an also disable as many plugins as possible — particularly anything mucking around with forms, validation, ajax, submitting, redirecting, etc.
Forum: Plugins
In reply to: [Email Before Download] Not recieving emailsave what you have in the “from:” into a text file then change the “from:” to be the same email address as the from: is when you get an email from wordpress itself (probably something like wordpress@somehostname.com or something like that).
You can make wordpress send you an email by adding a user (and then delete the user). That should cause it to send an email to your admin email address. You can then look at the from: on that email & get the email address it’s using then put that email address into the from: in the Contact Form 7 form you’re using (if you created multiple CF7 forms then make sure the one you’re modifying really is the same one that is in your shortcode).
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?In the meantime, if you have a couple of minutes & want to try something else, I think you should upload a new file (using a new file name that you have never used before). It should get a new Download ID number. Change your shortcode to use the new Download ID and resave your page (or, preferably, make a new test page & put the new shortcode with the new Download ID in that page). Then test that.
In certain situations, Email Before Download can retain information from past attempts (like a bad filename). If you try and change things but continue using the same shortcode, it may have trouble. Thus, it may be worth a few minutes to do a new file name & get a new downloadID and either update your shortcode or make a new page as I said.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?nevermind, let me work on it on my end and come up with a workable solution tomorrow sometime. thanks for trying that stuff though, that helps. i’ll update as soon as possible….
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?can you remove that location on the on_sent_ok for a couple minutes so I can try again and see exactly what it does?
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?ah ok, just saw your update
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?Ok I just tried again, this time with Firefox rather than Chrome. As soon as I press Proceed To Download on the form it pops up a file save window to save the .msi file. It also changes the page to show the big blue download button. After it downloaded the .msi, I went ahead and clicked the big blue download button and Firefox displayed a “The page isn’t redirecting properly” error.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?I just tried your site and it is currently downloading a 6.2 MB file called advansys-recolix.msi (it’s about 1.6 MB so far). In the end, it may fail, but at least for now it appears to be working…
That said, it automatically started the download once I pressed Submit (I believe .. pretty sure I didn’t click the big blue Download Recollx Professional 1.2 Beta button). It may have autodownloaded because I have the Chrome Devtools turned on & it set to not cache stuff, but I haven’t seen it do that before.
Let’s see, it’s almost done…. ok, yeah, it worked. I have a 6.2MB download file now. I’ll try again and see if it did indeed autostart the download
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?Ok, I assume you made a backup copy of email-before-download.php and put it off in some other directory, per my earlier instructions. Do the same now for download.php because we need to change that too.
Alright, this may not work, but we’ll give it a shot and see .. if it doesn’t work, you can put your backup copies of those two files back in place & then check back in a day or two after I’ve updated with a better solution.
Ok, you need to change WP_PLUGIN_DIR to this exact string:
plugin_dir_path( __FILE__ ).”..”That __FILE__ inside the parentheses there is two underscores then the word FILE then two underscores and that’s all together. I have a space after the starting parenthesis and a space before the ending parenthesis, but that spacing doesn’t really matter. After the closing parenthesis is a period then a double quote then two periods then another double quote. So all of that replaces the word WP_PLUGIN_DIR and you leave everything else on the line alone (what comes after it is a space then a period then a space then “/download-monitor/” and some more junk after that.
So for example, here is what line 147 of email-before-download.php should now look like:
$pd = &get_file_data( plugin_dir_path( __FILE__ ).".." . "/download-monitor/download-monitor.php", array("Version"=>"Version"), 'plugin');I gave you that example and spelled out the exact changes because I’m not certain if you can cut’n’paste out of this wordpress forum and get the right characters or if it would give you like html junk or something. You may be able to cut’n’paste it, which would be easier, but pay attention & make sure it looks right.
Anyway, give that a shot. So it’s 3 lines you’re changing in two files. Then, retest and see if that’s any better and let me know on here.
WP_PLUGIN_DIR occurs on line 147 and line 378 of email-before-download.php so you’ll change it in both places there. It also occurs on line 25 of download.php so you’ll change it there as well.