Custom Contact Forms - Version 2.0.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 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

custom-contact-forms-images.php CHANGED
@@ -12,7 +12,6 @@ if (!class_exists('CustomContactFormsImages')) {
12
  $textcolor = imagecolorallocate($src, 10, 0, 0);
13
  imagestring($src, 14, 5, 1, $str, $textcolor);
14
  imagecopyresampled($image, $src, 0, 0, 0, 0, 96, 24, 63, 18);
15
- //header('Content-Type: image/gif');
16
  imagepng($image);
17
  imagedestroy($image);
18
  imagedestroy($src);
12
  $textcolor = imagecolorallocate($src, 10, 0, 0);
13
  imagestring($src, 14, 5, 1, $str, $textcolor);
14
  imagecopyresampled($image, $src, 0, 0, 0, 0, 96, 24, 63, 18);
 
15
  imagepng($image);
16
  imagedestroy($image);
17
  imagedestroy($src);
custom-contact-forms.css CHANGED
@@ -69,17 +69,14 @@ form.customcontactform-sidebar ul li input[type=text], form.customcontactform-si
69
  width:90%;
70
  font-size:12px;
71
  }
72
-
73
  /* ------------------ custom contact forms admin panel ---------------- */
74
  #customcontactforms-admin {
75
  vertical-align:top;
76
  margin:1em 0 30px 25px;
77
  }
78
-
79
  #customcontactforms-admin input, textarea, select {
80
  font-size:1em;
81
  }
82
-
83
  #customcontactforms-admin .icon32 {
84
  margin:-6px 6px 9px 5px;
85
  }
@@ -123,19 +120,15 @@ form.customcontactform-sidebar ul li input[type=text], form.customcontactform-si
123
  width:1000px;
124
  margin:20px 1em 1em 5px;
125
  }
126
-
127
  #customcontactforms-admin #manage-styles {
128
  width:1000px;
129
  }
130
-
131
  #customcontactforms-admin #manage-styles label {
132
  display:block;
133
  }
134
-
135
  #customcontactforms-admin #manage-styles input[type=text], #customcontactforms-admin #manage-styles select, #customcontactforms-admin #manage-styles textarea {
136
  width:80px;
137
  }
138
-
139
  #customcontactforms-admin #create-styles .style_left { float:left; width:48% }
140
  #customcontactforms-admin #create-styles .style_right { float:right; width:48%; clear:none }
141
  #customcontactforms-admin #general-settings form ul li.descrip {
@@ -171,7 +164,6 @@ form.customcontactform-sidebar ul li input[type=text], form.customcontactform-si
171
  #customcontactforms-admin #manage-fields {
172
  width:1000px;
173
  }
174
-
175
  #customcontactforms-admin #manage-forms {
176
  width:1000px;
177
  margin-right:10px;
69
  width:90%;
70
  font-size:12px;
71
  }
 
72
  /* ------------------ custom contact forms admin panel ---------------- */
73
  #customcontactforms-admin {
74
  vertical-align:top;
75
  margin:1em 0 30px 25px;
76
  }
 
77
  #customcontactforms-admin input, textarea, select {
78
  font-size:1em;
79
  }
 
80
  #customcontactforms-admin .icon32 {
81
  margin:-6px 6px 9px 5px;
82
  }
120
  width:1000px;
121
  margin:20px 1em 1em 5px;
122
  }
 
123
  #customcontactforms-admin #manage-styles {
124
  width:1000px;
125
  }
 
126
  #customcontactforms-admin #manage-styles label {
127
  display:block;
128
  }
 
129
  #customcontactforms-admin #manage-styles input[type=text], #customcontactforms-admin #manage-styles select, #customcontactforms-admin #manage-styles textarea {
130
  width:80px;
131
  }
 
132
  #customcontactforms-admin #create-styles .style_left { float:left; width:48% }
133
  #customcontactforms-admin #create-styles .style_right { float:right; width:48%; clear:none }
134
  #customcontactforms-admin #general-settings form ul li.descrip {
164
  #customcontactforms-admin #manage-fields {
165
  width:1000px;
166
  }
 
167
  #customcontactforms-admin #manage-forms {
168
  width:1000px;
169
  margin-right:10px;
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: VERSION 2.0.0 RELEASED! YOU CAN NOW CUSTOMIZE EVERY ASPECT OF YOUR FORMS APPEARANCE WITH ANY EASY TO USE FORM - BORDERS, FONT SIZES, COLORS, PADDING, MARGINS, BACKGROUNDS, AND MORE. 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: 2.0.1
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
@@ -777,7 +777,7 @@ if (!class_exists('CustomContactForms')) {
777
  $class = ' class="'.$style->style_slug.'"';
778
  $out .= '<style type="text/css">' . "\n";
779
  $out .= '.' . $style->style_slug . " { width: ".$style->form_width."; padding:".$style->form_padding."; margin:".$style->form_margin."; border:".$style->form_borderwidth." ".$style->form_borderstyle." ".$style->form_bordercolor."; font-family:".$style->form_fontfamily."; }\n";
780
- $out .= '.' . $style->style_slug . " ul { list-style-type:none; padding:0; margin:0; }\n";
781
  $out .= '.' . $style->style_slug . " h4 { padding:0; margin:".$style->title_margin." ".$style->title_margin." ".$style->title_margin." 0; color:".$style->title_fontcolor."; font-size:".$style->title_fontsize."; } \n";
782
  $out .= '.' . $style->style_slug . " label { padding:0; margin:".$style->label_margin." ".$style->label_margin." ".$style->label_margin." 0; display:block; color:".$style->label_fontcolor."; width:".$style->label_width."; font-size:".$style->label_fontsize."; } \n";
783
  $out .= '.' . $style->style_slug . " input[type=text] { color:".$style->field_fontcolor."; margin:0 0 .4em 0; width:".$style->input_width."; font-size:".$style->field_fontsize."; background-color:".$style->field_backgroundcolor."; border:1px ".$style->field_borderstyle." ".$style->field_bordercolor."; } \n";
@@ -788,7 +788,7 @@ if (!class_exists('CustomContactForms')) {
788
  }
789
  $action = (!empty($form->form_action)) ? $form->form_action : get_permalink();
790
  $out .= '<form method="'.strtolower($form->form_method).'" action="'.$action.'"'.$class.'>' . "\n";
791
- $out .= parent::decodeOption($form->custom_code, 1, 1) . '<h4>' . parent::decodeOption($form->form_title, 1, 1) . '</h4>' . "\n" . '<ul>';
792
  $fields = parent::getAttachedFieldsArray($fid);
793
  $hiddens = '';
794
  foreach ($fields as $field_id) {
@@ -800,19 +800,19 @@ if (!class_exists('CustomContactForms')) {
800
  $field_value = $_SESSION[fields][$field->field_slug];
801
  }
802
  if ($field->user_field == 0 && $field->field_slug == 'captcha') {
803
- $out .= '<li>' . $this->getCaptchaCode() . '</li>';
804
  } elseif ($field->field_type == 'Text') {
805
  $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
806
- $out .= '<li><label for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label><input '.$input_id.' type="text" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.' /></li>' . "\n";
807
  } elseif ($field->field_type == 'Hidden') {
808
- $hiddens .= '<li><input type="hidden" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.' /></li>' . "\n";
809
  } elseif ($field->field_type == 'Checkbox') {
810
- $out .= '<li><input type="checkbox" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.parent::decodeOption($field->field_value, 1, 1).'" '.$input_id.' /> <label class="checkbox" for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label></li>' . "\n";
811
  } elseif ($field->field_type == 'Textarea') {
812
- $out .= '<li><label for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label><textarea '.$input_id.' rows="5" cols="40" name="'.parent::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea></li>' . "\n";
813
  }
814
  }
815
- $out .= '</ul>'."\n".'<p><input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden" /><input type="hidden" name="fid" value="'.$form->id.'" />'."\n".$hiddens."\n".'<input type="submit" class="submit" value="' . parent::decodeOption($form->submit_button_text, 1, 0) . '" name="customcontactforms_submit" /></p>' . "\n" . '</form>';
816
  return $out . $this->wheresWaldo();
817
  }
818
 
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: VERSION 2.0.0 RELEASED! YOU CAN NOW CUSTOMIZE EVERY ASPECT OF YOUR FORMS APPEARANCE WITH ANY EASY TO USE FORM - BORDERS, FONT SIZES, COLORS, PADDING, MARGINS, BACKGROUNDS, AND MORE. 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: 2.0.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
777
  $class = ' class="'.$style->style_slug.'"';
778
  $out .= '<style type="text/css">' . "\n";
779
  $out .= '.' . $style->style_slug . " { width: ".$style->form_width."; padding:".$style->form_padding."; margin:".$style->form_margin."; border:".$style->form_borderwidth." ".$style->form_borderstyle." ".$style->form_bordercolor."; font-family:".$style->form_fontfamily."; }\n";
780
+ $out .= '.' . $style->style_slug . " div { padding:0; margin:0; }\n";
781
  $out .= '.' . $style->style_slug . " h4 { padding:0; margin:".$style->title_margin." ".$style->title_margin." ".$style->title_margin." 0; color:".$style->title_fontcolor."; font-size:".$style->title_fontsize."; } \n";
782
  $out .= '.' . $style->style_slug . " label { padding:0; margin:".$style->label_margin." ".$style->label_margin." ".$style->label_margin." 0; display:block; color:".$style->label_fontcolor."; width:".$style->label_width."; font-size:".$style->label_fontsize."; } \n";
783
  $out .= '.' . $style->style_slug . " input[type=text] { color:".$style->field_fontcolor."; margin:0 0 .4em 0; width:".$style->input_width."; font-size:".$style->field_fontsize."; background-color:".$style->field_backgroundcolor."; border:1px ".$style->field_borderstyle." ".$style->field_bordercolor."; } \n";
788
  }
789
  $action = (!empty($form->form_action)) ? $form->form_action : get_permalink();
790
  $out .= '<form method="'.strtolower($form->form_method).'" action="'.$action.'"'.$class.'>' . "\n";
791
+ $out .= parent::decodeOption($form->custom_code, 1, 1) . '<h4>' . parent::decodeOption($form->form_title, 1, 1) . '</h4>' . "\n" . '<div>';
792
  $fields = parent::getAttachedFieldsArray($fid);
793
  $hiddens = '';
794
  foreach ($fields as $field_id) {
800
  $field_value = $_SESSION[fields][$field->field_slug];
801
  }
802
  if ($field->user_field == 0 && $field->field_slug == 'captcha') {
803
+ $out .= '<p>' . $this->getCaptchaCode() . '</p>';
804
  } elseif ($field->field_type == 'Text') {
805
  $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
806
+ $out .= '<p><label for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label><input '.$input_id.' type="text" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.' /></p>' . "\n";
807
  } elseif ($field->field_type == 'Hidden') {
808
+ $hiddens .= '<p><input type="hidden" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.' /></p>' . "\n";
809
  } elseif ($field->field_type == 'Checkbox') {
810
+ $out .= '<p><input type="checkbox" name="'.parent::decodeOption($field->field_slug, 1, 1).'" value="'.parent::decodeOption($field->field_value, 1, 1).'" '.$input_id.' /> <label class="checkbox" for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label></p>' . "\n";
811
  } elseif ($field->field_type == 'Textarea') {
812
+ $out .= '<p><label for="'.parent::decodeOption($field->field_slug, 1, 1).'">'.parent::decodeOption($field->field_label, 1, 1).'</label><textarea '.$input_id.' rows="5" cols="40" name="'.parent::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea></p>' . "\n";
813
  }
814
  }
815
+ $out .= '</div>'."\n".'<p><input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden" /><input type="hidden" name="fid" value="'.$form->id.'" />'."\n".$hiddens."\n".'<input type="submit" class="submit" value="' . parent::decodeOption($form->submit_button_text, 1, 0) . '" name="customcontactforms_submit" /></p>' . "\n" . '</form>';
816
  return $out . $this->wheresWaldo();
817
  }
818
 
images/gd1.png ADDED
Binary file
images/gd2.png ADDED
Binary file
images/gd3.png ADDED
Binary file
images/gd4.png ADDED
Binary file
images/style-example.gif ADDED
Binary file
readme.txt CHANGED
@@ -3,36 +3,33 @@ 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: 2.0.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
  VERSION 2.0.0 RELEASED! YOU CAN NOW CUSTOMIZE EVERY ASPECT OF YOUR FORMS APPEARANCE WITH ANY EASY TO USE FORM - BORDERS, FONT SIZES, COLORS, PADDING, MARGINS, BACKGROUNDS, AND MORE. 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
17
  2. Activate the plugin from your Wordpress Admin Panel
18
  3. Configure the plugin, create fields, and create forms in the Settings page called Custom Contact Forms
19
  4. Display those forms in posts and pages by inserting the code: [customcontact form=FORMID]
20
-
21
  == Configuring and Using the Plugin ==
22
  1. Create a form in the Custom Contact Forms setting page. To get to the settings page, click the Custom Contact Forms link in the admin panel sidebar
23
  2. Create fields and attach those fields to the forms of your choice. * Attach the fields in the order that you want them to show up in the form. If you mess up you can detach and reattach them.
24
  3. Display those forms in posts and pages by inserting the code: [customcontact form=FORMID]. Replace FORMID with the id listed to the left of the form slug next to the form of your choice above.
25
  4. Add a form to your sidebar, by dragging the Custom Contact Form widget in to your sidebar.
26
  5. Configure the General Settings appropriately; this is important if you want to receive your web form messages!
27
-
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
35
-
36
  == Change Log ==
37
  1.0.0:
38
  * Plugin Release
@@ -63,4 +60,7 @@ Required fields option will be added in mid-August 2010
63
  * custom-contact-forms-db.php - Style manager db functions added
64
  2.0.1
65
  * custom-contact-forms.php - Duplicate form slug bug fixed, default style values added, stripslahses on form messages
66
- * custom-contact-forms-db.php - default style values added
 
 
 
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: 2.0.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
  == Description ==
12
  VERSION 2.0.0 RELEASED! YOU CAN NOW CUSTOMIZE EVERY ASPECT OF YOUR FORMS APPEARANCE WITH ANY EASY TO USE FORM - BORDERS, FONT SIZES, COLORS, PADDING, MARGINS, BACKGROUNDS, AND MORE. A plugin for handling and displaying custom web forms in any page, post, or sidebar. Extremely customizable!
 
13
  == Installation ==
14
  1. Upload to /wp-content/plugins
15
  2. Activate the plugin from your Wordpress Admin Panel
16
  3. Configure the plugin, create fields, and create forms in the Settings page called Custom Contact Forms
17
  4. Display those forms in posts and pages by inserting the code: [customcontact form=FORMID]
 
18
  == Configuring and Using the Plugin ==
19
  1. Create a form in the Custom Contact Forms setting page. To get to the settings page, click the Custom Contact Forms link in the admin panel sidebar
20
  2. Create fields and attach those fields to the forms of your choice. * Attach the fields in the order that you want them to show up in the form. If you mess up you can detach and reattach them.
21
  3. Display those forms in posts and pages by inserting the code: [customcontact form=FORMID]. Replace FORMID with the id listed to the left of the form slug next to the form of your choice above.
22
  4. Add a form to your sidebar, by dragging the Custom Contact Form widget in to your sidebar.
23
  5. Configure the General Settings appropriately; this is important if you want to receive your web form messages!
 
24
  == Support ==
25
  For questions, feature requests, and support concerning the Custom Contact Forms plugin, please email me at:
26
+ admin@taylorlovett.com or visit http://www.taylorlovett.com and fill out my contact form.
27
+
28
 
29
+ Official Bug Testers:
30
+ Mark Lasserre - www.lasserre.us
31
  == Upgrade Notice ==
32
  Required fields option will be added in mid-August 2010
 
33
  == Change Log ==
34
  1.0.0:
35
  * Plugin Release
60
  * custom-contact-forms-db.php - Style manager db functions added
61
  2.0.1
62
  * custom-contact-forms.php - Duplicate form slug bug fixed, default style values added, stripslahses on form messages
63
+ * custom-contact-forms-db.php - default style values added
64
+ 2.0.2
65
+ * custom-contact-forms.php - Form li's changed to p's
66
+ * images/ - folder readded to correct captcha error