Forum Replies Created

Viewing 15 replies - 586 through 600 (of 777 total)
  • Yes, thanks. I think that URL looks good (you’ll note that it looks normal and doesn’t have the … that you & the other commenter were seeing [see the first comment in this item]).

    So, I think the problem is we need to replace that WP_PLUGIN_DIR in two places in email-before-download.php and in one place in download.php. I’m just trying to figure out exactly what to replace it with (currently looking at this function http://codex.wordpress.org/Function_Reference/plugin_dir_path which seems to indicate that the function we actually need doesn’t exist [plugins_dir_path], which makes things more difficult for me). Anyway, give me a few more minutes & we’ll take another stab at this and if we still can’t get it working then I’ll make a 4.4 setup tonight & figure it all out & have an answer by tomorrow. But, hopefully I won’t have to do that .. gimme a few mins to come up with something & I’ll post back.

    ah, i think i see the problem. go ahead and tell me what the URL is that you get for the download (just in case).

    it looks like we’ll have to change WP_PLUGIN_DIR over in download.php also. let me do some looking to make sure (post the URL back in here as soon as you get a chance).

    what is the URL that it is trying to go to? (what does the download link actually link to?)

    I’m sorry, when I said the “from:” I really meant the “to:”, so I’m glad you included that in your reply. I suspect the comma with the second email address is breaking it. Change the “to:” to be just your email address and no commas or anything else in there. You can leave the from: as it is.

    ok on the http/https thing. Try my suggestion and see if it works (assuming you are comfortable editing the file).

    You don’t really have to pay them the $10 (assuming this change works), but if you want to see a new version of the plugin with the problem “officially fixed” then I’m guessing that’s probably the best way. Up to you of course.

    If you are not receiving email notifications of what has been downloaded, how do you know what the “from” of the email is? Are you saying that’s what’s in the Contact Form 7 screen you filled in or…?

    Are you set to inline, email, or both?

    I assume you are the administrator of your wordpress. Do you get any emails from your wordpress installation? Is your admin email address in wordpress settings the same as the “from:” address you configured in Contact Form 7?

    Just fyi, I’m not the author of this plugin, but the authors (M&S Consulting) do have a paid support deal for $10. One of you might consider doing that to have them fix this & release a new version.

    That said, you can probably hack in a fix with just a few changes in email-before-download.php. I have not tried this because I don’t have a 4.4 setup, so you guys will have to try this & see if it works…

    So what I think needs to happen is that you need to find the 5 lines that are using “WP_PLUGIN_URL” (which is a wordpress internal variable or constant I believe) and change it to “plugins_url()” and I think that will do it. The double-quotes are not included, I just put them there to make it clear what is changing.

    Before you change email-before-download.php, be sure and make a copy of it and put it in some other directory, just in case. So this is basically a straight text replace of that exact string — don’t change anything else around it like spacing before it for that period that comes right after it, you just want to make WP_PLUGIN_URL become plugins_url() and leave everything else exactly the same.

    There should be 5 occurrences of that I think. I believe it will be lines 531, 588, 844, 853, and 904.

    After making the changes, save it. Use your browser and go to your page that has your email before download form on it and hold down the shift key & click reload (or refresh) to make sure you get a new copy (rather than a cached copy) and then retest and see if you have the same problem (or a new problem). If it doesn’t work, post the URL it gives you back in here like you did initially.

    My guess is that this problem will only affect WP 4.4 installations that are using https … people using http may not see the issue (or they may, I’m just guessing really).

    i haven’t tried it on 4.4 yet. Did you have it fully working on WP 4.3 or did you start with WP 4.4?

    I don’t think so.

    I confused you with another support item from someone else that is pretty similar to what you’re doing. See https://wordpress.org/support/topic/multiple-forms-and-emails

    Xavvi, sorry I slightly confused you with this poster on this item – https://wordpress.org/support/topic/several-buttons-to-download-on-the-same-page-email-before-download?replies=1

    so the stuff about your “production environment” was for him really, not you. Regardless, both of you are sort of trying to do the same thing, so my update still more or less applies.

    I have seen other people’s pages where they have multiple EBD forms on a single page, but I have never done it myself and I can’t recall if I’ve ever seen one that actually worked. Off the top of my head, I’d be surprised if it worked, but maybe… I’m not going to go trace through the code to figure it out. If you had it working at one time then I guess it does work.

    I just use a single form and do the checkboxes to handle multiple files & letting the user choose which one, since that is supported & built in, but I know some people need different separate forms all on one page for some reason.

    One thing about EBD is that it gets things in its database that can later mess you up if you start doing things like flipping around your shortcodes with different form IDs and such but trying to reuse the same fileIDs that you’ve uploaded — things can get kind of goofy. So, one option would be for you to make entirely new forms with new IDs, upload entirely new files (new as in new filenames – do not reuse the same filenames), and then set up new shortcodes with the proper IDs in each one (and never make a mistake on those or you’ll have to start over). I don’t know that that would fix things, but you could try it.

    Or, perhaps something with your redirects and such in your production environment is messing it up somehow, as you suggested in your other support item. Hard to say without seeing it, and even then, who knows…

    Just to be clear, the person that started this thread actually wanted 2 separate templates, which is definitely not possible with the way the plugin is written (it has one set of settings for the templates — it has no place to store another set, nor any way to differentiate as to which one to use).

    You can either do a single file download setup (1 file for the form) and it can show up as a link on the page (via ajax), as an emailed link to the user’s email address (with or without attachment), or both.

    Or, you can do multiple file download which is supported by checkboxes. See both the setup instructions AND the screenshots section of the plugin info on here in order to figure out how to set it up as checkboxes — you have to use either an ebd or ebd_left code and you have to get the spacing right (it needs a space before the end / > stuff). See the screenshots.

    There is no support for a dropdown.

    it needs to be download_id (note the underscore). If that was just a typo in your problem description & you actually do have it in there properly, then post a URL so I can see what’s happening.

    Normally, EBD will send 1 email to the WordPress administrator (you), assuming you have set it up as instructed. In the part where you are configuring the Contact Form 7 stuff you are doing 2 things: one, you are setting up the form fields that a website visitor would type his info into (his name & his email address) and two, you are setting up the information for what I call the “notification email”. The notification email is the one that goes to you (the WP admin) whenever a user fills in the form & hits submit in order to download a file you have set up (or possibly multiple files). Once the user hits submit on the form, he either gets a link that appears on the screen to download the file or he gets an email with a link to the file (and/or the file as an attachment) or both, depending on how you configured the settings. If you configured “both” or “email” then the system sends the user an email. That email is completely handled internally by EBD, it does not use Contact Form 7 for that. The Contact Form 7 config is just for your notification email.

    I can’t quite figure out exactly what you have done in your set up, but if you are not getting a notification email (but do get other emails from wordpress to the admin), then something probably isn’t configured correctly. I suggest you go back through the installation instructions & also look closely at the screenshots — you might need to kind of look at both to get it set up right, depending on what you are doing.

    If you can’t figure it out, post more info about your configuration (like your CF7 settings .. maybe some screenshots)

Viewing 15 replies - 586 through 600 (of 777 total)