Custom Contact Forms - Version 4.5.2.1

Version Description

  • js/custom-contact-forms-admin-ajax.js - Save image bug fixed
  • custom-contact-forms-admin.php - Minor display change
Download this release

Release Info

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

Code changes from version 4.5.2 to 4.5.2.1

custom-contact-forms-admin.php CHANGED
@@ -357,7 +357,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
357
  <li><a href="#custom-html"><?php _e("Custom HTML Forms", 'custom-contact-forms'); ?></a></li>
358
  <li class="last"><a href="#plugin-news"><?php _e("Plugin News", 'custom-contact-forms'); ?></a></li>
359
  </ul>
360
- <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack=">Custom Contact Forms works best with any of the 20+ <span>Genesis</span> Wordpress child themes. The <span>Genesis Framework</span> empowers you to quickly and easily build incredible websites with WordPress.</a>
361
 
362
  <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
363
  <input type="hidden" name="meta_web_form_id" value="1578604781" />
@@ -367,7 +367,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
367
  <input type="hidden" name="meta_adtracking" value="CCF_-_Wordpress_Plugins_Horizontal" />
368
  <input type="hidden" name="meta_message" value="1" />
369
  <input type="hidden" name="meta_required" value="name,email" />
370
- <span>WP Blogging Tips, Downloads, SEO Tricks & Exclusive Tutorials</span>
371
  <input type="text" name="name" value="Your Name" onclick="value=''" />
372
  <input type="text" name="email" value="Your Email" onclick="value=''" />
373
  <input type="submit" value="Sign Up for Free" />
@@ -2008,6 +2008,7 @@ the field names you want required by commas. Remember to use underscores instead
2008
  <input type="text" name="email" value="Your Email" onclick="value=''" />
2009
  <input type="submit" value="Sign Up for Free" />
2010
  </form>
 
2011
  <?php if (!empty($this->action_complete)) { ?>
2012
  <div class="action-complete">
2013
  <?php echo $this->action_complete; ?>
357
  <li><a href="#custom-html"><?php _e("Custom HTML Forms", 'custom-contact-forms'); ?></a></li>
358
  <li class="last"><a href="#plugin-news"><?php _e("Plugin News", 'custom-contact-forms'); ?></a></li>
359
  </ul>
360
+ <a class="genesis" href="http://www.shareasale.com/r.cfm?b=241369&u=481196&m=28169&urllink=&afftrack="><?php _e('Custom Contact Forms works best with any of the 20+ ', 'custom-contact-forms'); ?><span><?php _e('Genesis', 'custom-contact-forms'); ?></span> <?php _e('Wordpress child themes. The', 'custom-contact-forms'); ?> <span><?php _e('Genesis Framework', 'custom-contact-forms'); ?></span> <?php _e('empowers you to quickly and easily build incredible websites with WordPress.', 'custom-contact-forms'); ?></a>
361
 
362
  <form class="blog-horizontal-form" method="post" action="http://www.aweber.com/scripts/addlead.pl">
363
  <input type="hidden" name="meta_web_form_id" value="1578604781" />
367
  <input type="hidden" name="meta_adtracking" value="CCF_-_Wordpress_Plugins_Horizontal" />
368
  <input type="hidden" name="meta_message" value="1" />
369
  <input type="hidden" name="meta_required" value="name,email" />
370
+ <span><?php _e('WP Blogging Tips, Downloads, SEO Tricks & Exclusive Tutorials', 'custom-contact-forms'); ?></span>
371
  <input type="text" name="name" value="Your Name" onclick="value=''" />
372
  <input type="text" name="email" value="Your Email" onclick="value=''" />
373
  <input type="submit" value="Sign Up for Free" />
2008
  <input type="text" name="email" value="Your Email" onclick="value=''" />
2009
  <input type="submit" value="Sign Up for Free" />
2010
  </form>
2011
+
2012
  <?php if (!empty($this->action_complete)) { ?>
2013
  <div class="action-complete">
2014
  <?php echo $this->action_complete; ?>
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: 4.5.2
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: 4.5.2.1
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
js/custom-contact-forms-admin-ajax.js CHANGED
@@ -121,49 +121,51 @@ $j(document).ready(function() {
121
  return true;
122
  },
123
  success : function(responseText) {
124
- for (var i = 0; i < responseText.objects.length; i++) {
125
- var this_object = responseText.objects[i];
126
- if (responseText.object_bulk_action == 'delete') {
127
-
128
- form_dom.find(".row-" + this_object.object_type + "-" + this_object.object_id).hide().remove();
129
- if (this_object.object_type == "style") {
130
- /* delete occurences of this option within style dropdowns. */
131
- var style_inputs = $j(".form_style_input");
132
- style_inputs.each(function() {
133
- this_option = $j(this).find("option[value=" + this_object.object_id + "]");
134
- if (this_option.attr("selected") == "selected")
135
- $j(this).find("option[value=0]").attr("selected", "selected");
136
- this_option.remove();
137
- });
138
- } else if (this_object.object_type == "field" || this_object.object_type == "field_option") {
139
- if (this_object.object_type == "field")
140
- var fields_options_input = $j("select.detach-field");
141
- else
142
- var fields_options_input = $j("select.detach-field-option");
143
- fields_options_input.each(function () {
144
- var this_obj = $j(this);
145
- var this_option = this_obj.find("option[value=" + this_object.object_id + "]");
146
- if (this_option.length >=1 && this_obj.find("option").length <= 1) {
147
- $j("<option>")
148
- .attr("value", "-1")
149
- .text(ccfLang.nothing_attached)
150
- .prependTo(this_obj);
151
- }
152
- this_option.remove();
153
- });
154
- if (this_object.object_type == "field")
155
- fields_options_input = $j("select.attach-field option[value=" + this_object.object_id + "]");
156
- else
157
- fields_options_input = $j("select.attach-field-option option[value=" + this_object.object_id + "]");
158
-
159
- fields_options_input.each(function () {
160
- $j(this).remove();
161
- });
162
- }
163
- } else if (responseText.object_bulk_action == 'edit') {
164
- /* TODO: update field and field option slug dropdowns */
165
- if (responseText.objects[i].object_type == "field" || responseText.objects[i].object_type == "field_option") {
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  }
168
  }
169
  }
121
  return true;
122
  },
123
  success : function(responseText) {
124
+ if (responseText.objects) {
125
+ for (var i = 0; i < responseText.objects.length; i++) {
126
+ var this_object = responseText.objects[i];
127
+ if (responseText.object_bulk_action == 'delete') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
+ form_dom.find(".row-" + this_object.object_type + "-" + this_object.object_id).hide().remove();
130
+ if (this_object.object_type == "style") {
131
+ /* delete occurences of this option within style dropdowns. */
132
+ var style_inputs = $j(".form_style_input");
133
+ style_inputs.each(function() {
134
+ this_option = $j(this).find("option[value=" + this_object.object_id + "]");
135
+ if (this_option.attr("selected") == "selected")
136
+ $j(this).find("option[value=0]").attr("selected", "selected");
137
+ this_option.remove();
138
+ });
139
+ } else if (this_object.object_type == "field" || this_object.object_type == "field_option") {
140
+ if (this_object.object_type == "field")
141
+ var fields_options_input = $j("select.detach-field");
142
+ else
143
+ var fields_options_input = $j("select.detach-field-option");
144
+ fields_options_input.each(function () {
145
+ var this_obj = $j(this);
146
+ var this_option = this_obj.find("option[value=" + this_object.object_id + "]");
147
+ if (this_option.length >=1 && this_obj.find("option").length <= 1) {
148
+ $j("<option>")
149
+ .attr("value", "-1")
150
+ .text(ccfLang.nothing_attached)
151
+ .prependTo(this_obj);
152
+ }
153
+ this_option.remove();
154
+ });
155
+ if (this_object.object_type == "field")
156
+ fields_options_input = $j("select.attach-field option[value=" + this_object.object_id + "]");
157
+ else
158
+ fields_options_input = $j("select.attach-field-option option[value=" + this_object.object_id + "]");
159
+
160
+ fields_options_input.each(function () {
161
+ $j(this).remove();
162
+ });
163
+ }
164
+ } else if (responseText.object_bulk_action == 'edit') {
165
+ /* TODO: update field and field option slug dropdowns */
166
+ if (responseText.objects[i].object_type == "field" || responseText.objects[i].object_type == "field_option") {
167
+
168
+ }
169
  }
170
  }
171
  }
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.1
7
- Stable tag: 4.5.2
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -130,6 +130,11 @@ We are planning to add popover forms and file attachments soon.
130
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
131
 
132
  == Changelog ==
 
 
 
 
 
133
  = 4.5.2 =
134
  * custom-contact-forms.php - Template form display function fixed
135
  * custom-contact-forms-admin.php - jQuery dialog used for plugin usage popover
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.1
7
+ Stable tag: 4.5.2.1
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
130
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
131
 
132
  == Changelog ==
133
+
134
+ = 4.5.2.1 =
135
+ * js/custom-contact-forms-admin-ajax.js - Save image bug fixed
136
+ * custom-contact-forms-admin.php - Minor display change
137
+
138
  = 4.5.2 =
139
  * custom-contact-forms.php - Template form display function fixed
140
  * custom-contact-forms-admin.php - jQuery dialog used for plugin usage popover