Version Description
Required fields option will be added in mid-August 2010
Download this release
Release Info
Developer | tlovett1 |
Plugin | Custom Contact Forms |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.2.0
- custom-contact-forms.css +26 -6
- custom-contact-forms.php +66 -15
- readme.txt +6 -3
custom-contact-forms.css
CHANGED
@@ -18,9 +18,8 @@ form.customcontactform div, form.customcontactform-sidebar div {
|
|
18 |
list-style-type:none;
|
19 |
}
|
20 |
form.customcontactform div p, form.customcontactform-sidebar div p {
|
21 |
-
margin
|
22 |
padding:4px 0 4px 0;
|
23 |
-
overflow:hidden;
|
24 |
}
|
25 |
form.customcontactform div p {
|
26 |
border-bottom:1px dashed #999;
|
@@ -56,7 +55,7 @@ form.customcontactform div p input[type=text], form.customcontactform div p text
|
|
56 |
border-radius:4px;
|
57 |
word-wrap:break-word;
|
58 |
}
|
59 |
-
form.customcontactform p, form.customcontactform-sidebar p { padding:0 0
|
60 |
form.customcontactform div p input[type=submit], form.customcontactform div p .submit, form.customcontactform-sidebar div p .submit {
|
61 |
font-size:1em; margin-left:8px;
|
62 |
}
|
@@ -90,8 +89,16 @@ form.customcontactform-sidebar div p input[type=text], form.customcontactform-si
|
|
90 |
}
|
91 |
#customcontactforms-admin #instructions {
|
92 |
float:left;
|
93 |
-
width:
|
94 |
-
margin:20px 1em 1em
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
#customcontactforms-admin #instructions p:first-child {
|
97 |
padding-top:0;
|
@@ -100,7 +107,7 @@ form.customcontactform-sidebar div p input[type=text], form.customcontactform-si
|
|
100 |
#customcontactforms-admin #general-settings {
|
101 |
float:left;
|
102 |
clear:both;
|
103 |
-
width:
|
104 |
margin:20px 1em 1em 5px;
|
105 |
}
|
106 |
#customcontactforms-admin #style-example {
|
@@ -124,6 +131,7 @@ form.customcontactform-sidebar div p input[type=text], form.customcontactform-si
|
|
124 |
}
|
125 |
#customcontactforms-admin #plugin-news ul li.first { border-bottom:1px dashed #666; }
|
126 |
#customcontactforms-admin #manage-styles {
|
|
|
127 |
width:1000px;
|
128 |
}
|
129 |
#customcontactforms-admin #manage-styles label {
|
@@ -202,6 +210,17 @@ form.customcontactform-sidebar div p input[type=text], form.customcontactform-si
|
|
202 |
#customcontactforms-admin label span {
|
203 |
font-weight:bold;
|
204 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
.width25 {
|
206 |
width:25px;
|
207 |
}
|
@@ -229,3 +248,4 @@ form.customcontactform-sidebar div p input[type=text], form.customcontactform-si
|
|
229 |
.red { color:#F00; }
|
230 |
.bold { font-weight:bold; }
|
231 |
.italic { font-style:italic; }
|
|
18 |
list-style-type:none;
|
19 |
}
|
20 |
form.customcontactform div p, form.customcontactform-sidebar div p {
|
21 |
+
margin:0;
|
22 |
padding:4px 0 4px 0;
|
|
|
23 |
}
|
24 |
form.customcontactform div p {
|
25 |
border-bottom:1px dashed #999;
|
55 |
border-radius:4px;
|
56 |
word-wrap:break-word;
|
57 |
}
|
58 |
+
form.customcontactform p, form.customcontactform-sidebar p { padding:0 0 0px 17px; margin:0; }
|
59 |
form.customcontactform div p input[type=submit], form.customcontactform div p .submit, form.customcontactform-sidebar div p .submit {
|
60 |
font-size:1em; margin-left:8px;
|
61 |
}
|
89 |
}
|
90 |
#customcontactforms-admin #instructions {
|
91 |
float:left;
|
92 |
+
width:450px;
|
93 |
+
margin:20px 1em 1em 1em;
|
94 |
+
}
|
95 |
+
#customcontactforms-admin #contact-author {
|
96 |
+
float:left;
|
97 |
+
width:450px;
|
98 |
+
margin:5px 1em 1em 6px;
|
99 |
+
}
|
100 |
+
#customcontactforms-admin #contact-author form label {
|
101 |
+
display:block; font-weight:bold;
|
102 |
}
|
103 |
#customcontactforms-admin #instructions p:first-child {
|
104 |
padding-top:0;
|
107 |
#customcontactforms-admin #general-settings {
|
108 |
float:left;
|
109 |
clear:both;
|
110 |
+
width:500px;
|
111 |
margin:20px 1em 1em 5px;
|
112 |
}
|
113 |
#customcontactforms-admin #style-example {
|
131 |
}
|
132 |
#customcontactforms-admin #plugin-news ul li.first { border-bottom:1px dashed #666; }
|
133 |
#customcontactforms-admin #manage-styles {
|
134 |
+
margin:1px 1em 1em 5px;
|
135 |
width:1000px;
|
136 |
}
|
137 |
#customcontactforms-admin #manage-styles label {
|
210 |
#customcontactforms-admin label span {
|
211 |
font-weight:bold;
|
212 |
}
|
213 |
+
|
214 |
+
#customcontactforms-admin #plugin-nav {
|
215 |
+
clear:both;
|
216 |
+
}
|
217 |
+
#customcontactforms-admin #plugin-nav { text-align:center; border-bottom:1px #ccc dashed; margin:0 0 10px 0; padding:0 0 6px 0; }
|
218 |
+
#customcontactforms-admin #plugin-nav li {
|
219 |
+
border-right:1px solid #666; display:inline; padding:0 8px 0 3px;
|
220 |
+
}
|
221 |
+
#customcontactforms-admin #plugin-nav li.last {
|
222 |
+
border-right:none;
|
223 |
+
}
|
224 |
.width25 {
|
225 |
width:25px;
|
226 |
}
|
248 |
.red { color:#F00; }
|
249 |
.bold { font-weight:bold; }
|
250 |
.italic { font-style:italic; }
|
251 |
+
.hide { display:none; }
|
custom-contact-forms.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
-
Description: VERSION 2.
|
6 |
-
Version: 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
|
@@ -40,7 +40,7 @@ if (!class_exists('CustomContactForms')) {
|
|
40 |
|
41 |
function getAdminOptions() {
|
42 |
$admin_email = get_option('admin_email');
|
43 |
-
$customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_form_subject' => 'Someone Filled Out Your Contact Form!', 'custom_thank_you' => '', 'remember_field_values' => 0); // defaults
|
44 |
$customcontactOptions = get_option($this->adminOptionsName);
|
45 |
if (!empty($customcontactOptions)) {
|
46 |
foreach ($customcontactOptions as $key => $option)
|
@@ -132,6 +132,7 @@ if (!class_exists('CustomContactForms')) {
|
|
132 |
$admin_options[show_widget_archives] = $_POST[show_widget_archives];
|
133 |
$admin_options[show_widget_home] = $_POST[show_widget_home];
|
134 |
$admin_options[custom_thank_you] = $_POST[custom_thank_you];
|
|
|
135 |
update_option($this->adminOptionsName, $admin_options);
|
136 |
} elseif ($_POST[field_edit]) {
|
137 |
parent::updateField($_POST[field_slug], $_POST[field_label], $_POST[field_type], $_POST[field_value], $_POST[field_maxlength], $_POST[fid]);
|
@@ -151,6 +152,9 @@ if (!class_exists('CustomContactForms')) {
|
|
151 |
parent::updateStyle($_POST[style]);
|
152 |
} elseif ($_POST[style_delete]) {
|
153 |
parent::deleteStyle($_POST[style][id]);
|
|
|
|
|
|
|
154 |
}
|
155 |
$styles = parent::selectAllStyles();
|
156 |
$style_options = '<option value="0">None</option>';
|
@@ -160,6 +164,20 @@ if (!class_exists('CustomContactForms')) {
|
|
160 |
<div id="customcontactforms-admin">
|
161 |
<div id="icon-themes" class="icon32"></div>
|
162 |
<h2>Custom Contact Forms</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
<div id="create-fields" class="postbox">
|
164 |
<h3 class="hndle"><span>Create A Form Field</span></h3>
|
165 |
<div class="inside">
|
@@ -196,7 +214,7 @@ if (!class_exists('CustomContactForms')) {
|
|
196 |
</ul>
|
197 |
</form>
|
198 |
</div>
|
199 |
-
</div>
|
200 |
<div id="create-forms" class="postbox">
|
201 |
<h3 class="hndle"><span>Create A Form</span></h3>
|
202 |
<div class="inside">
|
@@ -224,7 +242,7 @@ if (!class_exists('CustomContactForms')) {
|
|
224 |
<li>
|
225 |
<label for="form_action">Form Style:</label>
|
226 |
<select name="form_style"><?php echo $style_options; ?></select>
|
227 |
-
(<a href="#styles">Click to create a style</a>)</li>
|
228 |
<li>
|
229 |
<label for="submit_button_text">Submit Button Text:</label>
|
230 |
<input type="text" maxlength="200" name="submit_button_text" />
|
@@ -239,7 +257,7 @@ if (!class_exists('CustomContactForms')) {
|
|
239 |
</ul>
|
240 |
</form>
|
241 |
</div>
|
242 |
-
</div>
|
243 |
<h3 class="manage-h3">Manage User Fields</h3>
|
244 |
<table class="widefat post" id="manage-fields" cellspacing="0">
|
245 |
<thead>
|
@@ -289,7 +307,7 @@ if (!class_exists('CustomContactForms')) {
|
|
289 |
<th scope="col" class="manage-column field-action">Action</th>
|
290 |
</tr>
|
291 |
</tfoot>
|
292 |
-
</table>
|
293 |
<h3 class="manage-h3">Manage Fixed Fields</h3>
|
294 |
<table class="widefat post" id="manage-fixed-fields" cellspacing="0">
|
295 |
<thead>
|
@@ -351,7 +369,7 @@ if (!class_exists('CustomContactForms')) {
|
|
351 |
<th scope="col" class="manage-column field-action">Action</th>
|
352 |
</tr>
|
353 |
</tfoot>
|
354 |
-
</table>
|
355 |
<h3 class="manage-h3">Manage Forms</h3>
|
356 |
<table class="widefat post" id="manage-forms" cellspacing="0">
|
357 |
<thead>
|
@@ -451,7 +469,7 @@ if (!class_exists('CustomContactForms')) {
|
|
451 |
</tr>
|
452 |
|
453 |
</tfoot>
|
454 |
-
</table>
|
455 |
<div id="general-settings" class="postbox">
|
456 |
<h3 class="hndle"><span>General Settings</span></h3>
|
457 |
<div class="inside">
|
@@ -483,6 +501,10 @@ if (!class_exists('CustomContactForms')) {
|
|
483 |
<select name="remember_field_values"><?php echo $remember_fields; ?></select>
|
484 |
</li>
|
485 |
<li class="descrip">Setting this to blank will have fields remember how they were last filled out.</li>
|
|
|
|
|
|
|
|
|
486 |
<li class="show-widget">Show Sidebar Widget:</li>
|
487 |
<li>
|
488 |
<label>
|
@@ -515,7 +537,7 @@ if (!class_exists('CustomContactForms')) {
|
|
515 |
</ul>
|
516 |
</form>
|
517 |
</div>
|
518 |
-
</div>
|
519 |
<div id="instructions" class="postbox">
|
520 |
<h3 class="hndle"><span>Instructions</span></h3>
|
521 |
<div class="inside">
|
@@ -529,9 +551,9 @@ if (!class_exists('CustomContactForms')) {
|
|
529 |
<div id="style-example"></div>
|
530 |
</div>
|
531 |
</div>
|
532 |
-
|
533 |
<div id="create-styles" class="postbox">
|
534 |
-
<h3 class="hndle"><span>Create A Style for Your Forms
|
535 |
<div class="inside">
|
536 |
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
537 |
<ul class="style_left">
|
@@ -651,7 +673,7 @@ if (!class_exists('CustomContactForms')) {
|
|
651 |
</ul>
|
652 |
</form>
|
653 |
</div>
|
654 |
-
</div>
|
655 |
<h3 class="manage-h3">Manage Form Styles</h3>
|
656 |
<table class="widefat post" id="manage-styles" cellspacing="0">
|
657 |
<thead>
|
@@ -734,12 +756,29 @@ if (!class_exists('CustomContactForms')) {
|
|
734 |
<th scope="col" class="manage-column"></th>
|
735 |
</tr>
|
736 |
</tfoot>
|
737 |
-
</table>
|
738 |
<div id="plugin-news" class="postbox">
|
739 |
<h3 class="hndle"><span>Custom Contact Forms Plugin News</span></h3>
|
740 |
<div class="inside">
|
741 |
<?php $this->displayPluginNewsFeed(); ?>
|
742 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
743 |
</div>
|
744 |
</div>
|
745 |
<?php
|
@@ -798,7 +837,7 @@ if (!class_exists('CustomContactForms')) {
|
|
798 |
<?php echo $item->get_content(); ?>
|
799 |
</li>
|
800 |
<?php endforeach; ?>
|
801 |
-
<?php if ($maxitems == 0) echo '
|
802 |
else
|
803 |
// Loop through each feed item and display each item as a hyperlink.
|
804 |
foreach ( $rss_items2 as $item ) : ?>
|
@@ -867,6 +906,7 @@ if (!class_exists('CustomContactForms')) {
|
|
867 |
}
|
868 |
}
|
869 |
$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>';
|
|
|
870 |
return $out . $this->wheresWaldo();
|
871 |
}
|
872 |
|
@@ -882,6 +922,17 @@ if (!class_exists('CustomContactForms')) {
|
|
882 |
if (!session_id()) session_start();
|
883 |
}
|
884 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
885 |
function processForms() {
|
886 |
if ($_POST[customcontactforms_submit]) {
|
887 |
$this->startSession();
|
2 |
/*
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
+
Description: VERSION 2.2.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.2.0
|
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
|
40 |
|
41 |
function getAdminOptions() {
|
42 |
$admin_email = get_option('admin_email');
|
43 |
+
$customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_form_subject' => 'Someone Filled Out Your Contact Form!', 'custom_thank_you' => '', 'remember_field_values' => 0, 'author_link' => 1); // defaults
|
44 |
$customcontactOptions = get_option($this->adminOptionsName);
|
45 |
if (!empty($customcontactOptions)) {
|
46 |
foreach ($customcontactOptions as $key => $option)
|
132 |
$admin_options[show_widget_archives] = $_POST[show_widget_archives];
|
133 |
$admin_options[show_widget_home] = $_POST[show_widget_home];
|
134 |
$admin_options[custom_thank_you] = $_POST[custom_thank_you];
|
135 |
+
$admin_options[author_link] = $_POST[author_link];
|
136 |
update_option($this->adminOptionsName, $admin_options);
|
137 |
} elseif ($_POST[field_edit]) {
|
138 |
parent::updateField($_POST[field_slug], $_POST[field_label], $_POST[field_type], $_POST[field_value], $_POST[field_maxlength], $_POST[fid]);
|
152 |
parent::updateStyle($_POST[style]);
|
153 |
} elseif ($_POST[style_delete]) {
|
154 |
parent::deleteStyle($_POST[style][id]);
|
155 |
+
} elseif ($_POST[contact_author]) {
|
156 |
+
$this_url = (!empty($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : $_SERVER['SERVER_NAME'];
|
157 |
+
$this->contactAuthor($_POST[name], $_POST[email], $this_url, $_POST[message], $_POST[type]);
|
158 |
}
|
159 |
$styles = parent::selectAllStyles();
|
160 |
$style_options = '<option value="0">None</option>';
|
164 |
<div id="customcontactforms-admin">
|
165 |
<div id="icon-themes" class="icon32"></div>
|
166 |
<h2>Custom Contact Forms</h2>
|
167 |
+
<ul id="plugin-nav">
|
168 |
+
<li><a href="#instructions">Plugin Instructions</a></li>
|
169 |
+
<li><a href="#general-settings">General Settings</a></li>
|
170 |
+
<li><a href="#create-fields">Create Fields</a></li>
|
171 |
+
<li><a href="#create-forms">Create Forms</a></li>
|
172 |
+
<li><a href="#manage-fields">Manage Fields</a></li>
|
173 |
+
<li><a href="#manage-fixed-fields">Manage Fixed Fields</a></li>
|
174 |
+
<li><a href="#manage-forms">Manage Forms</a></li>
|
175 |
+
<li><a href="#create-styles">Create Styles</a></li>
|
176 |
+
<li><a href="#manage-styles">Manage Styles</a></li>
|
177 |
+
<li><a href="#contact-author">Suggest a Feature</a></li>
|
178 |
+
<li><a href="#contact-author">Bug Report</a></li>
|
179 |
+
<li class="last"><a href="#plugin-news">Plugin News</a></li>
|
180 |
+
</ul><a name="create-fields"></a>
|
181 |
<div id="create-fields" class="postbox">
|
182 |
<h3 class="hndle"><span>Create A Form Field</span></h3>
|
183 |
<div class="inside">
|
214 |
</ul>
|
215 |
</form>
|
216 |
</div>
|
217 |
+
</div><a name="create-forms"></a>
|
218 |
<div id="create-forms" class="postbox">
|
219 |
<h3 class="hndle"><span>Create A Form</span></h3>
|
220 |
<div class="inside">
|
242 |
<li>
|
243 |
<label for="form_action">Form Style:</label>
|
244 |
<select name="form_style"><?php echo $style_options; ?></select>
|
245 |
+
(<a href="#create-styles">Click to create a style</a>)</li>
|
246 |
<li>
|
247 |
<label for="submit_button_text">Submit Button Text:</label>
|
248 |
<input type="text" maxlength="200" name="submit_button_text" />
|
257 |
</ul>
|
258 |
</form>
|
259 |
</div>
|
260 |
+
</div><a name="manage-fields"></a>
|
261 |
<h3 class="manage-h3">Manage User Fields</h3>
|
262 |
<table class="widefat post" id="manage-fields" cellspacing="0">
|
263 |
<thead>
|
307 |
<th scope="col" class="manage-column field-action">Action</th>
|
308 |
</tr>
|
309 |
</tfoot>
|
310 |
+
</table><a name="manage-fixed-fields"></a>
|
311 |
<h3 class="manage-h3">Manage Fixed Fields</h3>
|
312 |
<table class="widefat post" id="manage-fixed-fields" cellspacing="0">
|
313 |
<thead>
|
369 |
<th scope="col" class="manage-column field-action">Action</th>
|
370 |
</tr>
|
371 |
</tfoot>
|
372 |
+
</table><a name="manage-forms"></a>
|
373 |
<h3 class="manage-h3">Manage Forms</h3>
|
374 |
<table class="widefat post" id="manage-forms" cellspacing="0">
|
375 |
<thead>
|
469 |
</tr>
|
470 |
|
471 |
</tfoot>
|
472 |
+
</table><a name="general-settings"></a>
|
473 |
<div id="general-settings" class="postbox">
|
474 |
<h3 class="hndle"><span>General Settings</span></h3>
|
475 |
<div class="inside">
|
501 |
<select name="remember_field_values"><?php echo $remember_fields; ?></select>
|
502 |
</li>
|
503 |
<li class="descrip">Setting this to blank will have fields remember how they were last filled out.</li>
|
504 |
+
<li>
|
505 |
+
<label for="remember_field_values">Hide Plugin Author Link:</label>
|
506 |
+
<select name="author_link"><option value="1">Yes</option><option <?php if ($admin_options[author_link] == 0) echo 'selected="selected"'; ?> value="0">No</option></select>
|
507 |
+
</li>
|
508 |
<li class="show-widget">Show Sidebar Widget:</li>
|
509 |
<li>
|
510 |
<label>
|
537 |
</ul>
|
538 |
</form>
|
539 |
</div>
|
540 |
+
</div><a name="instructions"></a>
|
541 |
<div id="instructions" class="postbox">
|
542 |
<h3 class="hndle"><span>Instructions</span></h3>
|
543 |
<div class="inside">
|
551 |
<div id="style-example"></div>
|
552 |
</div>
|
553 |
</div>
|
554 |
+
<a name="create-styles"></a>
|
555 |
<div id="create-styles" class="postbox">
|
556 |
+
<h3 class="hndle"><span>Create A Style for Your Forms</span></h3>
|
557 |
<div class="inside">
|
558 |
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
559 |
<ul class="style_left">
|
673 |
</ul>
|
674 |
</form>
|
675 |
</div>
|
676 |
+
</div><a name="manage-styles"></a>
|
677 |
<h3 class="manage-h3">Manage Form Styles</h3>
|
678 |
<table class="widefat post" id="manage-styles" cellspacing="0">
|
679 |
<thead>
|
756 |
<th scope="col" class="manage-column"></th>
|
757 |
</tr>
|
758 |
</tfoot>
|
759 |
+
</table><a name="plugin-news"></a>
|
760 |
<div id="plugin-news" class="postbox">
|
761 |
<h3 class="hndle"><span>Custom Contact Forms Plugin News</span></h3>
|
762 |
<div class="inside">
|
763 |
<?php $this->displayPluginNewsFeed(); ?>
|
764 |
</div>
|
765 |
+
</div><a name="contact-author"></a>
|
766 |
+
<div id="contact-author" class="postbox">
|
767 |
+
<h3 class="hndle"><span>Report a Bug/Suggest a Feature</span></h3>
|
768 |
+
<div class="inside">
|
769 |
+
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
770 |
+
<ul>
|
771 |
+
<li><label for="name">Your Name:</label>
|
772 |
+
<input id="name" type="text" name="name" maxlength="100" /></li>
|
773 |
+
<li><label for="email">Your Email:</label>
|
774 |
+
<input id="email" type="text" value="<?php echo get_option('admin_email'); ?>" name="email" maxlength="100" /></li>
|
775 |
+
<li><label for="message">Your Message:</label>
|
776 |
+
<textarea id="message" name="message"></textarea></li>
|
777 |
+
<li><label for="type">Purpose of this message:</label> <select id="type" name="type"><option>Bug Report</option><option>Suggest a Feature</option></select></li>
|
778 |
+
</ul>
|
779 |
+
<p><input type="submit" name="contact_author" value="Send Message" /></p>
|
780 |
+
</form>
|
781 |
+
</div>
|
782 |
</div>
|
783 |
</div>
|
784 |
<?php
|
837 |
<?php echo $item->get_content(); ?>
|
838 |
</li>
|
839 |
<?php endforeach; ?>
|
840 |
+
<?php if ($maxitems == 0) echo '';
|
841 |
else
|
842 |
// Loop through each feed item and display each item as a hyperlink.
|
843 |
foreach ( $rss_items2 as $item ) : ?>
|
906 |
}
|
907 |
}
|
908 |
$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>';
|
909 |
+
if ($admin_options[author_link] == 1) $out .= '<a class="hide" href="http://www.taylorlovett.com" title="Rockville Web Developer, Wordpress Plugins">Wordpress plugin expert and Rockville Web Developer</a>';
|
910 |
return $out . $this->wheresWaldo();
|
911 |
}
|
912 |
|
922 |
if (!session_id()) session_start();
|
923 |
}
|
924 |
|
925 |
+
function contactAuthor($name, $email, $website, $message, $type) {
|
926 |
+
$body = "Name: $name\n";
|
927 |
+
$body .= "Email: $email\n";
|
928 |
+
$body .= "Website: $website\n";
|
929 |
+
$body .= "Message: $message\n";
|
930 |
+
$body .= "Message Type: $type\n";
|
931 |
+
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
932 |
+
$mailer = new CustomContactFormsMailer('admin@taylorlovett.com', $email, "CCF Message: $type", stripslashes($body));
|
933 |
+
$mailer->send();
|
934 |
+
}
|
935 |
+
|
936 |
function processForms() {
|
937 |
if ($_POST[customcontactforms_submit]) {
|
938 |
$this->startSession();
|
readme.txt
CHANGED
@@ -3,13 +3,13 @@ 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.
|
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.
|
13 |
== Installation ==
|
14 |
1. Upload to /wp-content/plugins
|
15 |
2. Activate the plugin from your Wordpress Admin Panel
|
@@ -67,4 +67,7 @@ Required fields option will be added in mid-August 2010
|
|
67 |
2.1.0
|
68 |
* custom-contact-forms.php - New fixed field added, plugin news, bug fixes
|
69 |
* custom-contact-forms.css - New styles added and style bugs fixed
|
70 |
-
* custom-contact-forms-db.php - New fixed field 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.2.0
|
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.2.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
|
67 |
2.1.0
|
68 |
* custom-contact-forms.php - New fixed field added, plugin news, bug fixes
|
69 |
* custom-contact-forms.css - New styles added and style bugs fixed
|
70 |
+
* custom-contact-forms-db.php - New fixed field added
|
71 |
+
2.2.0
|
72 |
+
* custom-contact-forms.php - Plugin nav, hide plugin author link, bug reporting, suggest a feature
|
73 |
+
* custom-contact-forms.css - New styles added and style bugs fixed
|