Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.7.18 |
Comparing to | |
See all releases |
Code changes from version 1.7.17 to 1.7.18
- contact-form-maker.php +2 -2
- contact_form_maker_insert.php +5 -5
- contact_form_maker_update.php +1 -1
- frontend/views/FMViewForm_maker_fmc.php +5 -5
- js/formmaker_div_free.js +2 -0
- readme.txt +1 -1
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
-
* Version: 1.7.
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
@@ -173,7 +173,7 @@ if (class_exists('WP_Widget')) {
|
|
173 |
// Activate plugin.
|
174 |
function form_maker_activate_cfm() {
|
175 |
$version = get_option("wd_form_maker_version");
|
176 |
-
$new_version = '1.7.
|
177 |
if (!$version) {
|
178 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
179 |
global $wpdb;
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
+
* Version: 1.7.18
|
7 |
* Author: http://web-dorado.com/
|
8 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
*/
|
173 |
// Activate plugin.
|
174 |
function form_maker_activate_cfm() {
|
175 |
$version = get_option("wd_form_maker_version");
|
176 |
+
$new_version = '1.7.18';
|
177 |
if (!$version) {
|
178 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
179 |
global $wpdb;
|
contact_form_maker_insert.php
CHANGED
@@ -55,7 +55,7 @@ function contact_from_maker_insert() {
|
|
55 |
`mail_attachment` tinyint(4) NOT NULL DEFAULT '1',
|
56 |
`mail_attachment_user` tinyint(4) NOT NULL DEFAULT '1',
|
57 |
PRIMARY KEY (`id`)
|
58 |
-
)
|
59 |
$wpdb->query($formmaker);
|
60 |
$plugin_path = WD_FMC_URL;
|
61 |
install_demo_forms_fmc();
|
@@ -68,7 +68,7 @@ function contact_from_maker_insert() {
|
|
68 |
`date` datetime NOT NULL,
|
69 |
`ip` varchar(32) NOT NULL,
|
70 |
PRIMARY KEY (`id`)
|
71 |
-
)
|
72 |
$wpdb->query($formmaker_submits);
|
73 |
|
74 |
$formmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_themes` (
|
@@ -77,7 +77,7 @@ function contact_from_maker_insert() {
|
|
77 |
`css` text NOT NULL,
|
78 |
`default` tinyint(4) NOT NULL,
|
79 |
PRIMARY KEY (`id`)
|
80 |
-
)
|
81 |
$wpdb->query($formmaker_themes);
|
82 |
|
83 |
$formmaker_blocked = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_blocked` (
|
@@ -132,7 +132,7 @@ function contact_from_maker_insert() {
|
|
132 |
`form_id` int(11) NOT NULL,
|
133 |
`views` int(50) NOT NULL,
|
134 |
PRIMARY KEY (`form_id`)
|
135 |
-
)
|
136 |
$wpdb->query($formmaker_views);
|
137 |
|
138 |
$formmaker_sessions = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_sessions` (
|
@@ -160,7 +160,7 @@ function contact_from_maker_insert() {
|
|
160 |
`total` float NOT NULL,
|
161 |
`currency` varchar(24) NOT NULL,
|
162 |
PRIMARY KEY (`id`)
|
163 |
-
)
|
164 |
$wpdb->query($formmaker_sessions);
|
165 |
|
166 |
$formmaker_query = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_query` (
|
55 |
`mail_attachment` tinyint(4) NOT NULL DEFAULT '1',
|
56 |
`mail_attachment_user` tinyint(4) NOT NULL DEFAULT '1',
|
57 |
PRIMARY KEY (`id`)
|
58 |
+
) DEFAULT CHARSET=utf8;";
|
59 |
$wpdb->query($formmaker);
|
60 |
$plugin_path = WD_FMC_URL;
|
61 |
install_demo_forms_fmc();
|
68 |
`date` datetime NOT NULL,
|
69 |
`ip` varchar(32) NOT NULL,
|
70 |
PRIMARY KEY (`id`)
|
71 |
+
) DEFAULT CHARSET=utf8;";
|
72 |
$wpdb->query($formmaker_submits);
|
73 |
|
74 |
$formmaker_themes = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_themes` (
|
77 |
`css` text NOT NULL,
|
78 |
`default` tinyint(4) NOT NULL,
|
79 |
PRIMARY KEY (`id`)
|
80 |
+
) DEFAULT CHARSET=utf8;";
|
81 |
$wpdb->query($formmaker_themes);
|
82 |
|
83 |
$formmaker_blocked = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_blocked` (
|
132 |
`form_id` int(11) NOT NULL,
|
133 |
`views` int(50) NOT NULL,
|
134 |
PRIMARY KEY (`form_id`)
|
135 |
+
) DEFAULT CHARSET=utf8;";
|
136 |
$wpdb->query($formmaker_views);
|
137 |
|
138 |
$formmaker_sessions = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_sessions` (
|
160 |
`total` float NOT NULL,
|
161 |
`currency` varchar(24) NOT NULL,
|
162 |
PRIMARY KEY (`id`)
|
163 |
+
) DEFAULT CHARSET=utf8;";
|
164 |
$wpdb->query($formmaker_sessions);
|
165 |
|
166 |
$formmaker_query = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix . "formmaker_query` (
|
contact_form_maker_update.php
CHANGED
@@ -164,7 +164,7 @@ function contact_form_maker_update_until_mvc() {
|
|
164 |
`total` varchar(200) NOT NULL,
|
165 |
`currency` varchar(24) NOT NULL,
|
166 |
PRIMARY KEY (`id`)
|
167 |
-
)
|
168 |
$wpdb->query($form_maker_sessions_table);
|
169 |
$form_rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
170 |
foreach ($form_rows as $form_row) {
|
164 |
`total` varchar(200) NOT NULL,
|
165 |
`currency` varchar(24) NOT NULL,
|
166 |
PRIMARY KEY (`id`)
|
167 |
+
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=17";
|
168 |
$wpdb->query($form_maker_sessions_table);
|
169 |
$form_rows = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "formmaker");
|
170 |
foreach ($form_rows as $form_row) {
|
frontend/views/FMViewForm_maker_fmc.php
CHANGED
@@ -1165,7 +1165,7 @@ class FMViewForm_maker_fmc {
|
|
1165 |
}
|
1166 |
if (isset($w_disabled_fields[5]) && $w_disabled_fields[5]=='no') {
|
1167 |
$g++;
|
1168 |
-
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;display: inline-block;"><select type="text" id="wdform_'.$id1.'_country'.$form_id.'" name="wdform_'.($id1+5).'_country'.$form_id.'" style="width:100%" '.$param['attributes'].'>'.$w_options.'</select><label class="mini_label">'.$w_mini_labels[5].'</span>';
|
1169 |
}
|
1170 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><div>
|
1171 |
'.$address_fields.'</div></div></div>';
|
@@ -1988,10 +1988,10 @@ class FMViewForm_maker_fmc {
|
|
1988 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
1989 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
1990 |
|
1991 |
-
$rep ='<div type="type_mark_map" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_width'].'px;"><input type="hidden" id="wdform_'.$id1.'_long'.$form_id.'" name="wdform_'.$id1.'_long'.$form_id.'" value="'.$param['w_long'].'"><input type="hidden" id="wdform_'.$id1.'_lat'.$form_id.'" name="wdform_'.$id1.'_lat'.$form_id.'" value="'.$param['w_lat'].'"><div id="wdform_'.$id1.'_element'.$form_id.'" long0="'.$param['w_long'].'" lat0="'.$param['w_lat'].'" zoom="'.$param['w_zoom'].'" info0="'
|
1992 |
|
1993 |
$onload_js .='if_gmap_init("wdform_'.$id1.'", '.$form_id.');';
|
1994 |
-
$onload_js .='add_marker_on_map("wdform_'.$id1.'", 0, "'.$param['w_long'].'", "'.$param['w_lat'].'", "'
|
1995 |
|
1996 |
break;
|
1997 |
}
|
@@ -2017,7 +2017,7 @@ class FMViewForm_maker_fmc {
|
|
2017 |
$param['w_lat'] = explode('***',$param['w_lat']);
|
2018 |
$param['w_info'] = explode('***',$param['w_info']);
|
2019 |
foreach($param['w_long'] as $key => $w_long ) {
|
2020 |
-
$marker.='long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'
|
2021 |
}
|
2022 |
|
2023 |
$rep ='<div type="type_map" class="wdform-field" style="width:'.($param['w_width']).'px"><div class="wdform-label-section" style="display: table-cell;"><span id="wdform_'.$id1.'_element_label'.$form_id.'" style="display: none;">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="width: '.$param['w_width'].'px;"><div id="wdform_'.$id1.'_element'.$form_id.'" zoom="'.$param['w_zoom'].'" center_x="'.$param['w_center_x'].'" center_y="'.$param['w_center_y'].'" style="width: 100%; height: '.$param['w_height'].'px;" '.$marker.' '.$param['attributes'].'></div></div></div>';
|
@@ -2025,7 +2025,7 @@ class FMViewForm_maker_fmc {
|
|
2025 |
$onload_js .='if_gmap_init("wdform_'.$id1.'", '.$form_id.');';
|
2026 |
|
2027 |
foreach($param['w_long'] as $key => $w_long ) {
|
2028 |
-
$onload_js .='add_marker_on_map("wdform_'.$id1.'",'.$key.', "'.$w_long.'", "'.$param['w_lat'][$key].'", "'
|
2029 |
}
|
2030 |
break;
|
2031 |
}
|
1165 |
}
|
1166 |
if (isset($w_disabled_fields[5]) && $w_disabled_fields[5]=='no') {
|
1167 |
$g++;
|
1168 |
+
$address_fields .= '<span style="float: '.(($g%2==0) ? 'right' : 'left').'; width: 48%; padding-bottom: 8px;display: inline-block;"><select type="text" id="wdform_'.$id1.'_country'.$form_id.'" name="wdform_'.($id1+5).'_country'.$form_id.'" style="width:100%" '.$param['attributes'].'>'.$w_options.'</select><label class="mini_label">'.$w_mini_labels[5].'</label></span>';
|
1169 |
}
|
1170 |
$rep.='</div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_size'].'px;"><div>
|
1171 |
'.$address_fields.'</div></div></div>';
|
1988 |
$param['w_field_label_pos1'] = ($param['w_field_label_pos']=="left" ? "float: left;" : "");
|
1989 |
$param['w_field_label_pos2'] = ($param['w_field_label_pos']=="left" ? "" : "display:block;");
|
1990 |
|
1991 |
+
$rep ='<div type="type_mark_map" class="wdform-field" style="width:'.$wdformfieldsize.'px"><div class="wdform-label-section" style="'.$param['w_field_label_pos1'].'; width: '.$param['w_field_label_size'].'px;"><span class="wdform-label">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="'.$param['w_field_label_pos2'].' width: '.$param['w_width'].'px;"><input type="hidden" id="wdform_'.$id1.'_long'.$form_id.'" name="wdform_'.$id1.'_long'.$form_id.'" value="'.$param['w_long'].'"><input type="hidden" id="wdform_'.$id1.'_lat'.$form_id.'" name="wdform_'.$id1.'_lat'.$form_id.'" value="'.$param['w_lat'].'"><div id="wdform_'.$id1.'_element'.$form_id.'" long0="'.$param['w_long'].'" lat0="'.$param['w_lat'].'" zoom="'.$param['w_zoom'].'" info0="'.str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info']).'" center_x="'.$param['w_center_x'].'" center_y="'.$param['w_center_y'].'" style="width: 100%; height: '.$param['w_height'].'px;" '.$param['attributes'].'></div></div></div> ';
|
1992 |
|
1993 |
$onload_js .='if_gmap_init("wdform_'.$id1.'", '.$form_id.');';
|
1994 |
+
$onload_js .='add_marker_on_map("wdform_'.$id1.'", 0, "'.$param['w_long'].'", "'.$param['w_lat'].'", "'.str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info']).'", '.$form_id.',true);';
|
1995 |
|
1996 |
break;
|
1997 |
}
|
2017 |
$param['w_lat'] = explode('***',$param['w_lat']);
|
2018 |
$param['w_info'] = explode('***',$param['w_info']);
|
2019 |
foreach($param['w_long'] as $key => $w_long ) {
|
2020 |
+
$marker.='long'.$key.'="'.$w_long.'" lat'.$key.'="'.$param['w_lat'][$key].'" info'.$key.'="'.str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info'][$key]).'"';
|
2021 |
}
|
2022 |
|
2023 |
$rep ='<div type="type_map" class="wdform-field" style="width:'.($param['w_width']).'px"><div class="wdform-label-section" style="display: table-cell;"><span id="wdform_'.$id1.'_element_label'.$form_id.'" style="display: none;">'.$label.'</span></div><div class="wdform-element-section '.$param['w_class'].'" style="width: '.$param['w_width'].'px;"><div id="wdform_'.$id1.'_element'.$form_id.'" zoom="'.$param['w_zoom'].'" center_x="'.$param['w_center_x'].'" center_y="'.$param['w_center_y'].'" style="width: 100%; height: '.$param['w_height'].'px;" '.$marker.' '.$param['attributes'].'></div></div></div>';
|
2025 |
$onload_js .='if_gmap_init("wdform_'.$id1.'", '.$form_id.');';
|
2026 |
|
2027 |
foreach($param['w_long'] as $key => $w_long ) {
|
2028 |
+
$onload_js .='add_marker_on_map("wdform_'.$id1.'",'.$key.', "'.$w_long.'", "'.$param['w_lat'][$key].'", "'.str_replace(array("\r\n", "\n", "\r"), '<br />', $param['w_info'][$key]).'", '.$form_id.',false);';
|
2029 |
}
|
2030 |
break;
|
2031 |
}
|
js/formmaker_div_free.js
CHANGED
@@ -2598,6 +2598,7 @@ function change_func(id, label) {
|
|
2598 |
}
|
2599 |
|
2600 |
function change_in_value(id, label) {
|
|
|
2601 |
document.getElementById(id).setAttribute("value", label);
|
2602 |
}
|
2603 |
|
@@ -29307,6 +29308,7 @@ function gen_form_fields()
|
|
29307 |
if(document.getElementById(id+"_elementform_id_temp"+k).getAttribute('other')=='1')
|
29308 |
w_allow_other_num=tt;
|
29309 |
w_choices[tt]=document.getElementById(id+"_elementform_id_temp"+k).value;
|
|
|
29310 |
if(w_choices[tt][w_choices[tt].length-1]==' ')
|
29311 |
w_choices[tt]=w_choices[tt].substring(0, w_choices[tt].length-1);
|
29312 |
w_choices_checked[tt]=document.getElementById(id+"_elementform_id_temp"+k).checked;
|
2598 |
}
|
2599 |
|
2600 |
function change_in_value(id, label) {
|
2601 |
+
label = label.replace(/"/g, """);
|
2602 |
document.getElementById(id).setAttribute("value", label);
|
2603 |
}
|
2604 |
|
29308 |
if(document.getElementById(id+"_elementform_id_temp"+k).getAttribute('other')=='1')
|
29309 |
w_allow_other_num=tt;
|
29310 |
w_choices[tt]=document.getElementById(id+"_elementform_id_temp"+k).value;
|
29311 |
+
w_choices[tt] = w_choices[tt].replace(/"/g, """);
|
29312 |
if(w_choices[tt][w_choices[tt].length-1]==' ')
|
29313 |
w_choices[tt]=w_choices[tt].substring(0, w_choices[tt].length-1);
|
29314 |
w_choices_checked[tt]=document.getElementById(id+"_elementform_id_temp"+k).checked;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.
|
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: form, forms, contact form, contact forms, contact form plugin,contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contac forms, custom form,Contact form maker with recaptcha, contact form with google map, feedback form, feedback forms, contact us
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.7.18
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|