Custom Contact Forms - Version 1.1.2

Version Description

Required fields option will be added in mid-August 2010

Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

custom-contact-forms-db.php CHANGED
@@ -30,7 +30,6 @@ if (!class_exists('CustomContactFormsDB')) {
30
 
31
  function createTables() {
32
  global $wpdb;
33
- require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
34
  if(!$this->formsTableExists()) {
35
  $sql1 = " CREATE TABLE `".$this->forms_table."` (
36
  `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
@@ -43,7 +42,7 @@ if (!class_exists('CustomContactFormsDB')) {
43
  `custom_code` TEXT NOT NULL ,
44
  PRIMARY KEY ( `id` )
45
  ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
46
- dbDelta($sql1);
47
  } if(!$this->fieldsTableExists()) {
48
  $sql2 = "CREATE TABLE `".$this->fields_table."` (
49
  `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
@@ -55,7 +54,7 @@ if (!class_exists('CustomContactFormsDB')) {
55
  `user_field` INT ( 1 ) NOT NULL DEFAULT '1',
56
  PRIMARY KEY ( `id` )
57
  ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
58
- dbDelta($sql2);
59
  }
60
  return true;
61
  }
@@ -67,7 +66,7 @@ if (!class_exists('CustomContactFormsDB')) {
67
 
68
  $this->insertFixedFields();
69
  }
70
-
71
  function insertFixedFields() {
72
  if (!$this->fieldSlugExists('captcha'))
73
  $this->insertField('captcha', 'Type the text', 'Text', '', '100', 0);
@@ -77,8 +76,6 @@ if (!class_exists('CustomContactFormsDB')) {
77
  function columnExists($column, $table) {
78
  global $wpdb;
79
  $tests = $wpdb->get_results("SELECT * FROM INFORMATION_SCHEMA.columns WHERE table_name = '$table' AND column_name = '$column' LIMIT 0 , 30");
80
- //echo "SELECT * FROM INFORMATION_SCHEMA.columns WHERE table_name = '$table' AND column_name = '$column' LIMIT 0 , 30";
81
-
82
  return (!empty($test[0]) && $test[0]->COLUMN_NAME == $column);
83
  }
84
 
30
 
31
  function createTables() {
32
  global $wpdb;
 
33
  if(!$this->formsTableExists()) {
34
  $sql1 = " CREATE TABLE `".$this->forms_table."` (
35
  `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
42
  `custom_code` TEXT NOT NULL ,
43
  PRIMARY KEY ( `id` )
44
  ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
45
+ $wpdb->query($sql1);
46
  } if(!$this->fieldsTableExists()) {
47
  $sql2 = "CREATE TABLE `".$this->fields_table."` (
48
  `id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
54
  `user_field` INT ( 1 ) NOT NULL DEFAULT '1',
55
  PRIMARY KEY ( `id` )
56
  ) ENGINE = MYISAM AUTO_INCREMENT=1 ";
57
+ $wpdb->query($sql2);
58
  }
59
  return true;
60
  }
66
 
67
  $this->insertFixedFields();
68
  }
69
+
70
  function insertFixedFields() {
71
  if (!$this->fieldSlugExists('captcha'))
72
  $this->insertField('captcha', 'Type the text', 'Text', '', '100', 0);
76
  function columnExists($column, $table) {
77
  global $wpdb;
78
  $tests = $wpdb->get_results("SELECT * FROM INFORMATION_SCHEMA.columns WHERE table_name = '$table' AND column_name = '$column' LIMIT 0 , 30");
 
 
79
  return (!empty($test[0]) && $test[0]->COLUMN_NAME == $column);
80
  }
81
 
custom-contact-forms.php CHANGED
@@ -3,9 +3,10 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Custom Contact Forms is a plugin for handling and displaying custom web forms [customcontact form=1] in any page, post, category, or archive in which you want the form to show. This plugin allows you to create fields with a variety of options and to attach them to specific forms you create; definitely allows for more customization than any other Wordpress Contact Form plugin; comes with a customizable captcha spam blocker! Also comes with a web form widget to drag-and-drop in to your sidebar. <a href="options-general.php?page=custom-contact-forms" title="Maryland Wordpress Developer">Plugin Settings</a>
6
- Version: 1.1.1
7
  Author: <a href="http://www.taylorlovett.com" title="Maryland Wordpress Developer">Taylor Lovett</a>
8
  Author URI: http://www.taylorlovett.com
 
9
  */
10
 
11
  /*
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Custom Contact Forms is a plugin for handling and displaying custom web forms [customcontact form=1] in any page, post, category, or archive in which you want the form to show. This plugin allows you to create fields with a variety of options and to attach them to specific forms you create; definitely allows for more customization than any other Wordpress Contact Form plugin; comes with a customizable captcha spam blocker! Also comes with a web form widget to drag-and-drop in to your sidebar. <a href="options-general.php?page=custom-contact-forms" title="Maryland Wordpress Developer">Plugin Settings</a>
6
+ Version: 1.1.2
7
  Author: <a href="http://www.taylorlovett.com" title="Maryland Wordpress Developer">Taylor Lovett</a>
8
  Author URI: http://www.taylorlovett.com
9
+ Contributors: Taylor Lovett
10
  */
11
 
12
  /*
readme.txt CHANGED
@@ -3,14 +3,14 @@ Plugin Name: Custom Contact Forms
3
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
4
  Requires at least: 2.7.1
5
  Tested up to: 3.0
6
- Stable tag: 1.1.1
7
  Contributors: Taylor Lovett
8
  Download link: http://www.taylorlovett.com/wordpress-plugins/
9
  Author: Taylor Lovett
10
  Author URI: http://www.taylorlovett.com
11
 
12
  == Description ==
13
- A plugin for handling and displaying custom web forms in any page, post, or sidebar. Extremely customizable!
14
 
15
  == Installation ==
16
  1. Upload to /wp-content/plugins
@@ -28,7 +28,10 @@ A plugin for handling and displaying custom web forms in any page, post, or side
28
  == Support ==
29
  For questions, feature requests, and support concerning the Custom Contact Forms plugin, please email me at:
30
  admin@taylorlovett.com
31
- I respond to emails same-day!
 
 
 
32
 
33
  == Upgrade Notice ==
34
  Required fields option will be added in mid-August 2010
@@ -46,4 +49,6 @@ Required fields option will be added in mid-August 2010
46
  * image.php, images/ - Image for captcha displaying
47
  1.1.1
48
  * custom-contact-forms.css - Label styles changed
49
- * custom-contact-forms.php - Admin option added to remember field values
 
 
3
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
4
  Requires at least: 2.7.1
5
  Tested up to: 3.0
6
+ Stable tag: 1.1.2
7
  Contributors: Taylor Lovett
8
  Download link: http://www.taylorlovett.com/wordpress-plugins/
9
  Author: Taylor Lovett
10
  Author URI: http://www.taylorlovett.com
11
 
12
  == Description ==
13
+ Custom Contact Forms is a plugin for handling and displaying custom web forms [customcontact form=1] in any page, post, category, or archive in which you want the form to show. This plugin allows you to create fields with a variety of options and to attach them to specific forms you create; definitely allows for more customization than any other Wordpress Contact Form plugin; comes with a customizable captcha spam blocker! Also comes with a web form widget to drag-and-drop in to your sidebar.
14
 
15
  == Installation ==
16
  1. Upload to /wp-content/plugins
28
  == Support ==
29
  For questions, feature requests, and support concerning the Custom Contact Forms plugin, please email me at:
30
  admin@taylorlovett.com
31
+ I respond to emails same-day! If you want to be an official tester, email me and I'll put you on this list.
32
+
33
+ Official Testers:
34
+ Mark Lassarre
35
 
36
  == Upgrade Notice ==
37
  Required fields option will be added in mid-August 2010
49
  * image.php, images/ - Image for captcha displaying
50
  1.1.1
51
  * custom-contact-forms.css - Label styles changed
52
+ * custom-contact-forms.php - Admin option added to remember field values
53
+ 1.1.2
54
+ * custom-contact-forms-db.php - create_tables function edited to work for Wordpress MU due to error in wp-admin/includes/upgrade.php