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

Version Description

Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

admin/models/CFMModelManage_cfm.php CHANGED
@@ -74,7 +74,7 @@ class CFMModelManage_cfm {
74
  $label = $labels[$ids_key];
75
  $type = $types[$ids_key];
76
  $params = $paramss[$ids_key];
77
- if (strpos($form, '%' . $id . ' - ' . $label . '%')) {
78
  $rep = '';
79
  $param = array();
80
  $param['attributes'] = '';
@@ -670,6 +670,7 @@ class CFMModelManage_cfm {
670
  }
671
  }
672
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
 
673
  }
674
  }
675
  $row->form_front = $form;
74
  $label = $labels[$ids_key];
75
  $type = $types[$ids_key];
76
  $params = $paramss[$ids_key];
77
+ if (strpos($form, '%' . $id . ' - ' . $label . '%') || strpos($form, '%' . $id . ' -' . $label . '%')) {
78
  $rep = '';
79
  $param = array();
80
  $param['attributes'] = '';
670
  }
671
  }
672
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
673
+ $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
674
  }
675
  }
676
  $row->form_front = $form;
admin/views/CFMViewManage_cfm.php CHANGED
@@ -36,6 +36,7 @@ class CFMViewManage_cfm {
36
  <div style="float: left; font-size: 14px; font-weight: bold;">
37
  This section allows you to edit forms.
38
  <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a>
 
39
  </div>
40
  <div style="float: right; text-align: right;">
41
  <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
@@ -297,6 +298,9 @@ class CFMViewManage_cfm {
297
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
298
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
299
  }
 
 
 
300
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
301
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
302
  w_field_label_pos = "top";
36
  <div style="float: left; font-size: 14px; font-weight: bold;">
37
  This section allows you to edit forms.
38
  <a style="color: blue; text-decoration: none;" target="_blank" href="http://web-dorado.com/wordpress-contact-form-builder-guide-2.html">Read More in User Manual</a>
39
+ <p>There is no possibility of adding new form fields, whereas you can edit, enable/disable the current fields included in each form.</p>
40
  </div>
41
  <div style="float: right; text-align: right;">
42
  <a style="text-decoration: none;" target="_blank" href="http://web-dorado.com/files/fromContactFormBuilder.php">
298
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
299
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
300
  }
301
+ else {
302
+ w_field_label = " ";
303
+ }
304
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
305
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
306
  w_field_label_pos = "top";
contact-form-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://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.4
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://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.5
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
frontend/views/CFMViewForm_maker.php CHANGED
@@ -127,7 +127,7 @@ class CFMViewForm_maker {
127
  $label = $labels[$id1s_key];
128
  $type = $types[$id1s_key];
129
  $params = $paramss[$id1s_key];
130
- if (strpos($form, '%' . $id1 . ' - ' . $label . '%')) {
131
  $rep = '';
132
  $required = FALSE;
133
  $param = array();
@@ -201,7 +201,7 @@ class CFMViewForm_maker {
201
  $check_js .= '
202
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
203
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0) {
204
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
205
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
206
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
207
  return false;
@@ -240,7 +240,7 @@ class CFMViewForm_maker {
240
  $check_js .= '
241
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
242
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
243
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
244
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
245
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
246
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -282,7 +282,7 @@ class CFMViewForm_maker {
282
  $check_js .= '
283
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
284
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
285
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
286
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
287
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
288
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -322,7 +322,7 @@ class CFMViewForm_maker {
322
  $check_js .= '
323
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
324
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
325
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
326
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
327
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
328
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -364,7 +364,7 @@ class CFMViewForm_maker {
364
  $check_js .= '
365
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
366
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
367
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
368
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
369
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
370
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -413,7 +413,7 @@ class CFMViewForm_maker {
413
  $check_js .= '
414
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
415
  if (tinyMCE.get("wdform_'.$id1.'_wd_editor'.$form_id.'").getContent()=="") {
416
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
417
  jQuery("#wdform_'.$id1.'_wd_editor'.$form_id.'").addClass( "form-error" );
418
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
419
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -475,7 +475,7 @@ class CFMViewForm_maker {
475
  $check_js .= '
476
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
477
  if (jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="") {
478
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
479
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
480
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
481
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -567,7 +567,7 @@ class CFMViewForm_maker {
567
  $check_js .= '
568
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
569
  if (jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="") {
570
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
571
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
572
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
573
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -579,7 +579,7 @@ class CFMViewForm_maker {
579
  $check_js .= '
580
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
581
  if (jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[2].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="'.$w_title[3].'" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="") {
582
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
583
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
584
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
585
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -676,7 +676,7 @@ class CFMViewForm_maker {
676
  $check_js .= '
677
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
678
  if (jQuery("#wdform_'.$id1.'_street1'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_street2'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_city'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_state'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_postal'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_country'.$form_id.'").val()=="") {
679
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
680
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
681
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
682
  jQuery("#wdform_'.$id1.'_street1'.$form_id.'").focus();
@@ -735,7 +735,7 @@ class CFMViewForm_maker {
735
  $check_js .= '
736
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
737
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
738
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
739
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
740
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
741
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -818,7 +818,7 @@ class CFMViewForm_maker {
818
  $check_js .= '
819
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
820
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0) {
821
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
822
  old_bg = x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
823
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
824
  return false;
@@ -890,7 +890,7 @@ class CFMViewForm_maker {
890
  $check_js .= '
891
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
892
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "") {
893
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
894
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
895
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
896
  return false;
@@ -953,7 +953,7 @@ class CFMViewForm_maker {
953
  $check_js .= '
954
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
955
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
956
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
957
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
958
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
959
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -988,7 +988,7 @@ class CFMViewForm_maker {
988
  $check_js.= '
989
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
990
  if (jQuery("#wd_captcha_input'.$form_id.'").val()=="") {
991
- alert("' .$label. ' ' . addslashes(__('field is required.', 'contact_form_maker')) . '");
992
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
993
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
994
  jQuery("#wd_captcha_input'.$form_id.'").focus();
@@ -1075,6 +1075,7 @@ class CFMViewForm_maker {
1075
  }
1076
  }
1077
  $form = str_replace('%' . $id1 . ' - ' . $labels[$id1s_key] . '%', $rep, $form);
 
1078
  }
1079
  }
1080
  $rep1 = array('form_id_temp');
127
  $label = $labels[$id1s_key];
128
  $type = $types[$id1s_key];
129
  $params = $paramss[$id1s_key];
130
+ if (strpos($form, '%' . $id1 . ' - ' . $label . '%') || strpos($form, '%' . $id1 . ' -' . $label . '%')) {
131
  $rep = '';
132
  $required = FALSE;
133
  $param = array();
201
  $check_js .= '
202
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
203
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0) {
204
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
205
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
206
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
207
  return false;
240
  $check_js .= '
241
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
242
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
243
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
244
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
245
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
246
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
282
  $check_js .= '
283
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
284
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
285
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
286
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
287
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
288
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
322
  $check_js .= '
323
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
324
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
325
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
326
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
327
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
328
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
364
  $check_js .= '
365
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
366
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
367
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
368
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
369
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
370
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
413
  $check_js .= '
414
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
415
  if (tinyMCE.get("wdform_'.$id1.'_wd_editor'.$form_id.'").getContent()=="") {
416
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
417
  jQuery("#wdform_'.$id1.'_wd_editor'.$form_id.'").addClass( "form-error" );
418
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
419
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
475
  $check_js .= '
476
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
477
  if (jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="") {
478
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
479
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
480
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
481
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
567
  $check_js .= '
568
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
569
  if (jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="") {
570
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
571
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
572
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
573
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
579
  $check_js .= '
580
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
581
  if (jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[2].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="'.$w_title[3].'" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="") {
582
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
583
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
584
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
585
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
676
  $check_js .= '
677
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
678
  if (jQuery("#wdform_'.$id1.'_street1'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_street2'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_city'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_state'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_postal'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_country'.$form_id.'").val()=="") {
679
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
680
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
681
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
682
  jQuery("#wdform_'.$id1.'_street1'.$form_id.'").focus();
735
  $check_js .= '
736
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
737
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
738
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
739
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
740
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
741
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
818
  $check_js .= '
819
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
820
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0) {
821
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
822
  old_bg = x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
823
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
824
  return false;
890
  $check_js .= '
891
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
892
  if (x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "") {
893
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
894
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
895
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
896
  return false;
953
  $check_js .= '
954
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
955
  if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="") {
956
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
957
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
958
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
959
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
988
  $check_js.= '
989
  if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
990
  if (jQuery("#wd_captcha_input'.$form_id.'").val()=="") {
991
+ alert("' .addslashes($label. ' ' . __('field is required.', 'contact_form_maker')) . '");
992
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
993
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
994
  jQuery("#wd_captcha_input'.$form_id.'").focus();
1075
  }
1076
  }
1077
  $form = str_replace('%' . $id1 . ' - ' . $labels[$id1s_key] . '%', $rep, $form);
1078
+ $form = str_replace('%' . $id1 . ' -' . $labels[$id1s_key] . '%', $rep, $form);
1079
  }
1080
  }
1081
  $rep1 = array('form_id_temp');
js/contactformmaker.js CHANGED
@@ -10262,15 +10262,13 @@ function call(i,key)
10262
  }
10263
 
10264
 
10265
- function edit(id)
10266
- {
10267
- if(need_enable)
10268
  enable2();
10269
-
10270
  document.getElementById('editing_id').value=id;
10271
  type=document.getElementById("wdform_field"+id).getAttribute('type');
10272
-
10273
-
10274
  /*parameter take*/
10275
  k=0;
10276
 
@@ -10286,10 +10284,12 @@ function edit(id)
10286
  t=0;
10287
 
10288
  /*shat handipox*/
10289
-
10290
- if(document.getElementById(id+'_element_labelform_id_temp').innerHTML)
10291
- w_field_label=document.getElementById(id+'_element_labelform_id_temp').innerHTML;
10292
-
 
 
10293
  if(document.getElementById(id+'_label_sectionform_id_temp'))
10294
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
10295
  w_field_label_pos="top";
10262
  }
10263
 
10264
 
10265
+ function edit(id) {
10266
+ if (need_enable) {
 
10267
  enable2();
10268
+ }
10269
  document.getElementById('editing_id').value=id;
10270
  type=document.getElementById("wdform_field"+id).getAttribute('type');
10271
+
 
10272
  /*parameter take*/
10273
  k=0;
10274
 
10284
  t=0;
10285
 
10286
  /*shat handipox*/
10287
+ if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
10288
+ w_field_label = document.getElementById(id+'_element_labelform_id_temp').innerHTML;
10289
+ }
10290
+ else {
10291
+ w_field_label = " ";
10292
+ }
10293
  if(document.getElementById(id+'_label_sectionform_id_temp'))
10294
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
10295
  w_field_label_pos="top";
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
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 Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,7 +35,7 @@ After submitting the form, the users might get a custom text and even receive an
35
  * Possibility of deactivating and arranging fields
36
  * Support for additional attributes for each fields
37
  * Blocking IPs and word verification possibilities
38
-
39
 
40
  Upgrade to [WordPress Contact Form Builder](http://web-dorado.com/products/wordpress-contact-form-builder.html) to add features:
41
 
@@ -46,7 +46,7 @@ Upgrade to [WordPress Contact Form Builder](http://web-dorado.com/products/wordp
46
 
47
  ### Supported languages Of Contact Form Builder
48
 
49
- *If you need language of Contact Form Builder which is not included in this list, please contact us and we will do the translation of Contact Form Builder within 3 days. If you find some mistakes in the translation of Contact Form Builder, please contact us and we will correct it within 3 days.*
50
 
51
  Afrikaans (af)
52
  Albanian (sq)
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 Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
  * Possibility of deactivating and arranging fields
36
  * Support for additional attributes for each fields
37
  * Blocking IPs and word verification possibilities
38
+ * No possibility of adding new form fields, possibility to edit and enable/disable the large number of existing fields.
39
 
40
  Upgrade to [WordPress Contact Form Builder](http://web-dorado.com/products/wordpress-contact-form-builder.html) to add features:
41
 
46
 
47
  ### Supported languages Of Contact Form Builder
48
 
49
+ *If you need language of Contact Form Builder which is not included in this list, please contact us and we will do the translation of Contact Form Builder within 3 days. If you find any mistakes in the translation of Contact Form Builder, please contact us and we will make relevant corrections within 3 days.*
50
 
51
  Afrikaans (af)
52
  Albanian (sq)