Contact Form Builder – a plugin for creating contact and feedback forms - Version 1.0.66

Version Description

  • Fixed: Editing longitude/latitude from map field settings.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form Builder – a plugin for creating contact and feedback forms
Version 1.0.66
Comparing to
See all releases

Code changes from version 1.0.65 to 1.0.66

Files changed (3) hide show
  1. contact-form-builder.php +2 -2
  2. js/if_gmap_back_end.js +19 -8
  3. readme.txt +6 -3
contact-form-builder.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: https://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
- * Version: 1.0.65
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
  define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
- define('WD_CFM_VERSION', '1.0.65');
14
  define('WD_CFM_PREFIX', 'cfm');
15
  define('WD_CFM_NICENAME', __( 'Contact Form Builder', WD_CFM_PREFIX ));
16
 
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: https://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
+ * Version: 1.0.66
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
  define('WD_CFM_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
12
  define('WD_CFM_URL', plugins_url(plugin_basename(dirname(__FILE__))));
13
+ define('WD_CFM_VERSION', '1.0.66');
14
  define('WD_CFM_PREFIX', 'cfm');
15
  define('WD_CFM_NICENAME', __( 'Contact Form Builder', WD_CFM_PREFIX ));
16
 
js/if_gmap_back_end.js CHANGED
@@ -27,34 +27,45 @@ function update_position(id, i) {
27
  if (longval.length > 0) {
28
  if (isNaN(parseFloat(longval)) == true) {
29
  longval = 2.294254;
30
- }
31
  }
32
  else {
33
  longval = 2.294254;
34
- }
 
35
  if (latval.length > 0) {
36
  if (isNaN(parseFloat(latval)) == true) {
37
  latval = 48.858334;
38
- }
39
  }
40
  else {
41
  latval = 48.858334;
42
- }
43
- var curpoint = new google.maps.LatLng(latval,longval);
 
44
  gmapmarker[id][i].setPosition(curpoint);
45
  gmapdata[id].setCenter(curpoint);
 
46
  cur_zoom = gmapdata[id].getZoom();
 
47
  gmapdata[id].setZoom(cur_zoom);
 
48
  geocoder = new google.maps.Geocoder();
49
- geocoder.geocode({'latLng': gmapmarker[id][i].getPosition()}, function(results, status) {
 
50
  if (status == google.maps.GeocoderStatus.OK) {
51
  if (results[0]) {
52
- if (document.getElementById("addrval" + i)) {
53
  document.getElementById("addrval" + i).value = results[0].formatted_address;
54
- }
55
  }
56
  }
57
  });
 
 
 
 
 
 
58
  return false;
59
  }
60
 
27
  if (longval.length > 0) {
28
  if (isNaN(parseFloat(longval)) == true) {
29
  longval = 2.294254;
30
+ } // end of if
31
  }
32
  else {
33
  longval = 2.294254;
34
+ } // end of if
35
+
36
  if (latval.length > 0) {
37
  if (isNaN(parseFloat(latval)) == true) {
38
  latval = 48.858334;
39
+ } // end of if
40
  }
41
  else {
42
  latval = 48.858334;
43
+ } // end of if
44
+ var curpoint = new google.maps.LatLng(latval, longval);
45
+
46
  gmapmarker[id][i].setPosition(curpoint);
47
  gmapdata[id].setCenter(curpoint);
48
+
49
  cur_zoom = gmapdata[id].getZoom();
50
+
51
  gmapdata[id].setZoom(cur_zoom);
52
+
53
  geocoder = new google.maps.Geocoder();
54
+
55
+ geocoder.geocode({'latLng': gmapmarker[id][i].getPosition()}, function (results, status) {
56
  if (status == google.maps.GeocoderStatus.OK) {
57
  if (results[0]) {
58
+ if (document.getElementById("addrval" + i))
59
  document.getElementById("addrval" + i).value = results[0].formatted_address;
 
60
  }
61
  }
62
  });
63
+
64
+ var map = document.getElementById(id + "_elementform_id_temp");
65
+
66
+ map.setAttribute("long" + i, longval);
67
+ map.setAttribute("lat" + i, latval);
68
+
69
  return false;
70
  }
71
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado
3
  Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.0.65
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -44,15 +44,15 @@ If you found a bug in the plugin or have any problem or question concerning Cont
44
  * Possibility of creating new forms based on the default templates.
45
  * Possibility of changing the labels, content and options for each form.
46
  * Support for additional attributes for each fields.
 
47
  * Blocking IPs and word verification possibilities.
48
  * No possibility of adding new form fields, possibility to edit and enable/disable the large number of existing fields.
49
  * Detailed Email Options both for the Administrator and User for receiving the submitted data.
50
  * Emailing option to the administrator upon submitting a form.
51
- * Google Maps integration.
52
  * Possibility of sending the copy of the submitted data to the user.
53
  * Google ReCaptcha and simple captcha support for avoiding spam.
54
- * Possibility to change the form layout.
55
  * Support for displaying custom text after hitting submit button, as well as redirection to a custom page or url.
 
56
 
57
  ###Upgrade to [Pro version](http://web-dorado.com/products/wordpress-contact-form-builder.html) to add features:
58
 
@@ -78,6 +78,9 @@ After downloading the ZIP file,
78
 
79
  == Changelog ==
80
 
 
 
 
81
  = 1.0.65 =
82
  * Fixed: Conflict with PHP 7.2 version.
83
 
3
  Tags: contact form, contact forms, contact, feedback, form manager, captcha, custom form, email, form, form builder, forms, survey
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.0.66
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
44
  * Possibility of creating new forms based on the default templates.
45
  * Possibility of changing the labels, content and options for each form.
46
  * Support for additional attributes for each fields.
47
+ * Possibility to change the form layout.
48
  * Blocking IPs and word verification possibilities.
49
  * No possibility of adding new form fields, possibility to edit and enable/disable the large number of existing fields.
50
  * Detailed Email Options both for the Administrator and User for receiving the submitted data.
51
  * Emailing option to the administrator upon submitting a form.
 
52
  * Possibility of sending the copy of the submitted data to the user.
53
  * Google ReCaptcha and simple captcha support for avoiding spam.
 
54
  * Support for displaying custom text after hitting submit button, as well as redirection to a custom page or url.
55
+ * Google Maps integration.
56
 
57
  ###Upgrade to [Pro version](http://web-dorado.com/products/wordpress-contact-form-builder.html) to add features:
58
 
78
 
79
  == Changelog ==
80
 
81
+ = 1.0.66 =
82
+ * Fixed: Editing longitude/latitude from map field settings.
83
+
84
  = 1.0.65 =
85
  * Fixed: Conflict with PHP 7.2 version.
86