dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] "Object Moved" errorugh, sounds like you’ve done a lot of the stuff I would have asked you to try. hmm. Yeah, [Moderated] and then update this ticket when you do (I don’t normally check that email address .. just a test email address for me, so I’ll need to know to go check it)
Forum: Plugins
In reply to: [Email Before Download] Does not consistently download using ChromeForum: Plugins
In reply to: [Email Before Download] Download page possible?You can get part of the way there sort of — in the EBD settings you can put in your own text for the email that gets sent out and you could put a link in there that goes to some download page. However, there is no way to have it automatically create that download page nor put the links to the download files on that page.
I guess you could make that page yourself and just put links on there yourself, though you would then have a URL on your site that someone might share or post online or whatever that would let them get to your downloads … if you don’t care about that possibility then I guess that could work. You’d be sort of bypassing a lot of the functionality of the EBD and Download Monitor but no big deal if that would work for ya…
Forum: Plugins
In reply to: [Email Before Download] Download does not work in Chrome (in Firefox it does)The plugin is not deprecated (nor depracted) and does not have security issues. Ignore Digico.
The problem you’re seeing is known, but it only affects certain folks — something about your server config or the PDF you’re delivering in combination with how EBD delivers the file (depending on settings) causes the issue. Below, I am going to paste in a response I gave to someone else about this issue — note that in the response it links to another response of mine that is lengthy & eventually gives option A, B, and C — my guess is that you want to do B or C (as A is complicated). Here is my previous response on this:
See my long discussion of this problem here:
https://wordpress.org/support/topic/email-before-download-just-hangs-after-clicking-link?replies=9Scroll down to my comment that begins:
“The download works for Firefox and other browsers — just not Chrome.”
and then read that entire comment closely.You have the same problem. Something about your site or your PDF, in combination with the way EBD delivers the file (possibly), causes problems with Chrome’s internal PDF viewer. The person experiencing that problem in that post actually ended up doing option “C” (turn off hide/mask setting). If you have that checked, you should uncheck it and try again.
Note that you may need to clear your browser cache to get a good test because Chrome’s behavior can change based on whether the PDF is cached or not by the browser.
Are you using the Extra theme from Elegant Themes? Are you using the little modules (like the builder module thingies)?
I’m just guessing, but I suspect the problem might be related to that. The email-before-download shortcode gets executed (and the arguments to it get parsed & stored in variables). Then, the php code does a do_shortcode() call and calls the contact-form-7 shortcode. I’m guessing that the Extra theme is somehow interfering with that do_shortcode call in some way. Essentially, it’s a shortcode within a shortcode (sort of). Not too many plugins do that, so perhaps there’s a bug there that Elegant hasn’t caught. My guess is that this might be related to the quotes around the arguments. You might try changing the email-before-download shortcode to not have any quotes around the arguments. If that doesn’t work, maybe try changing them to single quotes.
Anyway, that’s my best guess. The other possibility is that somehow things have gotten screwed up in the database somehow. You could check that by making a completely new form in contact form 7, make a completely new page in wordpress, upload a new file into download monitor & give it a filename you have never used before, then make a new ebd shortcode from all that new stuff (you should have all new IDs at that point – new form id, new download id) and put that on the new page you made in wordpress and try it. If it’s a database issue then that will get around it.
The other thing you could try is to switch from Extra to some non-builder theme (switch to some simple theme). If you’ve been using the ET builder/module stuff then when you do that you’re going to see all of the ET shortcodes appear, which will look weird. …. just make a new test page and try it & see if it works (that way the EBD shortcode won’t reside inside ET shortcodes, which, as I said, may be interfering with the parsing or something like that)
What is the CF7 shortcode you are using on your test page?
Did you try a test page with -just- the EBD shortcode on it and no other shortcodes?
Forum: Plugins
In reply to: [Email Before Download] Does not consistently download using ChromeFrom your description I was unable to tell if it sometimes doesn’t work with IE or it sometimes doesn’t work with Chrome or if it sometimes doesn’t work with both of them…?
I am not aware of any problems with IE displaying PDFs downloaded using EBD.
I am aware of a problem with some PDFs not downloading and displaying properly in Chrome. It only seems to be certain PDFs and/or certain sites (or certain webservers). The problem appears to be somewhat inconsistent to people because it does sometimes work — the reason why has to do with whether or not the browser has cached it. I’m guessing this is the problem you’re seeing, but maybe not… I’ll wait for you to clarify.
Forum: Plugins
In reply to: [Email Before Download] Sign email marketing email?See the bottom of the Description page ( https://wordpress.org/plugins/email-before-download/ ). There you will find a paragraph or two that talks about paying M&S Consulting $10 for support so that they will respond to you within a day or so. It also mentions that you can inquire about custom work (consulting). You will need to follow that path if you want to get something special.
(make sure you give them a good description of what you are trying to do — I wasn’t able to understand what you want from just that one sentence about registering to your email list … I think you want to make the EBD form work so that it will add the person to your email list instead of just storing the data in EBD’s table. If that’s right then that sounds like something M&S would probably do for the right price I would think, but you’ll have to ask them to find out)
It sounds like you want to have the user download the file and also redirect the browser to a different page. EBD does not have that capability. You would have to write some custom javascript to do that … and I’m not sure how well it would work in various browsers. Might work fine & be consistent, but it might not.
If you search the web you’ll find various javascript suggestions for clicking on a link and both downloading a file and redirecting the browser, such as http://stackoverflow.com/questions/6894900/download-a-file-via-jquery-and-redirect
Of course, you’ll have to figure out how to target the link that EBD adds to the page (via ajax update). Or, modify the plugin php code and put the javascript in there in advance. Either way will take some trial and error I would guess. Plus, testing with various browsers. Plus, if your download file is PDF then that could make things more complicated as well.
Good luck…
I’m still not sure I understand what you’re trying to do, but have you looked at setting #5 in the EBD settings? It lets you set it to _self or _blank, which controls whether clicking on the download link makes the response appear in the same browser (_self) or if it opens a new tab or window (_blank). Maybe that is what you’re looking for?
I’m sorry, I don’t understand your question. Can you ask again and give more detail about what you mean?
Forum: Plugins
In reply to: [Email Before Download] Email won't sendread my 2nd comment in this thread:
https://wordpress.org/support/topic/sent-email-doesnt-contain-a-download-link?replies=5(it starts off “varsha27, please…”)
Forum: Plugins
In reply to: [Email Before Download] Not getting the links in the emailps – if you do get a 500 server error at some point, then look at your webserver log to find out what the error is.
Forum: Plugins
In reply to: [Email Before Download] Not getting the links in the emailNo, that doesn’t sound right. There is no missing opening curly brace.
Line 44 is a one line else statement in PHP. No opening or closing curly brace is needed. The closing curly brace on line 49 goes with the opening curly brace on line 37.
Tons of people use download.php without any edits. You should not need to edit anything for basic functionality.
That said, I’m not 100% certain that multiple urls (checkboxes) works properly with hide/mask and/or expiration (so you may end up needing to make mods). I can’t quite remember. I know that I ended up making some mods for some reason that I can’t recall any more.
What I would do if I were you is put download.php back like it was and then get it working with the defaults. Don’t do hide/mask, definitely don’t do expiration. Just get the default stuff working. Once it’s working, try hide/mask and see if it still works. If so, then try expiration … note that once things get in the database then things can get weird, so you may already be in a weird state. If I were in your shoes, I would start over with a completely new form (to get a new form id), make completely new downloads (to get new download ids) and I would use new filenames too just to be safe, then make a completely new page in wordpress and put your new shortcode in that new page and then test. It’s important that you don’t accidentally use any of the old stuff — if you do, then it might end up pulling old stuff from the database and mess up.
Forum: Plugins
In reply to: [Email Before Download] Not getting the links in the emailjust put [file_urls]
don’t put the a href stuff or the [file_name] thing