dtynan
Forum Replies Created
-
That error is coming from Contact Form 7 ( http://contactform7.com/faq/after-submitting-the-form-i-get-an-error-message/ ). It sounds like your WordPress probably doesn’t have mail set up correctly, or you may have misconfigured the fields in the CF7 form you made.
Before you do anything, I suggest you read my first 2 comments in this thread, which will explain how the EBD emails work:
https://wordpress.org/support/topic/sent-email-doesnt-contain-a-download-link?replies=5As you can see, 2 emails are sent (assuming you chose ’email’ or ‘both’ in the EBD settings). Your best option at this point is to install Postman SMTP. That will let you configure the From: field (which will let it get delivered to mail providers like Yahoo Mail, which would otherwise block it). It will also probably make the red box error message go away. And, if nothing else, it at least gives you a log you can look at to see what is wrong.
Forum: Plugins
In reply to: [Email Before Download] Log csv does not show info correctlyThere is no built-in way – like through menus or settings – to do an image instead of wording for the download
There are two css classes on the a href for the inline link. One class is “icon-button” and the other is “download-icon”. Using css styling, you can probably make it look like a button with the text inside it. I think that’s what that’s for and it seems like I vaguely remember someone doing that on some page I looked at. You’ll need some CSS skills to do this I suppose.
Or, you could edit the email-before-download.php file & change the html to make it do some sort of image/button thingy rather than the text. You can search the file for “download-icon” and you’ll find 3 lines where it builds the HTML in the php code. Which of the 3 that gets used depends on what options you’ve chosen so you’d probably just want to change all 3 to do what you want. Obviously, you’ll need some basic PHP and HTML skills to do this.
Forum: Plugins
In reply to: [Email Before Download] Log csv does not show info correctlyIt’s difficult to tell what’s happening from that screenshot rather than looking at the data file itself.
My guess is that the data itself might not be messed up and instead it just looks messed up because you are looking at it in Excel and Excel appears to not be parsing it as a comma-separated value file (there are various options in Excel to tell it how to understand text files it brings in & it looks like maybe you don’t hav.e the right ones selected).
Also, just fyi, the export csv file function has the field names hard-coded in there, so it will not make columns in the csv file for any extra fields you put on the form. Thus, it will have a column for the value of the “your-name” field from the form but not any extra name fields (like surname or whatever). Even though there won’t be a column in the csv for each extra field you put on the form, the data for any extra fields you add will actually be there, but it’s all stuffed into that xml you see in the “posted_data” column. Thus, “posted_data” will be an xml blob & it will contain every field & value that was POSTed up to the server when the website visitor hit Submit on your form. In order to get at that data, you’d probably want to use some sort of script that could parse that xml blob & get the data out you want then write out a new csv file with the columns you want & whatever you wanted from the xml (this might also be possible in some programs like Excel, but I don’t know if it can parse xml in a cell or not).
Forum: Plugins
In reply to: [Email Before Download] EBD doesnot capture other fields in Contact Form 7In Contact Form 7 when you add or edit a contact form you will see 4 tabs.
The first tab is “Form” and that is where you put in the fields & whatever text you want to display to the website visitor when they go to your page. You need to have at least “your-email” as a field (and you might also need “your-name” as a field). You can make up other fieldnames and add them in there if you want … like “your-company”, for example.
The second tab is “Mail” and that configures the email that CF7 sends out when the website visitor hits the submit button (after filling in his info on the form you made). That email should go to you (the website administrator). Whatever fields you made in the “Form” tab will be available to you in this “Mail” tab (if you add new fields in the Form tab then you need to Save it and then go to the Mail tab and they will be available). On the Mail tab, near the top you will see the list of fields you can use … like [your-email] and so on. Putting those in the template for the email will cause the values the user entered to appear where you put the field on the email (in the Mail tab).
If you selected ‘Both’ or ‘Email’ in the EBD settings, then EBD will also send an email to the website visitor, using the email address he entered on the form. That email can be customized in section 9.1 or 9.2 of the EBD settings. However, the available fields are very limited — they are hardcoded into EBD. There is no way to put values in there from additional fields you have added to your CF7 form (at least not without modifying the plugin).
Forum: Plugins
In reply to: [Email Before Download] Sent email doesn't contain a download linkwait, what do you mean it “shows download.php”? Do you mean it shows the PHP statements as text rather than running the program? Or do you mean you see that download.php is running but nothing appears?
Assuming the latter, then most likely you are using Chrome as your browser. Try it again with Firefox. If it works, then read through this item: https://wordpress.org/support/topic/email-before-download-just-hangs-after-clicking-link?replies=11
Forum: Plugins
In reply to: [Email Before Download] Sent email doesn't contain a download linkMake sure you used the field name of “your-email” in the CF7 form you created (see the screenshots page for an example of the form with your-email in it).
If that doesn’t fix it, add a comment here with a link to your page so I can try it. Also include the shortcode you’re using and whether or not you have mask/hide checked in the EBD settings.
Forum: Plugins
In reply to: [Email Before Download] Email before download just hangs after clicking linkYou can try to “force” the download, which will cause the file save box to popup as if someone had right-clicked.
Go into your Downloads (the Download Monitor section of your wordpress menu). Edit whatever your download is so you’re on the detail page. Over on the right side will be a checkbox for something like “Force Download”. Check it (or uncheck it if it’s already checked). Test again. If it still doesn’t work change the hide/mask setting and try again.
Note that testing this is really tricky. There is a difference in how Chrome works or doesn’t work, depending on whether or not the PDF is in your browser’s cache or not (and possibly how recently it got in there). That is probably why you are sometimes seeing it work and sometimes hang. I suggest you clearing your cache & exiting & restarting your browser every single time between tests. That way you will be certain to never have anything cached and a clean browser every time you test. Otherwise, you won’t really know what works & what doesn’t….
Forum: Plugins
In reply to: [Email Before Download] Want to use it in footer.phpI don’t see any way to make that work.
Forum: Plugins
In reply to: [Email Before Download] Cannot find file IDGreat, glad it works.
Just as a side note — if you have it set to ’email’ or ‘both’ rather than ‘inline’ in EBD settings then there is a good chance that the email probably isn’t getting to the website visitor that filled out the form, depending on who his email provider is. Some providers, like Yahoo Mail, are probably going to block the email. If you are set to ’email’ or ‘both’ then let me know & I’ll explain what you need to do (you might want to test with a yahoo email account to confirm that it doesn’t get through). If you’re set to ‘inline’, just ignore this… π
Forum: Plugins
In reply to: [Email Before Download] Cannot find file IDThis is a moderately complicated installation procedure in that you need 2 other plugins aside from Email Before Download — you need Contact Form 7 and also Download Monitor. I’m guessing you probably didn’t install Download Monitor? Or, perhaps you did but then didn’t upload your file into it … it is the “Downloads” link on your main WordPress menu .. you upload the file there, not in the Media Gallery.
Make sure you have closely read the Description page of the Email Before Download plugin, the FAQ page, and looked at all the screenshots on the Screenshot page. Some of that stuff is a bit out of date, but it should give you enough to get installed correctly (make sure you use the latest version of Download Monitor, not the old version mentioned on the Description page).
Forum: Plugins
In reply to: [Email Before Download] Sent Message and CSV ExportThe file you included there was download.php, not email-before-download.php. However, that may not matter as I just realized that message text you are seeing is not in either file.
Hmm. Unfortunately, my installation has been modified a whole bunch, so I’m not sure exactly where that would be coming from. You can check the EBD settings page in your wordpress menu. There are 15 or so settings in there – maybe that message is in one of those boxes.
Also, go check the CF7 form you made. Edit it and then one of the tabs is “Messages”. Click on that and then scroll down and look at each of the messages and see if it’s in there. I wouldn’t expect it to be since it specifically mentions a “download”, but check just to be sure.
If you don’t find it in either of those places then it has to be in email-before-download.php .. maybe you have an older version than the latest or something? not sure….
Forum: Plugins
In reply to: [Email Before Download] Download simply does not work. No file returnedDid you install Download Monitor? If so, what version.
Did you upload a file into Download Monitor then use that ID# in your shortcode?
What is your shortcode?
Forum: Plugins
In reply to: [Email Before Download] Sent Message and CSV ExportYou have to edit email-before-download.php in order to change that message (I believe it is in two places so you’d probably want to change both). Note that if a new version of Email Before Download comes out at some point and you upgrade then it will overwrite your changed version and you’ll need to make that change again.
On the csv export, the fields are all hardcoded into the export.php file. So, you can add new fields to the CF7 form, but they won’t show up as their own column in the csv. However, one column in the csv file is called posted_data or something like that and it contains all the fields that were sent up when the user pressed submit on the form. That will have any extra fields and their values. Obviously it’s just one column in the csv so in order to get all the data into that one column they make it xml. So, to get the data back out you’d have to have some sort of script or program or something like that to parse the xml in that field and pull out that extra piece of data. Alternatively, you could make a bunch of modifications to email-before-download.php and export.php to add that extra field to the database tables and then support it in the code & in the export code. That would be some work.
Forum: Plugins
In reply to: [Email Before Download] Download link is 404Ok. It’s extra weird that it finds the attachment but the link doesn’t work. I have to say I haven’t see that exact case before. Sorry I wasn’t more help.
Forum: Plugins
In reply to: [Email Before Download] Download link is 404also, don’t use any punctuation in the filename you upload (aside from the period). Same goes for the file description you type in. No dashes, no underscores, etc. That shouldn’t make a difference, but just eliminating things…. Do not use any foreign characters either, obviously.