Custom Contact Forms - Version 4.0.0.b8

Version Description

Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 4.0.0.b8
Comparing to
See all releases

Code changes from version 4.0.0.b7 to 4.0.0.b8

custom-contact-forms-widget.php CHANGED
@@ -7,7 +7,7 @@
7
  if (!class_exists('CustomContactFormsWidget')) {
8
  class CustomContactFormsWidget extends WP_Widget {
9
  function CustomContactFormsWidget() {
10
- $widget_ops = array('description' => __('Posted', 'Add a customized contact form to your sidebar.'));
11
  $this->WP_Widget('custom-contact-forms', 'Custom Contact Forms', $widget_ops);
12
  }
13
 
@@ -22,7 +22,7 @@ if (!class_exists('CustomContactFormsWidget')) {
22
  return false;
23
  if (empty($form_id) or $form_id < 1) return false;
24
  extract($args);
25
- echo $before_widget.$before_form_id.$title.$after_title;
26
  echo $custom_contact_front->getFormCode($form_id, true);
27
  echo $after_widget;
28
  }
@@ -34,8 +34,8 @@ if (!class_exists('CustomContactFormsWidget')) {
34
  }
35
 
36
  function form($instance) {
37
- global $custom_contact_front;
38
- $forms = $custom_contact_front->selectAllForms();
39
  $form_id = esc_attr($instance['form_id']);
40
  ?>
41
  <p><label for="<?php echo $this->get_field_id('form_id'); ?>">
7
  if (!class_exists('CustomContactFormsWidget')) {
8
  class CustomContactFormsWidget extends WP_Widget {
9
  function CustomContactFormsWidget() {
10
+ $widget_ops = array('description' => __('Add a customized contact form to your sidebar.', 'custom-contact-forms'));
11
  $this->WP_Widget('custom-contact-forms', 'Custom Contact Forms', $widget_ops);
12
  }
13
 
22
  return false;
23
  if (empty($form_id) or $form_id < 1) return false;
24
  extract($args);
25
+ echo $before_widget . $before_form_id . $title . $after_title;
26
  echo $custom_contact_front->getFormCode($form_id, true);
27
  echo $after_widget;
28
  }
34
  }
35
 
36
  function form($instance) {
37
+ global $custom_contact_admin;
38
+ $forms = $custom_contact_admin->selectAllForms();
39
  $form_id = esc_attr($instance['form_id']);
40
  ?>
41
  <p><label for="<?php echo $this->get_field_id('form_id'); ?>">
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.0.0.b7
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
@@ -65,18 +65,9 @@ if (!class_exists('CustomContactForms')) {
65
  }
66
  $custom_contact_forms = new CustomContactForms();
67
 
68
- /* widget stuff */
69
- require_once('custom-contact-forms-widget.php');
70
- if (!function_exists('CCFWidgetInit')) {
71
- function CCFWidgetInit() {
72
- register_widget('CustomContactFormsWidget');
73
- }
74
- }
75
-
76
  /* general plugin stuff */
77
  if (isset($custom_contact_forms)) {
78
  register_activation_hook(__FILE__, array(&$custom_contact_forms, 'activatePlugin'));
79
- add_action('widgets_init', 'CCFWidgetInit');
80
  }
81
 
82
  if (!is_admin()) { /* is front */
@@ -114,4 +105,13 @@ if (!is_admin()) { /* is front */
114
  add_filter('plugin_action_links', array(&$custom_contact_admin,'appendToActionLinks'), 10, 2);
115
  add_action('admin_menu', 'CustomContactForms_ap');
116
  }
 
 
 
 
 
 
 
 
 
117
  ?>
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.0.0.b8
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
65
  }
66
  $custom_contact_forms = new CustomContactForms();
67
 
 
 
 
 
 
 
 
 
68
  /* general plugin stuff */
69
  if (isset($custom_contact_forms)) {
70
  register_activation_hook(__FILE__, array(&$custom_contact_forms, 'activatePlugin'));
 
71
  }
72
 
73
  if (!is_admin()) { /* is front */
105
  add_filter('plugin_action_links', array(&$custom_contact_admin,'appendToActionLinks'), 10, 2);
106
  add_action('admin_menu', 'CustomContactForms_ap');
107
  }
108
+
109
+ /* widget stuff */
110
+ require_once('custom-contact-forms-widget.php');
111
+ if (!function_exists('CCFWidgetInit')) {
112
+ function CCFWidgetInit() {
113
+ register_widget('CustomContactFormsWidget');
114
+ }
115
+ }
116
+ add_action('widgets_init', 'CCFWidgetInit');
117
  ?>
readme.txt DELETED
@@ -1,214 +0,0 @@
1
- === Custom Contact Forms ===
2
- Contributors: Taylor Lovett
3
- 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.0.1
7
- Stable tag: 4.0.0.b7
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
- Custom Contact Forms 4.0 will revolutionize the idea of a Wordpress plugin.
18
-
19
- * __NEW__ - All form submissions saved and displayed in admin panel as well as emailed to you
20
- * __NEW__ - Import and export forms/fields/styles/etc. with ease!
21
- * __NEW__ - This plugin can now be translated in to different languages.
22
- * The most customizable form plugin for Wordpress, guaranteed
23
- * Create __unlimited__ forms
24
- * Create __unlimited__ fields
25
- * Required Fields (New!)
26
- *
27
- * Create text fields, textareas, checkboxs, radio __(new)__ and dropdown __(new)__ fields!
28
- * Custom HTML Forms Feature - if you are a web developer you can write your own form html and __use this plugin simply to process your form requests__. Comes with a few useful features.
29
- * __Displays forms in theme files__ as well as pages and posts.
30
- * Set a different destination email address for each form
31
- * Customize every aspect of fields and forms: titles, labels, maxlength, initial value, form action, form method, form style, and much more
32
- * Create checkboxes, textareas, text fields, etc.
33
- * __Captcha__ and __"Are You Human?"__ spam blockers included and easily attached to any form
34
- * Create __custom styles in the style manager__ to change the appearance of your forms: borders, font sizes, colors, padding, margins, background, and more
35
- * You can create unlimited styles to use on as many forms as you want without any knowledge of css or html.
36
- * Show a stylish JQuery form thank you message or use a custom thank you page.
37
- * Custom error pages for when forms are filled out incorrectly
38
- * Option to have forms remember field values for when users hit the back button after an error
39
- * Easily report bugs and suggest new features
40
- * Script in constant development - new version released every week
41
- * Easily process your forms with 3rd party sites like Infusionsoft or Aweber
42
- * Set a __custom thank you page__ for each form or use the built in thank you page popover with a custom thank you message
43
- * Choose between XHTML or HTML. All code is clean and valid!
44
- * No javascript required
45
- * Detailed guide for using the plugin as well as default content to help you understand how to use Custom COntact Forms
46
- * Stylish field tooltips powered by jquery
47
- * Manage options for your dropdowns and radio fields in an easy to use manager
48
- * Popover forms with Jquery (Coming soon!)
49
- * Free unlimited support
50
- * AJAX enabled admin panel
51
- * Assign different CSS classes to each field.
52
- * Ability to disable JQuery if it is conflicting with other plugins.
53
-
54
- == Installation ==
55
- 1. Upload to /wp-content/plugins
56
- 2. Activate the plugin from your Wordpress Admin Panel
57
- 3. Configure the plugin, create fields, and create forms in the Settings page called Custom Contact Forms
58
- 4. Display those forms in posts and pages by inserting the code: __[customcontact form=FORMID]__
59
- 5. In the instruction section of the plugin. Press the button to insert the default content. The default content contains a very generic form that will help you understand the many ways you can use Custom Contact Forms.
60
-
61
- == Configuring and Using the Plugin ==
62
- 1. Create as many forms as you want.
63
- 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.
64
- 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. You can also __display forms in theme files__; the code for this is provided within each forms admin section.
65
- 4. Prevent spam by attaching the fixed field, captcha or ishuman. Captcha requires users to type in a number shown on an image. Ishuman requires users to check a box to prove they aren't a spam bot.
66
- 5. Add a form to your sidebar, by dragging the Custom Contact Form reusable widget in to your sidebar.
67
- 6. Configure the General Settings appropriately; this is important if you want to receive your web form messages!
68
- 7. Create form styles to change your forms appearances. The image below explains how each style field can change the look of your forms.
69
- 8. (advanced) If you are confident in your HTML and CSS skills, you can use the Custom HTML Forms feature as a framework and write your forms from scratch. This allows you to use this plugin simply to process your form requests. The Custom HTML Forms feature will process and email any form variables sent to it regardless of whether they are created in the fields manager.
70
-
71
- Custom Contact Forms is an extremely intuitive plugin allowing you to create any type of contact form you can image. CCF is very user friendly but with possibilities comes complexity. __It is recommend that you click the button in the instructions section of the plugin to add default fields, field options, and forms.__ The default content will help you get a feel for the amazing things you can accomplish with this plugin. __It is also recommended you click the "Show Plugin Usage Popover"__ in the instruction area of the admin page to read in detail about all parts of the plugin.
72
-
73
- == Support ==
74
- For questions, feature requests, and support concerning the Custom Contact Forms plugin, please email me at:
75
- admin@taylorlovett.com
76
- I respond to emails same-day!
77
-
78
- == Upgrade Notice ==
79
- Popover forms will be added in September 2010.
80
-
81
- == Screenshots ==
82
- 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!
83
-
84
- == Changelog ==
85
-
86
- = 4.0.0 =
87
- * custom-contact-forms.php - Saved form submissions manager, form background color added to style manager, import/export feature
88
- * custom-contact-forms-user-data.php - Saved form submission
89
- * custom-contact-forms-db.php - DB methods reorganized for efficiency
90
- * custom-contact-forms-static.php - Methods added/removed for efficiency
91
- * custom-contact-forms-admin.php - Admin code seperated in to a different file
92
- * custom-contact-forms-popover.php - Popover code seperated in to a different file
93
- * custom-contact-forms-export.php - Functions for importing and exporting
94
- * css/custom-contact-forms-admin.css - AJAX abilities added
95
- * css/custom-contact-forms-standard.css - Classes renamed
96
- * js/custom-contact-forms-admin.js - AJAX abilities added to admin panel
97
- * download.php - Allows export file to be downloaded
98
- * lang/custom-contact-forms.po - Allows for translation to different languages
99
- * lang/custom-contact-forms.mo - Allows for translation to different languages
100
-
101
- = 3.5.5 =
102
- * custom-contact-forms.php - Plugin usage popover reworded
103
- * css/custom-contact-forms-admin.css - Admin panel display problem fixed
104
-
105
- = 3.5.4 =
106
- * custom-contact-forms.php - custom thank you redirect fix
107
- * custom-contact-forms-db.php - Style insert bug fixed, Unexpected header output bug fixed
108
-
109
- = 3.5.3 =
110
- * custom-contact-forms.php - Style popover height option added to style manager. Form title heading not shown if left blank.
111
- * custom-contact-forms-db.php - New success popover height column added to styles table
112
-
113
- = 3.5.2 =
114
- * custom-contact-forms.php - Plugin Usage popover added, insert default content button
115
- * custom-contact-forms-db.php - Insert default content function
116
-
117
- = 3.5.1 =
118
- * custom-contact-forms.php - Style options added, color picker added, success popover styling bugs fixed
119
- * custom-contact-forms-db.php - Style format changed, new style fields added to tables
120
- * Lots of javascript files
121
- * Lots of images for the colorpicker
122
-
123
- = 3.5.0 =
124
- * custom-contact-forms.php - Radio and dropdowns added via the field option manager
125
- * custom-contact-forms-mailer.php - Email body changed
126
- * custom-contact-forms-db.php - Field option methods added
127
- * custom-contact-forms.css - Form styles reorganized, file removed
128
- * css/custom-contact-forms.css - Form styles reorganized
129
- * css/custom-contact-forms-standards.css - Form styles reorganized
130
- * css/custom-contact-forms-admin.css - Form styles reorganized
131
-
132
- = 3.1.0 =
133
- * custom-contact-forms.php - Success message title, disable jquery, choose between xhmtl and html, and more
134
- * custom-contact-forms-db.php - Success message title added
135
- * custom-contact-forms.css - Form styles rewritten
136
-
137
- = 3.0.2 =
138
- * custom-contact-forms.php - Bugs fixed
139
-
140
- = 3.0.1 =
141
- * custom-contact-forms.php - Php tags added to theme form display code
142
-
143
- = 3.0.0 =
144
- * custom-contact-forms.php - Required fields, admin panel changed, style manager bugs fixed, custom html feature added, much more
145
- * custom-contact-forms-db.php - New functions added and old ones fixed
146
- * custom-contact-forms.css - New styles added and old ones modified
147
-
148
- = 2.2.5 =
149
- * custom-contact-forms.php - Fixed field insert bug fixed
150
-
151
- = 2.2.4 =
152
- * custom-contact-forms.php - Textarea field instruction bug fixed
153
-
154
- = 2.2.3 =
155
- * custom-contact-forms.php - Remember fields bug fixed, init rearranged, field instructions
156
- * custom-contact-forms.css
157
- * custom-contact-forms-db.php
158
-
159
- = 2.2.0 =
160
- * custom-contact-forms.php - Plugin nav, hide plugin author link, bug reporting, suggest a feature
161
- * custom-contact-forms.css - New styles added and style bugs fixed
162
-
163
- = 2.1.0 =
164
- * custom-contact-forms.php - New fixed field added, plugin news, bug fixes
165
- * custom-contact-forms.css - New styles added and style bugs fixed
166
- * custom-contact-forms-db.php - New fixed field added
167
-
168
- = 2.0.3 =
169
- * custom-contact-forms.php - custom style checkbox display:block error fixed
170
- * custom-contact-forms.css - li's converted to p's
171
-
172
- = 2.0.2 =
173
- * custom-contact-forms.php - Form li's changed to p's
174
- * images/ - folder readded to correct captcha error
175
-
176
- = 2.0.1 =
177
- * custom-contact-forms.php - Duplicate form slug bug fixed, default style values added, stripslahses on form messages
178
- * custom-contact-forms-db.php - default style values added
179
-
180
- = 2.0.0 =
181
- * custom-contact-forms.php - Style manager added
182
- * custom-contact-forms.css - style manager styles added
183
- * custom-contact-forms-db.php - Style manager db functions added
184
-
185
- = 1.2.1 =
186
- * custom-contact-forms.php - Upgrade options changed
187
- * custom-contact-forms-css.php - CSS bug corrected
188
-
189
- = 1.2.0 =
190
- * custom-contact-forms.php - Option to update to Custom Contact Forms Pro
191
-
192
- = 1.1.3 =
193
- * custom-contact-forms.php - Captcha label bug fixed
194
- * custom-contact-forms-db.php - Default captcha label changed
195
-
196
- = 1.1.2 =
197
- * custom-contact-forms-db.php - create_tables function edited to work for Wordpress MU due to error in wp-admin/includes/upgrade.php
198
-
199
- = 1.1.1 =
200
- * custom-contact-forms.css - Label styles changed
201
- * custom-contact-forms.php - Admin option added to remember field values
202
-
203
- = 1.1.0 =
204
- * custom-contact-forms-db.php - Table upgrade functions added
205
- * custom-contact-forms.php - New functions for error handling and captcha
206
- * custom-contact-forms.css - Forms restyled
207
- * custom-contact-forms-images.php - Image handling class added
208
- * image.php, images/ - Image for captcha displaying
209
-
210
- = 1.0.1 =
211
- * custom-contact-forms.css - Form style changes
212
-
213
- = 1.0.0 =
214
- * Plugin Release