Michael Simpson
Forum Replies Created
-
Forum: Plugins
In reply to: [Form to Post] Why not add tax_input to the $simpleFields array?I’m not actively adding features to this plugin. Other plugins suck up too much of my time as it is. If you are interested in coding improvements then I can make you a committer on the project.
Forum: Plugins
In reply to: [Community Yard Sale] Results not showing@howardowens
I put your short codes on a test site. Does it work for you here?
http://michaelsimpson.xyz/2016/07/29/ys-form-howardowens/
http://michaelsimpson.xyz/2016/07/29/ys-listing-howardowens/@mrityunjay
Does it work on my site?
http://michaelsimpson.xyz/2016/07/29/yard-sale-entry/
http://michaelsimpson.xyz/2016/07/29/yard-sale/Forum: Plugins
In reply to: [Community Yard Sale] Results not showingDoes the “event” value in your listing shortcode match the value in your input form shortcode?
Forum: Plugins
In reply to: [Contact Form DB] cfdb is not saving page title and url1. sticky form that is cross site – page title and url are NOT being submitted.
Would you elaborate on what is a “sticky form that is cross site” and how that is set up?
Forum: Plugins
In reply to: [Community Yard Sale] Address cannot be located on Google MapsOK, would you give me some example locations you are trying? Either post here or email me at info@cfdbplugin.com
Forum: Plugins
In reply to: [Community Yard Sale] Address cannot be located on Google MapsWhen you fill out the form, after you enter the address, but before you submit the form, does the google map update to show the correct location that you entered?
Forum: Plugins
In reply to: [Contact Form DB] Save other fields in CF DBCFDB doesn’t support an array of values just a string. You might try putting the values as a comma delimited string then parse them out when you access it.
Forum: Plugins
In reply to: [Contact Form DB] Save other fields in CF DBHow do you mean?
Forum: Plugins
In reply to: [Contact Form DB] My messages don't arriveIt works like this:
Imaging you have selections:
A|email@exmple.com
B|email@exmple.com
C|email@exmple.comLet’s say someone select’s C.
CF7 tells CFDB that the choice is “email@exmple.com”. But it doesn’t tell CFDB that the selection was C.
So I coded CFDB to look at the form definition to see what is before the “|”. But in this case, email@exmple.com appears 3 times. So there is no way to know if A, B, or C was selected. CF7 doesn’t tell us.
So the only option is to make each email different, like this:
A|email@exmpleA.com
B|email@exmpleB.com
C|email@exmpleC.comso that when CF7 says that email@exmpleC.com was selected, CFDB can look at the form definition and see that it could only have come from choice C.
But that is inconvenient if you want it to go to the same email always. The “+xxx” trick can be used to make the emails look different, when in fact, they are not. But not all email servers support this feature.
So the only other option is to have 3 different email addresses.
Forum: Plugins
In reply to: [Contact Form DB] My messages don't arriveThe plugin does not require it. It just requires a unique email address assigned to each option. You can use email addresses without the “+xxxx”. I just give the “+xxxx” as a convenient example for those with email servers that support those kinds of addresses.
As I said in my previous post, you might be able to create new email addresses and forward them all to a single email address and avoid using “+xxxx”.
If it worked before, and does not now, then that is an issue with the mail server where your receive email (not send).
Forum: Plugins
In reply to: [Contact Form DB] Save other fields in CF DBYou would have to write Javascript or JQuery to accomplish this. You can create CFDB export links that return JSON to query for values dynamically.
Forum: Plugins
In reply to: [Contact Form DB] Do not store all formsI’m not sure I understand the question.
You don’t need to set anything in this option for CFDB to work. But there are cases where people have asked for CFDB to NOT save specific forms. You add the name of such forms there. If you are not sure of the form name, do a test submission and look for the form name that CFDB captures and use that name.
Forum: Plugins
In reply to: [Contact Form DB] Update request errorContact me at info@cfdbplugin.com and tell me the email you are using.
Forum: Plugins
In reply to: [Contact Form DB] My messages don't arriveNot all mail servers support that “+xxx” standard.
You still need to set a unique email string for each option. Alternatively, if you control your email server, you could create extra emails to use in the form but set them to all forward to one email.
Forum: Plugins
In reply to: [Contact Form DB] My messages don't arriveOK, I’m stepping through this.
(1) First I added the CF7 form definition you posted. I have the form email to my email, not to value of the field, just to start. And I haven’t added any code.
I submit choosing Otorgamiento de préstamos de la Caja de Asistencia del Diplomático
The CF7 email and CFDB both show Tramite_AFSDP=mail3@afsdp.org.pe as expectedI submit choosing Venta de libros al contado y/o por descuento de planillas
The CF7 email and CFDB both show Tramite_AFSDP=mail3+AFSDP_6@afsdp.org.pe which is what I expect at this point.(2) Now I added code from http://cfdbplugin.com/?page_id=804
I add function form_with_pipes_handler exactly
I add the following also (I named my form “emailtest”)function emailtest_form_handler($formData) // Use a different function name for each form { $formName = 'emailtest'; // change this to your form's name $fieldName = 'Tramite_AFSDP'; // change this to your field's name $newFieldName = $fieldName . '_email'; return form_with_pipes_handler($formName, $fieldName, $newFieldName, $formData); } add_filter('cfdb_form_data', 'emailtest_form_handler'); // ensure 2nd param matches above function name(3) I repeat the 2 form submissions in (1).
I submit choosing Otorgamiento de préstamos de la Caja de Asistencia del Diplomático
In CFDB I see what I expect:
Tramite_AFSDP=Otorgamiento de préstamos de la Caja de Asistencia del Diplomático
Tramite_AFSDP_email=mail3@afsdp.org.pe
I try choosing Venta de libros al contado y/o por descuento de planillas and submit
As I expect I see in CFDB:
Tramite_AFSDP=Venta de libros al contado y/o por descuento de planillas
Tramite_AFSDP_email=mail3+AFSDP_6@afsdp.org.pe
All good so far. But now to test the sending of email.
(4) I go back to the form definition and set the Mail To field to [Tramite_AFSDP]
I change the emails in form definition to my GMail address and the second to my GMail address with “++AFSDP_6” in it.(5) I repeat the same 2 form submissions.
I see in CFDB the same as before (but my own emails now)
I get no error.
I receive both emails to my GMail account. The To field shows my email and my email “++AFSDP_6” in it as expected.Everything appears to work correctly.