Custom Contact Forms - Version 5.0.0.1

Version Description

  • ishuman fixed field bug fixed
  • attach field bug fixed
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 5.0.0.1
Comparing to
See all releases

Code changes from version 5.0.0.0 to 5.0.0.1

custom-contact-forms-front.php CHANGED
@@ -458,7 +458,7 @@ if (!class_exists('CustomContactFormsFront')) {
458
  foreach ($fields as $field_id) {
459
  $field = parent::selectField($field_id, '');
460
  if ($field->field_slug == 'ishuman') {
461
- if (isset($_POST['ishuman']) && $_POST['ishuman'] != 1) {
462
  if (empty($field->field_error))
463
  $this->setFormError('ishuman', __('Only humans can use this form.', 'custom-contact-forms'));
464
  else $this->setFormError('ishuman', $field->field_error);
458
  foreach ($fields as $field_id) {
459
  $field = parent::selectField($field_id, '');
460
  if ($field->field_slug == 'ishuman') {
461
+ if (!isset($_POST['ishuman']) || (isset($_POST['ishuman']) && $_POST['ishuman'] != 1)) {
462
  if (empty($field->field_error))
463
  $this->setFormError('ishuman', __('Only humans can use this form.', 'custom-contact-forms'));
464
  else $this->setFormError('ishuman', $field->field_error);
custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
- Version: 5.0.0.0
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
+ Version: 5.0.0.1
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
js/custom-contact-forms-admin-ajax.js CHANGED
@@ -269,9 +269,18 @@ $j(document).ready(function() {
269
  var attached_list = $j(this).parentsUntil('td').find(".attached ul");
270
  var attach_object_id = attach_object_field.attr("value");
271
  var attach_object_text = attach_object_field.find("option[value=" + attach_object_id + "]:eq(0)").first().text();
272
- pattern = new RegExp('<li class=".*?field' + attach_object_id + '.*?">', "i");
273
- str = attached_list.html();
274
- if (!str.match(pattern)) {
 
 
 
 
 
 
 
 
 
275
  var new_li = $j("<li>").html(attach_object_text).addClass("field" + attach_object_id).addClass("ui-state-default").appendTo(attached_list);
276
  var new_span = $j("<span>").html("&times;").prependTo(new_li);
277
  new_span.click(function() { $j(this).parent().hide().remove(); });
269
  var attached_list = $j(this).parentsUntil('td').find(".attached ul");
270
  var attach_object_id = attach_object_field.attr("value");
271
  var attach_object_text = attach_object_field.find("option[value=" + attach_object_id + "]:eq(0)").first().text();
272
+ var already_attached = false;
273
+
274
+ attached_list.find("li").each(function() {
275
+ var classes = $j(this).attr("class").split(' ');
276
+ $j.each(classes, function(index, cls) {
277
+ if (cls == "field" + attach_object_id) {
278
+ already_attached = true;
279
+ }
280
+ });
281
+ });
282
+
283
+ if (!already_attached) {
284
  var new_li = $j("<li>").html(attach_object_text).addClass("field" + attach_object_id).addClass("ui-state-default").appendTo(attached_list);
285
  var new_span = $j("<span>").html("&times;").prependTo(new_li);
286
  new_span.click(function() { $j(this).parent().hide().remove(); });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.3.1
7
- Stable tag: 5.0.0.0
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -144,6 +144,10 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
144
 
145
  == Changelog ==
146
 
 
 
 
 
147
  = 5.0.0.0 =
148
  * Admin user interface improved 1000% with drag-and-drop fields as well as save/delete buttons.
149
  * Import bug fixed
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
  Tested up to: 3.3.1
7
+ Stable tag: 5.0.0.1
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
144
 
145
  == Changelog ==
146
 
147
+ = 5.0.0.1 =
148
+ * ishuman fixed field bug fixed
149
+ * attach field bug fixed
150
+
151
  = 5.0.0.0 =
152
  * Admin user interface improved 1000% with drag-and-drop fields as well as save/delete buttons.
153
  * Import bug fixed