Forum Replies Created

Viewing 15 replies - 106 through 120 (of 777 total)
  • On checkboxes:

    Aside from the multiple IDs in your shortcode like you did (which is correct), you also need to edit your CF7 form and put either

    
    <ebd_left />
    

    or

    
    <ebd />
    

    in there. Note that there is a space character before the slash in that. See the screenshots page for an example ( https://wordpress.org/plugins/email-before-download/screenshots/ ).

    On emails :

    You can probably make the From: and the To: of the CF7 form the same without causing problems (and still get the email .. probably). That email is what I call the “notification email”. It doesn’t have a link to the download file. It’s just to tell you (the WP admin or whoever) that someone has visited the site & downloaded a file. If you have set EBD to ‘both’ or to ’email’ then EBD will also send an email. That second email is the one that has the link to download the file. That second email goes to the email address that the website visitor typed into the form on the webpage when he visited your site. In your initial comment, it sounded like you were getting both emails to the same email address. If so, that’s just happening because you typed that same email address into the form when you were testing. If you’d put something else, like whatever@gmail.com then you would see that one email would go to your info email address (that’s the notification email) and the other email with the link would go to the whatever@gmail.com. There is no actual bug or problem with any of this, I was just trying to explain why you are getting 2 emails to the same account, which was confusing you originally I think.

    Problem 1 :
    The email is actually being sent out properly. The problem is that some mail providers (yahoo mail, gmail, etc) will silently throw away the email if the From: of the email doesn’t look right. EBD sets the From: of that email and on shared-hosting systems it ends up not matching up with a real account on your domain. So, mail providers throw it away. To fix this, you can either install the Postman SMTP plugin (which most people do) or you can install Custom Sender For Email Before Download plugin. Either of those will let you set the From: of the email that EBD sends. You need to make it be a real account on your domain (in other words, in your hosting provider’s menus or whatever, you need to make sure there is an email address that matches what you’re putting in the From:

    Problem 2 :
    I assume you are aware of this, but just pointing out that the pop-up box you have is too small vertically. When one clicks the “Get Your eBook” button, EBD updates that area by appending some messages below that button. Those are falling outside your pop up box .. they kind of merge in with the text of the background window. For example, if I fill in the form correctly and hit “Get Your eBook” then a little below the popup window it will display a link to download the file (this is because you are set to ‘both’ in the EBD settings .. so it does both a link and sends an email). There are also a couple of little messages that display. All that displays outside the popup (below it).

    Problem 3 :
    In the email that gets sent out, there is some text at the beginning of the email that has the link to download the file. That link properly goes to an EBD-style URL (with download.php in the URL). Then, down in the styled box thingy, you have another button-style link and that link has the direct URL to the file, which down in the wp-content/upload tree. That URL isn’t disguised. May not be a big deal to you, but one of the points of EBD is to not have to show the direct link to the file. So, you may want to adjust that. Or not, whatever. That –may– also be preventing the stats collection, though I don’t remember if it logs a download when the visitor clicks the download link or when the visitor submits the form. Anyway, that might be an issue.

    Problem 4 :
    (see the end of problem 3 about stats). Assuming stats are being collected, then you are probably just looking in the wrong place. Try clicking on the “Download CSV file” at the top of the EBD settings rather than looking in the Download Monitor stats.

    The wordpress.org moderators do not allow me to post an email address for you to send stuff to me, unfortunately.

    However, I have an idea what the problem might be. Make sure that you have used “your-name” and “your-email” as the field names in the CF7 form that you made (don’t put the quotes in there). See the 2nd screenshot on the screenshots page for an example of what I mean ( https://wordpress.org/plugins/email-before-download/screenshots/ ). If you do not have a field named your-email then things won’t work.

    juanitac, I just tried your form and everything worked for me. I put in a name & an email address and hit submit. I received an email with the download pdf file (Past Life Therapy, Trauma Release and the Body) attached to the email and also a link to the download file in the email text. I downloaded the attachment and opened it and it worked fine. I also clicked on the link, which displayed the PDF in my browser and then I also downloaded it from within the viewer and it downloaded fine as well. In both cases it gave the correct file name to save the file as.

    So, at least for me, the way you currently have it set up is working. If it’s not working for you, I suggest you clearing your browser cache and trying again. What browser are you using?

    Before trying to do multiple downloads (using checkboxes), it’s always best to get it working for one download first. So, clear your browser cache & try again. Or try a different browser or computer.

    I don’t know if you intend to leave EBD set at ’email’ or if you want inline links too (which would be set to ‘both’). Or what exactly. But, if you’re wanting inline links to appear on the page after the visitor hits submit then you should change to ‘both’ so that I can see if that’s working right or not.

    The reason you are seeing 2 emails is because EBD always sends a “notification email”. That email will not have a link to the download (nor have any attachments). That email is just to let you (the WP admin or whoever) know that a download has happened. Normally, that email is sent to the WP Admin email address (or whatever is configured in the To: field in the CF7 form you made). If you have set EBD to ‘both’ or ’email’, then another email will be sent to the website visitor (whatever email address he types into the form on your webpage). Most likely you are using your WP Admin email address to test the form and that is why you are receiving two emails. If you were using some other email address it would be more clear as to what was happening.

    skelc21, please open a new ticket to describe your problem rather than updating existing ones (which usually causes an email to be sent to the people who originally opened the item, which they don’t typically want to see).

    When you open your new ticket, include a link to your page so I can try it out. Also, put in the shortcode that you are using.

    That’s not how this plugin works.

    Every time you put in the EBD shortcode on a page it is going to generate the form for the name & email when a visitor views that page. If you do multiple shortcodes like that, then they are all independent of each other. There is no built-in way to make the forms somehow talk to each other or to auto-fill the others once one is filled in.

    It is possible to use the EBD shortcode just once on a page and have it handle multiple download files with checkboxes next to each file (the visitor can check or uncheck the checkboxes to determine which files he want to download). In this case, the form is only displayed once so he only needs to fill it in once, select which checkboxes/files he wants, and hit submit. Then, it will update the page with links to each download he selected (or it will email him or both, depending on your choices in the EBD Settings page).

    The key to making checkboxes work properly is to add a little tag to the Contact Form 7 form that you created. You either put

    
    <ebd_left />
    

    or

    
    <ebd />
    

    in your form and that will get replaced with the checkboxes & filenames for the user to select. Note that you MUST have a space in there after the ebd or the ebd_left and before that slash. See the last screenshot on the screenshots page for an example.

    The other thing you have to do is to modify your EBD shortcode to list multiple download_id’s rather than just one. So it might look like download_id=”42,572,34″ or something like that (the ids for all the downloads).

    If you want to try it, I suggest you make a new CF7 form and a new test page in wordpress and put your new shortcode in there with 3 or 4 download_ids and try it. Leave all your existing stuff the same so you don’t mess up what you already have working, Then, if you like it, you can replace it on your existing page or whatever…

    Many of the features of the plugin require the link to download the file to go to a php program in order to work (download.php in this case). By making things go through download.php, the plugin can do things like check to see if the link has expired, mask/hide the actual file location behind the download.php?abunchofletters link, decide whether to actually go get the file itself & send it to the visitor (even if a remote URL) or instead redirect the visitor’s browser to the URL of the file, use Download Monitor to get the file information & increment stats, handle error cases like when the file is missing or inaccessible, etc.

    I can imagine a few people might not care about any of those features and would be fine if the plugin just displayed a direct link to the download file rather than making it go through it download.php, but you’re the first person to actually mention it.

    Frankly, I’m not sure that there’s really that much security benefit to that setting in securi (or wordfence or any other security plugins that do that). If you have found some hole in someone’s system that allows you to write .php files into wp-content, then the fact that you cannot directly access & execute those using your browser is probably not going to stop that many people. All a hacker would need to do is replace some legitimate PHP file of some plugin you have installed & then cause that plugin to execute somehow. If all you have are admin-side plugins, then he would have to wait until you logged in as admin and then his replacement PHP file would run. But, if you had something like a shortcode plugin and you’d used shortcodes on various pages in your site … or if you had a backup program that ran nightly .. or if you had like a mailchimp signup page and a mailchimp plugin .. then he could just replace one of the legitimate PHP files in those plugins and then go to public pages on your site to make one of those plugins run (or wait until your backup program runs) and his code would execute. Securi or Wordfence will detect the change if you have your scan set to do that, but by then it could easily be too late. Anyway, my 2 cents…

    I don’t know of anything that does what you’re wanting to do.

    If you know PHP you could edit email-before-download.php to accomplish what you’re after. It would be some work. The plugin authors rarely update the plugin, and when they do they usually don’t change too much, so if you did change your copy and then later they released a new version, it would probably not be much work to incorporate their changes back into your version (you’d do some diff’ing and such).

    That said, wading through the code and figuring out which parts do what isn’t that much fun. Long ago I made some changes to the way the files are displayed with checkboxes next to them so that there would be a description (like a block of text) underneath each one that gave additional info about it. It’x not terribly complicated, but it’s not exactly simple either … you’d need some time and programming experience to incorporate my changes (particularly since I think a new version has come out since I wrote that so the line numbers I refer to may be off by a line or two .. maybe). Anyway, my changes don’t get you what you want, but using my changes you could figure out how to do it I think (with some effort .. might not be that easy, not sure). Anyway, you can read through this entire item and you’ll see what I mean: https://wordpress.org/support/topic/use-custom-formats-when-displaying-multiple-files-to-select-from/

    No, there’s not really any way to do that. You can do 1 form with the 15 downloads listed and a checkbox next to each one. That would be like one big group though. Or, you could do more than 1 form on the same page, which would let you group the downloads, but you’d have multiple forms & submit buttons on the page. Not really any way to do exactly what you want…

    For EBD to work the email field MUST be named your-email

    I have seen 1 person say that they were able to use this plugin and get it to work so that EBD worked and also the visitor got subscribed to the Mailchimp list:
    https://wordpress.org/plugins/contact-form-7-mailchimp-extension/

    I have also seen 1 person say that they couldn’t get it to work, though they didn’t really provide any info as to what happened exactly.

    I have never used that plugin, but it looks to me like it might work. See the Screenshots page ( https://wordpress.org/plugins/contact-form-7-mailchimp-extension/screenshots/ ) and you’ll see that what it does is just adds a new config tab to the Contact Form 7 configuration panel. Looks to me like all you would need to do is edit your CF7 form, go to the new Mailchimp tab on there, put [your-name] in the name field and [your-email] in the email field and then put your Mailchimp API key and your List ID in there and save it. That just might work. If it doesn’t, I would probably make a new CF7 form and try again (remembering to change the EBD shortcode to use the new contact_form_id that goes with the new form you just made). I don’t know that that would work, but sometimes getting a new form magically fixes things…

    Delete your download from Download Monitor. If the file still shows up in like the media library in WordPress, then delete it from there too. Make sure it’s also gone from the filesystem.

    Uninstall the old version of Download Monitor (if it asks, tell it to remove any configuration data as well).

    Install the latest version of Download Monitor. After installing it, if it shows any downloads configured, then delete those (in other words, if it shows anything leftover from the first time you installed it, get rid of that stuff).

    In Download Monitor, Add your download and upload the file. You should get a new download id value for the file. If it gives you the old download id rather than a new one, then you’ll need to delete it out again and re-upload it (may help to change the filename) so that you get a new never-before-used download id value.

    Edit the wordpress page you made and change your shortcode to reflect the new download_id value.

    Set it to ‘both’ in the EBD Settings.

    Using a different web browser (so that you’re not logged into wordpress), test your page as if you were a visitor to the website.

    If it still doesn’t work correctly, then either check or uncheck the “Hide/Mask” option in the EBD Settings and try again. (check the checkbox if it’s currently unchecked or if it’s already checked then uncheck it).

    If it still doesn’t work correctly, put the URL in here so I can try it. And put your shortcode in here too

    I’ll have to see it and try it out in order to be of any help. Please post a link to the page.

    When the form on your page is submitted, it is being submitted like a normal HTTP POST, rather than as an AJAX POST. The response that comes back is an entirely new page — meaning, everything reloads. What is supposed to happen is that only a few lines of JSON comes back as the response from the AJAX POST, rather than an entire page and content load.

    Looking at Google Chrome Developer Tools (or Firefox Firebug tools), it shows a couple of errors on your page. One error is related to the Contact Form 7 ajax stuff, so I’m pretty sure that’s the problem. It’s unclear what’s causing that error. Looks like maybe something in embed.js is grabbing ajax requests and messing things up. Some sort of conflict it looks like. I don’t really know what that embed.js is .. almost looks like some Dojo stuff maybe. Anyway, clearly there is some sort of javascript issue with some of your javascript interfering with the CF7 ajax post. Good luck tracking it down….

    (The other error, which I don’t think is a big deal, though it’s hard to say, is that embed.js tries to load another jquery.js and gets a 404 for that).

    You need to turn off WP_DEBUG. Or, make it’s output go to a file rather than to the screen. What happens is that when you are ‘inline’ or ‘both’ in the EBD Settings then when the visitor fills out the form on your site & hits Submit, EBD will respond with some JSON that is used to create the inline link on the page. If you have WP_DEBUG turned on and errors are allowed to go the screen, then a PHP warning message gets mushed in with that JSON response and corrupts it (the warning itself can be ignored, but the fact that it shows up is what causes the issue). So, turn off WP_DEBUG or leave it on but make its output go to a file https://codex.wordpress.org/WP_DEBUG

Viewing 15 replies - 106 through 120 (of 777 total)