dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] Working with Download Monitor, not counting correctlyYou can make it cause the browser’s download/save popup to appear, rather than the PDF displaying in the browser, by going to your download in Download Monitor and setting Force Download to true (or yes or whatever it says).
For downloads that use EBD, you should look at the csv log from the EBD settings page rather than the Download Monitor log.
I am not sure what you mean by the description given for the other stuff you mention. I don’t understand what you mean by unable to hide the URL… Various other people on this support forum have gotten things to work inside javascript popup type windows — some have had to try a couple of different popup plugins to get things working. I have no knowledge of what they did or what plugins they used. Hard to guess why it might act differently between a plain page vs a popup in your case – maybe a javascript issue, who knows….
Forum: Plugins
In reply to: [Email Before Download] Can I use this for newsletter subrscriptionWhen the user hits submit on the form that you made a notification email will be sent to the wordpress admin (or whatever email address you put in the To: field of the Mail tab in the CF7 form you made). That email will contain what the user put in the form. Additionally, EBD will store the value of the your-email field (which is required) and the value of the your-name field in a table in the database. Those get put in their own columns in the table. Also, there is a column called “posted_data” which will get an XML blob of all the submitted form fields (this includes any fields you may have added to the form, like phone or company or whatever).
In the EBD settings page, near the top of it, there is an option to export a CSV file of the email addresses and other stuff that has been submitted. You can use that to get stuff out of the database and into a CSV text file if you want (it also includes that posted_data field so you could theoretically run some program to parse the xml and get values for other fields you may have added to the CSV file. The php program “export.php” is the program that does the export. It is a fairly simple program to understand. You can look in it to see how it queries the database for the data to put into the csv file.
Forum: Plugins
In reply to: [Email Before Download] Can I use this for newsletter subrscriptionNo, it doesn’t integrate with any newsletter or subscription plugins. You would have to do something extra to make the captured email addresses get added to your newsletter subscription list somehow.
There are other plugins that are built to get an email address from the user and subscribe them to a list (like a mailchimp or aweber list or whatever). If you look long enough you might find one that does both a download file and a subscription to a list, but I don’t recall which (if any) do that.
Forum: Plugins
In reply to: [Email Before Download] Plugin just wont work!!!The link to the download file doesn’t really help much. I need to the link to your form so I can try it.
Usually the problem you are describing is that EBD has “learned” something wrong (in other words it stored some settings in the database and you’ve changed things and it doesn’t know it, it keeps using the old settings, and things don’t work). Generally, the best thing to do is to start completely over and NOT use a PDF file. You want to get it working first using a .jpg file, then once you have it working, you can try a pdf.
So, I really need to see and try your form, but probably what I’m going to tell you to do is:
- make a new page in wordpress
- find a .jpg file on your system and make a copy of it and give that copy a new filename that you have never used before. Make it something simple with no punctuation in it. Something like “cdefgh.jpg”.
- go to the Downloads link in your main WP menu (Downloads is Download Monitor)
add the file to Download Monitor and get the ID# for the file. Also, note that in the top-right area of the screen there will be a URL (this is when viewing the detail page of the download you just uploaded). Take that URL and paste it into a browser & make sure it goes to your file and that it downloads correctly. That confirms that Download Monitor is working and that your file is accessible to the world (the world won’t have that URL of course, but we know that if you can get to that file using that URL then that part of the set up should work). - go into Contact Form 7 and make a new form. Make sure the form has a your-email field in it (see the EBD screenshots page). If you don’t have a field named your-email, then it ain’t gonna work.
- Make a new shortcode. The shortcode should use the NEW download_id from the .jpg file that you just uploaded. And, it should use the NEW contact_form_id from the contact form you just created in CF7. It is critical that these IDs are NEW, that you have never used them before, and that you don’t accidentally use one of the old IDs in any way.
Put that new shortcode into the wordpress page you just made (the new page that I had you create in the first step). - Go into your EBD settings and make sure you are set to “both” (not inline or email).
Do not customize any of the template settings or anything like that in EBD.
Leave it set to not masked hidden (though if it doesn’t work, you should flip this settings and test again). - Save EBD settings (if needed).
- Exit your web browser completely
- Restart your web browser.
- Test your form.
- Mainly, you want the inline link to work. Email may or may not work correctly .. sometimes that requires extra work.
- Post the URL to the test form into this ticket if things don’t work (and do not change any of the settings from what I’ve described).
Forum: Plugins
In reply to: [Email Before Download] improve the layout for the list of download linksDid you put
<ebd />in the form you made in CF7?
(Note that there is a space after “ebd” and before the slash)
See the screenshot page for an example:
https://wordpress.org/plugins/email-before-download/screenshots/That looks pretty weird to me in your screenshot. Do your filenames somehow have hyphens in them? Or vertical bars?
I wonder why it’s over on the right side like that rather than underneath. Did you do some sort of customization to the settings or to the plugin code itself?
Forum: Plugins
In reply to: [Email Before Download] Download after form completion?Because EBD stores stuff in the database & then looks things up by id# (like the contact_form id number and download_id numbers), it is possible to get your configuration stored into the database, then go change something, but EBD doesn’t know it changed because the IDs are the same.
That is why you will often see me tell people to go make an entirely new form, reupload their download file so it gets a new ID, make a new shortcode, and put the new shortcode on a new page. That ensures that everything is new & nothing is being pulled from the database from something you tried an hour ago or a year ago or whatever…
Forum: Plugins
In reply to: [Email Before Download] Error: Filename cannot be emptyYou must have a field named your-email in the CF7 form or else it will fail trying to insert a row into wp_ebd_link table because the email column cannot be null.
I have never tried it, but you might be able to make your-name a hidden field and just put some value in it in the form like “junk@junk.com” or something like that. As long as you don’t care about that value & as long as you are set to ‘inline’ then it should never try to send email to it & you wouldn’t care that it was junk@junk.com. That might work…
Forum: Plugins
In reply to: [Email Before Download] Goes straight to downloadIt doesn’t sound like you’ve set things up correctly, as far as I can tell. You didn’t really provide enough information for me to understand what is happening. There is no download button really…
Did you install Contact Form 7, Download Monitor, and Email Before Download plugins? Did you create a form in Contact Form 7? Did you upload a file into the “Downloads” section of your wordpress menu (which is Download Monitor)? Did you use that information to make a shortcode and put it on a page to test and try out?
Forum: Plugins
In reply to: [Email Before Download] File does not download or open in previewYou have two different problems:
Problem 1:
You are encountering the following error when EBD tries to send the notification email to the wordpress admin. Not sure I have ever seen that before. What version of Contact Form 7 do you have installed? Did you test your CF7 install by making a page with just a CF7 form on it & made sure that it worked (before trying to get EBD working also)? I’m guessing you didn’t since this appears to be a CF7 error…
<b>Fatal error</b>: Call to undefined method PHPMailer::getCustomHeaders() in <b>/home/isolatio/public_html/wp-content/plugins/contact-form-7/includes/mail.php</b> on line <b>176</b><br />Problem 2:
The fact that I can see that error is a problem. I can see it because it is being sent as the ajax response when the EBD form is submitted. The response should be a bit of json, but instead it is that error message. That happens when you have it set to log errors and when those errors are set to go to the screen rather than to a file. So, you probably have WP_DEBUG turned on and turning it off would fix this (probably). Or, you could set display_errors off and make it go to a file (this can be done using wordpress by dropping a line into a config file or sometimes people use php.ini). There is more than one way to do all this stuff, so it is difficult for me to tell you exactly what to do to make your set up work, but basically you cannot have errors displayed to the screen or else they get pulled into that ajax response & break everything.
Forum: Plugins
In reply to: [Email Before Download] Send email is not workingread 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] Form with multiple file downloads breaks themeOk, good, I’m glad at least something works!
Looking at the hidden code stuff, it looks to me like that maybe could break if there was something weird in the CF7 form you made. If you took out the btn thing I referred to and you put in a [submit] like I suggested and you removed the [recaptcha] then that would eliminate all of those possibilities. Beyond that, I would look for any extra HTML that you added and remove it in case there is a broken or mismatched bit of HTML in there. And, finally, I would make sure there is no German text in there … nothing but plain ASCII normal english characters — nothing with umlauts or accent marks or anything like that.
Forum: Plugins
In reply to: [Email Before Download] Form with multiple file downloads breaks themeLook in your webserver error log for the 500 error and see if there is any message with it or just before it that indicates what the problem might be.Those error messages that you posted are wordpress error logging messages, rather than from the webserver. Those errors are happening when the plugin runs.
The plugin does not run when you save a post. The only way that could happen is if the plugin used the save_post hook to do something when you saved a post, which it does not do. Thus, something really funky must be happening for you to get a 500 error when you save a post … unless you are saving & previewing which would cause the plugin to run for the preview. If not that, then you have something really bizarre happening somehow…
Also, note that the line numbers indicated in the error messages you posted indicate that you still Hidden form turned on. That code could not execute unless the hidden form option was checked in the EBD settings.
Turn off hidden form and try again. Try to find that message for the 500 error in your webserver error log.
Forum: Plugins
In reply to: [Email Before Download] target download id from thumbnail (without popup)I looked at the cases part of the page you pointed at. I don’t see any way to make that work like you have it without doing something custom (or maybe using some other plugin that could do it).
If you had a submit button underneath the 5 pdf choices then the 5 pdf choices could perhaps be 5 download choices on a single EBD form (implemented as radio buttons). You’d still have to use some crafty css and ikely some javascript and perhaps modify the plugin a little in order to get the radio button itself hidden and the image be clickable to select it with an outline or something. The user would then hit the Submit button and it would all be like a normal multi-download EBD form set up as radio buttons (a single select rather than checkbox multiselect). That seems doable to me, but would require some work & customizations.
Another way might be to make 5 EBD forms on that page. On each one you’d have to hide the input box for the email (the your-email field). You would have 1 email input box, like you have now, and 5 hidden ones. Then, you’d have to do something like make an onSubmit handler (or something similar) which would be in each of the 5 forms so that it jumped in and copied any text in the 1 visible input box into the hidden your-email input box for the form where the submit button was clicked. That would make getting the email address into the correct form work (even though you’d only have 1 visible input field). Each form would have the thumbnail image which would actually be a submit button for that form and each one would need a hidden variable with the correct download_id for that particular form. Obviously this is a good bit of work.
So, that’s two possibilities off the top of my head. There are various other ways it could be done. It might be worth looking at some other plugins. Or, it would be relatively easy to just code the javascript into some static html that would accomplish the UI that want, but then you’d lose the stuff like the notification email that gets kicked out and the data into the database and such, which sort of defeats the purpose.
Good luck…
Forum: Plugins
In reply to: [Email Before Download] Form with multiple file downloads breaks themeoh it looks like you can use single quotes. ok, never mind on that.
Forum: Plugins
In reply to: [Email Before Download] Form with multiple file downloads breaks themeAre you using single quotes in your shortcode? I don’t know if that’s supported .. I would guess it’s not. Make sure you are using double quotes, not single.
Like: download_id=”2529″
Not like: download_id=’2529′