Version Description
- Fixed: Conflict with CDN Enabler plugin.
- Fixed: Line breaks in textarea.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.55 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.54 to 1.0.55
- contact-form-builder.php +2 -2
- frontend/views/CFMViewForm_maker.php +1 -1
- js/cfm_main_front_end.js +1 -1
- readme.txt +6 -1
contact-form-builder.php
CHANGED
|
@@ -3,14 +3,14 @@
|
|
| 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.
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 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.
|
| 14 |
|
| 15 |
// Plugin menu.
|
| 16 |
function contact_form_maker_options_panel() {
|
| 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.55
|
| 7 |
* Author: WebDorado
|
| 8 |
* Author URI: http://web-dorado.com/
|
| 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.55');
|
| 14 |
|
| 15 |
// Plugin menu.
|
| 16 |
function contact_form_maker_options_panel() {
|
frontend/views/CFMViewForm_maker.php
CHANGED
|
@@ -804,7 +804,7 @@ class CFMViewForm_maker {
|
|
| 804 |
$check_js .= '
|
| 805 |
if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
|
| 806 |
if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() != "") {
|
| 807 |
-
if (
|
| 808 |
alert("' . addslashes(__("This is not a valid email address.", 'contact_form_maker')) . '");
|
| 809 |
old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
|
| 810 |
x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
| 804 |
$check_js .= '
|
| 805 |
if (x.find(jQuery("div[wdid='.$id1.']")).length != 0) {
|
| 806 |
if (jQuery("#wdform_'.$id1.'_element'.$form_id.'").val() != "") {
|
| 807 |
+
if (cfm_check_email("wdform_' . $id1 . '_element' . $form_id . '")) {
|
| 808 |
alert("' . addslashes(__("This is not a valid email address.", 'contact_form_maker')) . '");
|
| 809 |
old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
|
| 810 |
x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
|
js/cfm_main_front_end.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
F = 2;
|
| 2 |
var chCode1 = e.which || e.keyCode;
|
| 3 |
if (chCode1 != 45 ) {
|
| 4 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 5 |
return false;
|
| 6 |
}
|
| 7 |
}
|
| 8 |
return true;
|
| 9 |
}
|
| 10 |
}
|
| 11 |
}
|
| 12 |
br.setAttribute("id", num+"_other_br"+form_id);
|
| 13 |
el_other.setAttribute("id", num+"_other_input"+form_id);
|
| 14 |
el_other.setAttribute("name", num+"_other_input"+form_id);
|
| 15 |
el_other.setAttribute("type", "text");
|
| 16 |
el_other.setAttribute("class", "other_input");
|
| 17 |
var chCode1 = e.which || e.keyCode;
|
| 18 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 19 |
return true;
|
| 20 |
}
|
| 21 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 22 |
return false;
|
| 23 |
}
|
| 24 |
if (document.getElementById(id+genid)) {
|
| 25 |
srcArr = document.getElementById(id+genid).src.split("&r=");
|
| 26 |
document.getElementById(id+genid).src = srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 27 |
document.getElementById(id+"_input"+genid).value = '';
|
| 28 |
document.getElementById(id+genid).style.display = "inline-block";
|
| 29 |
}
|
| 30 |
}
|
| 31 |
}
|
| 32 |
if (document.getElementById(id+"_other_input"+form_id)) {
|
| 33 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 34 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 35 |
}
|
| 36 |
var chCode1 = e.which || e.keyCode;
|
| 37 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 38 |
return true;
|
| 39 |
}
|
| 40 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 41 |
return false;
|
| 42 |
}
|
| 43 |
return false;
|
| 44 |
return false;
|
| 45 |
return false;
|
| 46 |
ofontStyle = jQuery(x).prop('class');
|
| 47 |
jQuery(x).val("").removeClass("input_deactive").addClass("input_active");
|
| 48 |
}
|
| 49 |
if (jQuery(x).val() == "") {
|
| 50 |
jQuery(x).val(jQuery(x).prop('title')).removeClass("input_active").addClass("input_deactive");
|
| 51 |
}
|
| 52 |
while (node.firstChild) {
|
| 53 |
node.removeChild(node.firstChild);
|
| 54 |
}
|
| 55 |
var ttt;
|
| 56 |
if (node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 57 |
node.removeChild(node.childNodes[ttt]);
|
| 58 |
ttt--;
|
| 59 |
}
|
|
|
|
| 60 |
var chCode1 = e.which || e.keyCode;
|
| 61 |
if (chCode1 != 45 ) {
|
| 62 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 63 |
return false;
|
| 64 |
}
|
| 65 |
}
|
| 66 |
return true;
|
| 67 |
}
|
| 68 |
}
|
| 69 |
}
|
| 70 |
br.setAttribute("id", num+"_other_br"+form_id);
|
| 71 |
el_other.setAttribute("id", num+"_other_input"+form_id);
|
| 72 |
el_other.setAttribute("name", num+"_other_input"+form_id);
|
| 73 |
el_other.setAttribute("type", "text");
|
| 74 |
el_other.setAttribute("class", "other_input");
|
| 75 |
var chCode1 = e.which || e.keyCode;
|
| 76 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 77 |
return true;
|
| 78 |
}
|
| 79 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 80 |
return false;
|
| 81 |
}
|
| 82 |
if (document.getElementById(id+genid)) {
|
| 83 |
srcArr = document.getElementById(id+genid).src.split("&r=");
|
| 84 |
document.getElementById(id+genid).src = srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 85 |
document.getElementById(id+"_input"+genid).value = '';
|
| 86 |
document.getElementById(id+genid).style.display = "inline-block";
|
| 87 |
}
|
| 88 |
}
|
| 89 |
}
|
| 90 |
if (document.getElementById(id+"_other_input"+form_id)) {
|
| 91 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 92 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 93 |
}
|
| 94 |
var chCode1 = e.which || e.keyCode;
|
| 95 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 96 |
return true;
|
| 97 |
}
|
| 98 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 99 |
return false;
|
| 100 |
}
|
| 101 |
return false;
|
| 102 |
return false;
|
| 103 |
return false;
|
| 104 |
ofontStyle = jQuery(x).prop('class');
|
| 105 |
jQuery(x).val("").removeClass("input_deactive").addClass("input_active");
|
| 106 |
}
|
| 107 |
if (jQuery(x).val() == "") {
|
| 108 |
jQuery(x).val(jQuery(x).prop('title')).removeClass("input_active").addClass("input_deactive");
|
| 109 |
}
|
| 110 |
while (node.firstChild) {
|
| 111 |
node.removeChild(node.firstChild);
|
| 112 |
}
|
| 113 |
var ttt;
|
| 114 |
if (node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 115 |
node.removeChild(node.childNodes[ttt]);
|
| 116 |
ttt--;
|
| 117 |
}
|
| 118 |
return jQuery("#" + id).val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 ? true : false;
|
|
|
|
| 1 |
var chCode1 = e.which || e.keyCode;
|
| 2 |
if (chCode1 != 45 ) {
|
| 3 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 4 |
return false;
|
| 5 |
}
|
| 6 |
}
|
| 7 |
return true;
|
| 8 |
}
|
| 9 |
}
|
| 10 |
}
|
| 11 |
br.setAttribute("id", num+"_other_br"+form_id);
|
| 12 |
el_other.setAttribute("id", num+"_other_input"+form_id);
|
| 13 |
el_other.setAttribute("name", num+"_other_input"+form_id);
|
| 14 |
el_other.setAttribute("type", "text");
|
| 15 |
el_other.setAttribute("class", "other_input");
|
| 16 |
var chCode1 = e.which || e.keyCode;
|
| 17 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 18 |
return true;
|
| 19 |
}
|
| 20 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 21 |
return false;
|
| 22 |
}
|
| 23 |
if (document.getElementById(id+genid)) {
|
| 24 |
srcArr = document.getElementById(id+genid).src.split("&r=");
|
| 25 |
document.getElementById(id+genid).src = srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 26 |
document.getElementById(id+"_input"+genid).value = '';
|
| 27 |
document.getElementById(id+genid).style.display = "inline-block";
|
| 28 |
}
|
| 29 |
}
|
| 30 |
}
|
| 31 |
if (document.getElementById(id+"_other_input"+form_id)) {
|
| 32 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 33 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 34 |
}
|
| 35 |
var chCode1 = e.which || e.keyCode;
|
| 36 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 37 |
return true;
|
| 38 |
}
|
| 39 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 40 |
return false;
|
| 41 |
}
|
| 42 |
return false;
|
| 43 |
return false;
|
| 44 |
return false;
|
| 45 |
ofontStyle = jQuery(x).prop('class');
|
| 46 |
jQuery(x).val("").removeClass("input_deactive").addClass("input_active");
|
| 47 |
}
|
| 48 |
if (jQuery(x).val() == "") {
|
| 49 |
jQuery(x).val(jQuery(x).prop('title')).removeClass("input_active").addClass("input_deactive");
|
| 50 |
}
|
| 51 |
while (node.firstChild) {
|
| 52 |
node.removeChild(node.firstChild);
|
| 53 |
}
|
| 54 |
var ttt;
|
| 55 |
if (node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 56 |
node.removeChild(node.childNodes[ttt]);
|
| 57 |
ttt--;
|
| 58 |
}
|
| 59 |
+
F = 2;
|
| 60 |
var chCode1 = e.which || e.keyCode;
|
| 61 |
if (chCode1 != 45 ) {
|
| 62 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 63 |
return false;
|
| 64 |
}
|
| 65 |
}
|
| 66 |
return true;
|
| 67 |
}
|
| 68 |
}
|
| 69 |
}
|
| 70 |
br.setAttribute("id", num+"_other_br"+form_id);
|
| 71 |
el_other.setAttribute("id", num+"_other_input"+form_id);
|
| 72 |
el_other.setAttribute("name", num+"_other_input"+form_id);
|
| 73 |
el_other.setAttribute("type", "text");
|
| 74 |
el_other.setAttribute("class", "other_input");
|
| 75 |
var chCode1 = e.which || e.keyCode;
|
| 76 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 77 |
return true;
|
| 78 |
}
|
| 79 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 80 |
return false;
|
| 81 |
}
|
| 82 |
if (document.getElementById(id+genid)) {
|
| 83 |
srcArr = document.getElementById(id+genid).src.split("&r=");
|
| 84 |
document.getElementById(id+genid).src = srcArr[0]+'&r='+Math.floor(Math.random()*100);
|
| 85 |
document.getElementById(id+"_input"+genid).value = '';
|
| 86 |
document.getElementById(id+genid).style.display = "inline-block";
|
| 87 |
}
|
| 88 |
}
|
| 89 |
}
|
| 90 |
if (document.getElementById(id+"_other_input"+form_id)) {
|
| 91 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_br"+form_id));
|
| 92 |
document.getElementById(id+"_other_input"+form_id).parentNode.removeChild(document.getElementById(id+"_other_input"+form_id));
|
| 93 |
}
|
| 94 |
var chCode1 = e.which || e.keyCode;
|
| 95 |
if (jQuery.inArray(chCode1,[46,8,9,27,13,190]) != -1 || e.ctrlKey === true || (chCode1 >= 35 && chCode1 < 39)) {
|
| 96 |
return true;
|
| 97 |
}
|
| 98 |
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57)) {
|
| 99 |
return false;
|
| 100 |
}
|
| 101 |
return false;
|
| 102 |
return false;
|
| 103 |
return false;
|
| 104 |
ofontStyle = jQuery(x).prop('class');
|
| 105 |
jQuery(x).val("").removeClass("input_deactive").addClass("input_active");
|
| 106 |
}
|
| 107 |
if (jQuery(x).val() == "") {
|
| 108 |
jQuery(x).val(jQuery(x).prop('title')).removeClass("input_active").addClass("input_deactive");
|
| 109 |
}
|
| 110 |
while (node.firstChild) {
|
| 111 |
node.removeChild(node.firstChild);
|
| 112 |
}
|
| 113 |
var ttt;
|
| 114 |
if (node.childNodes[ttt] && node.childNodes[ttt].nodeType == '3' && !/\S/.test( node.childNodes[ttt].nodeValue )) {
|
| 115 |
node.removeChild(node.childNodes[ttt]);
|
| 116 |
ttt--;
|
| 117 |
}
|
| 118 |
return jQuery("#" + id).val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 ? true : false;
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
|
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.0.0
|
| 6 |
Tested up to: 4.7
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -137,6 +137,11 @@ After downloading the ZIP file,
|
|
| 137 |
|
| 138 |
|
| 139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
= 1.0.54 =
|
| 141 |
* Fixed: Bug on triming recipients addresses
|
| 142 |
|
| 4 |
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
| 5 |
Requires at least: 3.0.0
|
| 6 |
Tested up to: 4.7
|
| 7 |
+
Stable tag: 1.0.55
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 137 |
|
| 138 |
|
| 139 |
== Changelog ==
|
| 140 |
+
|
| 141 |
+
= 1.0.55 =
|
| 142 |
+
* Fixed: Conflict with CDN Enabler plugin.
|
| 143 |
+
* Fixed: Line breaks in textarea.
|
| 144 |
+
|
| 145 |
= 1.0.54 =
|
| 146 |
* Fixed: Bug on triming recipients addresses
|
| 147 |
|
