Jarri_81
Forum Replies Created
-
Forum: Plugins
In reply to: [Post My CF7 Form] Filtering an addressHi Aurovrata,
That was very helpful!! Thanks a lot!!
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Filtering an addressHi Aurovrata,
Maybe I didn’t explain the situation properly.
I have no issue with google maps api or the function to retrieve latitude and longitude from an address.
My problem is probably in understanding action & filter hooks and the difference between them.
Before reading your answer I was trying to use a filter (as propossed in your plugin -I am still using version 1.3.2 since I could not solve the issue with later versions not allowig me to add metadata). My attempt to get latitude was to use your plugin option “Hook with a filter” in order to map a custom meta field called LAT with the following filter added to functions.php:
add_filter('cf7_2_post_filter-my_post_type-LAT','get_lat',10,2); function get_lat($LAT, $form_data){ $json = file_get_contents("https://maps.google.com/maps/api/geocode/json?address=$form_data['my_field_containing_location]'&sensor=false®ion=$region"); $json = json_decode($json); $lat = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lat'}; return $LAT; }
Similarly, I would map LONG. However these are my first steps into this kind of code so I am assuming (maybe not correctly) that in the moments of executing the filter $form_data[‘my_field_containing_location’] will contain the posted location.
Then, you have proposed using add_action instead of add_filter which adds more uncertainty to my understanding of what I am doing ?? .
Summarizing:
Is $form_data[‘my_field_containing_location’] a valid statement to be included in the function?
Should I use actions instead of filters? How? The plugin only allows my to Hook with filter
Thanks a lot,
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Version 1.4 not allowing metadataHi Aurovrata,
I have installed cf7 and your plugin in a fresh new wordpress install and I am facing the same problem. Only the default post fields seem to be available but actually, if try to create a mapping with some default fields, it does not work at all.
Could I downgrade to the previuos version which worked perfectly for me?
Kind regards,
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Version 1.4 not allowing metadataHi Aurovrata,
Find below the link with a screenshot of my problem mapping posts.
https://drive.google.com/open?id=0B1et4tP-QGQuazNsdjFyTm1XRFU
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Version 1.4 not allowing metadataI cannot create the metafields. The + icon is kind of deactivated (tried with 2 browsers). I will post a screenshot tonite.
I can still use old mapped forms. I have the feling that it is something with the + button.
Forum: Plugins
In reply to: [Post My CF7 Form] Problem with cf7 conditional fields pluginHi Aurovrata,
“Only one option” radio button.
I will try with checkboxes tonite.
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Problem with cf7 conditional fields pluginHi Aurovrata,
Apparently the issue is that I cannot map a radio field! Before I was using dropable select field and then I included conditional radio fields and the problema appeared.
After some debugging it looks like the problema is in the field type and not in wheather it is conditional or not.
Javier.
Forum: Plugins
In reply to: [Post My CF7 Form] Mapping categoriesHi Aurovrata,
Back after a few days away. Yes it worked!
Thanks!
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Ajax issue when submittingHello Aurovrata:
Sorry, I was away for a few days. I did not solved but since this is not critical for the site I dropped the idea about AJAX. I am reloading the page with every submission but I will come back to this issue.
Thanks!
Javier
Hi,
I did not deploy it yet however I am sending a link with a screenshot,
Relating to my previous question:
1. I would like the text “?Que te parece?” to disappear – This is equivalent to the default “leave your comments”
2. I would like to reduce the gap between this text and the social icons above.
Kind regards,
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Mapping customs taxonomiesI found that the issue is not related to the browser or os. If I have already loged in as adminsitrator the form takes the defined taxonomis terms as fields.
When trying to use the form as guest, it appears empty.
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Mapping customs taxonomiesI found that the issue is not related to the browser or os. If I have already loged in as adminsitrator the form takes the defined taxonomis terms as fields.
When trying to use the form as guest, it appear empty.
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Mapping customs taxonomiesHi,
For some reason, changing the slug definition in the custom taxonomy definition from its default value (posttype_customtaxonomy). If I keep it, it works ok.
This is not a problema for me but maybe it is interesting for you to know.
Now my form shows the right terms for each taxonomy! but when a I tried to Access from a mobile device, the form fields are empty. Apparently taxonomy terms are not trasferred to form fields when the form is shown in a mobile (ios) device.
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Problem uploading file to postHi again,
Please, neglect my previous message, it is workign perfectly fine. I was not proceeding correctly.
Javier
Forum: Plugins
In reply to: [Post My CF7 Form] Problem uploading file to postHi Aurovrata,
Now it works! I can upload images. Thanks a lot.
I found another issue now:
I am mapping a checkbox field to define a new taxonomy. When the form is shown in the forntend, then check boxes are not appearing. Instead I am getting this message:
“Warning: Invalid argument supplied for foreach() in /homepages/41/d345092183/htdocs/we-go/wp-content/plugins/post-my-contact-form-7/includes/class-cf7-2-post-factory.php on line 1221”
I will carefully look at class-cf7-2-post-factory.php to see if i can find something.
Once again, thank you for your support.
Kind regards,
Javier