Custom Contact Forms - Version 3.1.1

Version Description

Popover forms will be added in September 2010.

Download this release

Release Info

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

Code changes from version 3.1.0 to 3.1.1

custom-contact-forms-db.php CHANGED
@@ -114,10 +114,12 @@ if (!class_exists('CustomContactFormsDB')) {
114
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `form_padding` VARCHAR( 20 ) NOT NULL DEFAULT '4px'");
115
  if (!$this->columnExists('title_margin', $this->styles_table))
116
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `title_margin` VARCHAR( 20 ) NOT NULL DEFAULT '2px'");
 
 
117
  if (!$this->columnExists('label_margin', $this->styles_table))
118
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `label_margin` VARCHAR( 20 ) NOT NULL DEFAULT '3px'");
119
  if (!$this->columnExists('textarea_backgroundcolor', $this->styles_table))
120
- $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `textarea_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT '#efefef'");
121
  if (!$this->columnExists('field_instructions', $this->fields_table))
122
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_instructions` TEXT NOT NULL");
123
  if (!$this->columnExists('field_required', $this->fields_table))
@@ -175,6 +177,7 @@ if (!class_exists('CustomContactFormsDB')) {
175
  if ($key != 'style_slug')
176
  $style[$key] = $this->formatStyle($this->encodeOption($value));
177
  }
 
178
  $wpdb->insert($this->styles_table, $style);
179
  return true;
180
  }
114
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `form_padding` VARCHAR( 20 ) NOT NULL DEFAULT '4px'");
115
  if (!$this->columnExists('title_margin', $this->styles_table))
116
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `title_margin` VARCHAR( 20 ) NOT NULL DEFAULT '2px'");
117
+ if (!$this->columnExists('form_margin', $this->styles_table))
118
+ $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `form_margin` VARCHAR( 20 ) NOT NULL DEFAULT '4px'");
119
  if (!$this->columnExists('label_margin', $this->styles_table))
120
  $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `label_margin` VARCHAR( 20 ) NOT NULL DEFAULT '3px'");
121
  if (!$this->columnExists('textarea_backgroundcolor', $this->styles_table))
122
+ $wpdb->query("ALTER TABLE `" . $this->styles_table . "` ADD `textarea_backgroundcolor` VARCHAR( 20 ) NOT NULL DEFAULT '#ffffff'");
123
  if (!$this->columnExists('field_instructions', $this->fields_table))
124
  $wpdb->query("ALTER TABLE `" . $this->fields_table . "` ADD `field_instructions` TEXT NOT NULL");
125
  if (!$this->columnExists('field_required', $this->fields_table))
177
  if ($key != 'style_slug')
178
  $style[$key] = $this->formatStyle($this->encodeOption($value));
179
  }
180
+ print_r($style);
181
  $wpdb->insert($this->styles_table, $style);
182
  return true;
183
  }
custom-contact-forms.php CHANGED
@@ -3,11 +3,10 @@
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, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
6
- Version: 3.1.0
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
10
-
11
  /*
12
  Copyright (C) 2010-2011 Taylor Lovett, taylorlovett.com (admin@taylorlovett.com)
13
  This program is free software; you can redistribute it and/or modify
@@ -546,7 +545,6 @@ if (!class_exists('CustomContactForms')) {
546
  <select name="enable_jquery"><option value="1">Yes</option><option <?php if ($admin_options[enable_jquery] != 1) echo 'selected="selected"'; ?> value="0">No</option></select>
547
  </li>
548
  <li class="descrip">Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips.</li>
549
-
550
  <li>
551
  <label for="default_from_email">Default From Email:</label>
552
  <input name="default_from_email" value="<?php echo $admin_options[default_from_email]; ?>" type="text" maxlength="100" />
@@ -891,12 +889,10 @@ if (!class_exists('CustomContactForms')) {
891
  &lt;input type=&quot;hidden&quot; name=&quot;thank_you_page&quot; value=&quot;http://www.google.com&quot; /&gt;
892
  &lt;input type=&quot;hidden&quot; name=&quot;destination_email&quot; value=&quot;<?php echo $admin_options[default_to_email]; ?>&quot; /&gt;
893
  &lt;input type=&quot;hidden&quot; name=&quot;required_fields&quot; value=&quot;field_name1, field_name2&quot; /&gt;
894
-
895
  &lt;!-- Build your form in here. It is recommended you only use this feature if you are experienced with HTML.
896
  The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force
897
  the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate
898
  the field names you want required by commas. Remember to use underscores instead of spaces in field names! --&gt;
899
-
900
  &lt;/form&gt;</textarea>
901
  </div>
902
  </div>
@@ -1107,7 +1103,6 @@ the field names you want required by commas. Remember to use underscores instead
1107
  <p><?php echo $this->current_thank_you_message; ?></p>
1108
  <a href="javascript:void(0)" class="close">[close]</a>
1109
  </div>
1110
-
1111
  <?php
1112
  }
1113
 
@@ -1214,20 +1209,17 @@ if (!function_exists('CustomContactForms_ap')) {
1214
  }
1215
  }
1216
  }
1217
-
1218
  if (!function_exists('serveCustomContactForm')) {
1219
  function serveCustomContactForm($fid) {
1220
  global $customcontact;
1221
  echo $customcontact->getFormCode($fid);
1222
  }
1223
  }
1224
-
1225
  if (!function_exists('CCFWidgetInit')) {
1226
  function CCFWidgetInit() {
1227
  register_widget('CustomContactFormsWidget');
1228
  }
1229
  }
1230
-
1231
  if (isset($customcontact)) {
1232
  add_action('init', array(&$customcontact, 'init'), 1);
1233
  add_action('wp_print_scripts', array(&$customcontact, 'insertFrontEndScripts'), 1);
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, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
6
+ Version: 3.1.1
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
 
10
  /*
11
  Copyright (C) 2010-2011 Taylor Lovett, taylorlovett.com (admin@taylorlovett.com)
12
  This program is free software; you can redistribute it and/or modify
545
  <select name="enable_jquery"><option value="1">Yes</option><option <?php if ($admin_options[enable_jquery] != 1) echo 'selected="selected"'; ?> value="0">No</option></select>
546
  </li>
547
  <li class="descrip">Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips.</li>
 
548
  <li>
549
  <label for="default_from_email">Default From Email:</label>
550
  <input name="default_from_email" value="<?php echo $admin_options[default_from_email]; ?>" type="text" maxlength="100" />
889
  &lt;input type=&quot;hidden&quot; name=&quot;thank_you_page&quot; value=&quot;http://www.google.com&quot; /&gt;
890
  &lt;input type=&quot;hidden&quot; name=&quot;destination_email&quot; value=&quot;<?php echo $admin_options[default_to_email]; ?>&quot; /&gt;
891
  &lt;input type=&quot;hidden&quot; name=&quot;required_fields&quot; value=&quot;field_name1, field_name2&quot; /&gt;
 
892
  &lt;!-- Build your form in here. It is recommended you only use this feature if you are experienced with HTML.
893
  The success_message field will add a popover containing the message when the form is completed successfully, the thank_you_page field will force
894
  the user to be redirected to that specific page on successful form completion. The required_fields hidden field is optional; to use it seperate
895
  the field names you want required by commas. Remember to use underscores instead of spaces in field names! --&gt;
 
896
  &lt;/form&gt;</textarea>
897
  </div>
898
  </div>
1103
  <p><?php echo $this->current_thank_you_message; ?></p>
1104
  <a href="javascript:void(0)" class="close">[close]</a>
1105
  </div>
 
1106
  <?php
1107
  }
1108
 
1209
  }
1210
  }
1211
  }
 
1212
  if (!function_exists('serveCustomContactForm')) {
1213
  function serveCustomContactForm($fid) {
1214
  global $customcontact;
1215
  echo $customcontact->getFormCode($fid);
1216
  }
1217
  }
 
1218
  if (!function_exists('CCFWidgetInit')) {
1219
  function CCFWidgetInit() {
1220
  register_widget('CustomContactFormsWidget');
1221
  }
1222
  }
 
1223
  if (isset($customcontact)) {
1224
  add_action('init', array(&$customcontact, 'init'), 1);
1225
  add_action('wp_print_scripts', array(&$customcontact, 'insertFrontEndScripts'), 1);
readme.txt CHANGED
@@ -4,17 +4,15 @@ 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.7.1
6
  Tested up to: 3.1
7
- Stable tag: 3.1.0
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
11
  == Description ==
12
-
13
  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, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form.
14
 
15
  Special Features:
16
  ------------------
17
-
18
  * The most customizable form plugin for Wordpress, guaranteed
19
  * Create __unlimited__ forms
20
  * Create __unlimited__ fields
@@ -69,87 +67,68 @@ Popover forms will be added in September 2010.
69
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots.
70
 
71
  == Changelog ==
72
-
73
  = 1.0.0 =
74
  * Plugin Release
75
-
76
  = 1.0.1 =
77
  * custom-contact-forms.css - Form style changes
78
-
79
  = 1.1.0 =
80
  * custom-contact-forms-db.php - Table upgrade functions added
81
  * custom-contact-forms.php - New functions for error handling and captcha
82
  * custom-contact-forms.css - Forms restyled
83
  * custom-contact-forms-images.php - Image handling class added
84
  * image.php, images/ - Image for captcha displaying
85
-
86
  = 1.1.1 =
87
  * custom-contact-forms.css - Label styles changed
88
  * custom-contact-forms.php - Admin option added to remember field values
89
-
90
  = 1.1.2 =
91
  * custom-contact-forms-db.php - create_tables function edited to work for Wordpress MU due to error in wp-admin/includes/upgrade.php
92
-
93
  = 1.1.3 =
94
  * custom-contact-forms.php - Captcha label bug fixed
95
  * custom-contact-forms-db.php - Default captcha label changed
96
-
97
  = 1.2.0 =
98
  * custom-contact-forms.php - Option to update to Custom Contact Forms Pro
99
-
100
  = 1.2.1 =
101
  * custom-contact-forms.php - Upgrade options changed
102
  * custom-contact-forms-css.php - CSS bug corrected
103
-
104
  = 2.0.0 =
105
  * custom-contact-forms.php - Style manager added
106
  * custom-contact-forms.css - style manager styles added
107
  * custom-contact-forms-db.php - Style manager db functions added
108
-
109
  = 2.0.1 =
110
  * custom-contact-forms.php - Duplicate form slug bug fixed, default style values added, stripslahses on form messages
111
  * custom-contact-forms-db.php - default style values added
112
-
113
  = 2.0.2 =
114
  * custom-contact-forms.php - Form li's changed to p's
115
  * images/ - folder readded to correct captcha error
116
-
117
  = 2.0.3 =
118
  * custom-contact-forms.php - custom style checkbox display:block error fixed
119
  * custom-contact-forms.css - li's converted to p's
120
-
121
  = 2.1.0 =
122
  * custom-contact-forms.php - New fixed field added, plugin news, bug fixes
123
  * custom-contact-forms.css - New styles added and style bugs fixed
124
  * custom-contact-forms-db.php - New fixed field added
125
-
126
  = 2.2.0 =
127
  * custom-contact-forms.php - Plugin nav, hide plugin author link, bug reporting, suggest a feature
128
  * custom-contact-forms.css - New styles added and style bugs fixed
129
-
130
  = 2.2.3 =
131
  * custom-contact-forms.php - Remember fields bug fixed, init rearranged, field instructions
132
  * custom-contact-forms.css
133
  * custom-contact-forms-db.php
134
-
135
  = 2.2.4 =
136
  * custom-contact-forms.php - Textarea field instruction bug fixed
137
-
138
  = 2.2.5 =
139
  * custom-contact-forms.php - Fixed field insert bug fixed
140
-
141
  = 3.0.0 =
142
  * custom-contact-forms.php - Required fields, admin panel changed, style manager bugs fixed, custom html feature added, much more
143
  * custom-contact-forms-db.php - New functions added and old ones fixed
144
  * custom-contact-forms.css - New styles added and old ones modified
145
-
146
  = 3.0.1 =
147
  * custom-contact-forms.php - Php tags added to theme form display code
148
-
149
  = 3.0.2 =
150
  * custom-contact-forms.php - Bugs fixed
151
-
152
  = 3.1.0 =
153
  * custom-contact-forms.php - Success message title, disable jquery, choose between xhmtl and html, and more
154
  * custom-contact-forms-db.php - Success message title added
155
- * custom-contact-forms.css - Form styles rewritten
 
 
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.7.1
6
  Tested up to: 3.1
7
+ Stable tag: 3.1.1
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
11
  == Description ==
 
12
  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, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form.
13
 
14
  Special Features:
15
  ------------------
 
16
  * The most customizable form plugin for Wordpress, guaranteed
17
  * Create __unlimited__ forms
18
  * Create __unlimited__ fields
67
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots.
68
 
69
  == Changelog ==
 
70
  = 1.0.0 =
71
  * Plugin Release
 
72
  = 1.0.1 =
73
  * custom-contact-forms.css - Form style changes
 
74
  = 1.1.0 =
75
  * custom-contact-forms-db.php - Table upgrade functions added
76
  * custom-contact-forms.php - New functions for error handling and captcha
77
  * custom-contact-forms.css - Forms restyled
78
  * custom-contact-forms-images.php - Image handling class added
79
  * image.php, images/ - Image for captcha displaying
 
80
  = 1.1.1 =
81
  * custom-contact-forms.css - Label styles changed
82
  * custom-contact-forms.php - Admin option added to remember field values
 
83
  = 1.1.2 =
84
  * custom-contact-forms-db.php - create_tables function edited to work for Wordpress MU due to error in wp-admin/includes/upgrade.php
 
85
  = 1.1.3 =
86
  * custom-contact-forms.php - Captcha label bug fixed
87
  * custom-contact-forms-db.php - Default captcha label changed
 
88
  = 1.2.0 =
89
  * custom-contact-forms.php - Option to update to Custom Contact Forms Pro
 
90
  = 1.2.1 =
91
  * custom-contact-forms.php - Upgrade options changed
92
  * custom-contact-forms-css.php - CSS bug corrected
 
93
  = 2.0.0 =
94
  * custom-contact-forms.php - Style manager added
95
  * custom-contact-forms.css - style manager styles added
96
  * custom-contact-forms-db.php - Style manager db functions added
 
97
  = 2.0.1 =
98
  * custom-contact-forms.php - Duplicate form slug bug fixed, default style values added, stripslahses on form messages
99
  * custom-contact-forms-db.php - default style values added
 
100
  = 2.0.2 =
101
  * custom-contact-forms.php - Form li's changed to p's
102
  * images/ - folder readded to correct captcha error
 
103
  = 2.0.3 =
104
  * custom-contact-forms.php - custom style checkbox display:block error fixed
105
  * custom-contact-forms.css - li's converted to p's
 
106
  = 2.1.0 =
107
  * custom-contact-forms.php - New fixed field added, plugin news, bug fixes
108
  * custom-contact-forms.css - New styles added and style bugs fixed
109
  * custom-contact-forms-db.php - New fixed field added
 
110
  = 2.2.0 =
111
  * custom-contact-forms.php - Plugin nav, hide plugin author link, bug reporting, suggest a feature
112
  * custom-contact-forms.css - New styles added and style bugs fixed
 
113
  = 2.2.3 =
114
  * custom-contact-forms.php - Remember fields bug fixed, init rearranged, field instructions
115
  * custom-contact-forms.css
116
  * custom-contact-forms-db.php
 
117
  = 2.2.4 =
118
  * custom-contact-forms.php - Textarea field instruction bug fixed
 
119
  = 2.2.5 =
120
  * custom-contact-forms.php - Fixed field insert bug fixed
 
121
  = 3.0.0 =
122
  * custom-contact-forms.php - Required fields, admin panel changed, style manager bugs fixed, custom html feature added, much more
123
  * custom-contact-forms-db.php - New functions added and old ones fixed
124
  * custom-contact-forms.css - New styles added and old ones modified
 
125
  = 3.0.1 =
126
  * custom-contact-forms.php - Php tags added to theme form display code
 
127
  = 3.0.2 =
128
  * custom-contact-forms.php - Bugs fixed
 
129
  = 3.1.0 =
130
  * custom-contact-forms.php - Success message title, disable jquery, choose between xhmtl and html, and more
131
  * custom-contact-forms-db.php - Success message title added
132
+ * custom-contact-forms.css - Form styles rewritten
133
+ = 3.1.1 =
134
+ * custom-contact-forms-db.php - Style manager bug fixed