Version Description
Create forms styles, manage them, and attach them to forms! Coming soon.
Download this release
Release Info
| Developer | tlovett1 |
| Plugin | |
| Version | 1.1.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.2 to 1.1.3
- custom-contact-forms-db.php +1 -1
- custom-contact-forms-images.php +22 -22
- custom-contact-forms-mailer.php +34 -34
- custom-contact-forms.css +193 -193
- custom-contact-forms.php +3 -2
- image.php +16 -16
- images/_notes/dwsync.xml +4 -4
- readme.txt +7 -4
custom-contact-forms-db.php
CHANGED
|
@@ -69,7 +69,7 @@ if (!class_exists('CustomContactFormsDB')) {
|
|
| 69 |
|
| 70 |
function insertFixedFields() {
|
| 71 |
if (!$this->fieldSlugExists('captcha'))
|
| 72 |
-
$this->insertField('captcha', 'Type the
|
| 73 |
|
| 74 |
}
|
| 75 |
|
| 69 |
|
| 70 |
function insertFixedFields() {
|
| 71 |
if (!$this->fieldSlugExists('captcha'))
|
| 72 |
+
$this->insertField('captcha', 'Type the number', 'Text', '', '100', 0);
|
| 73 |
|
| 74 |
}
|
| 75 |
|
custom-contact-forms-images.php
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/*
|
| 3 |
-
Custom Contact Forms Plugin
|
| 4 |
-
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
-
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
-
*/
|
| 7 |
-
if (!class_exists('CustomContactFormsImages')) {
|
| 8 |
-
class CustomContactFormsImages {
|
| 9 |
-
function createImageWithText($str){
|
| 10 |
-
$image = imagecreate(96,24);
|
| 11 |
-
$src = imagecreatefrompng('images/gd' . rand(1, 4) . '.png');
|
| 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);
|
| 19 |
-
return $str;
|
| 20 |
-
}
|
| 21 |
-
}
|
| 22 |
-
}
|
| 23 |
?>
|
| 1 |
+
<?php
|
| 2 |
+
/*
|
| 3 |
+
Custom Contact Forms Plugin
|
| 4 |
+
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
+
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
+
*/
|
| 7 |
+
if (!class_exists('CustomContactFormsImages')) {
|
| 8 |
+
class CustomContactFormsImages {
|
| 9 |
+
function createImageWithText($str){
|
| 10 |
+
$image = imagecreate(96,24);
|
| 11 |
+
$src = imagecreatefrompng('images/gd' . rand(1, 4) . '.png');
|
| 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);
|
| 19 |
+
return $str;
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
?>
|
custom-contact-forms-mailer.php
CHANGED
|
@@ -1,35 +1,35 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/*
|
| 3 |
-
Custom Contact Forms Plugin
|
| 4 |
-
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
-
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
-
*/
|
| 7 |
-
if (!class_exists('CustomContactFormsMailer')) {
|
| 8 |
-
class CustomContactFormsMailer {
|
| 9 |
-
var $to;
|
| 10 |
-
var $from;
|
| 11 |
-
var $subject;
|
| 12 |
-
var $body;
|
| 13 |
-
var $headers;
|
| 14 |
-
|
| 15 |
-
function CustomContactFormsMailer($to, $from, $subject, $body){
|
| 16 |
-
$this->to = $to;
|
| 17 |
-
$this->from = $from;
|
| 18 |
-
$this->subject = $subject;
|
| 19 |
-
$this->body = $body;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
function send(){
|
| 23 |
-
$this->addHeader('From: '.$this->from."\r\n");
|
| 24 |
-
$this->addHeader('Reply-To: '.$this->from."\r\n");
|
| 25 |
-
$this->addHeader('Return-Path: '.$this->from."\r\n");
|
| 26 |
-
$this->addHeader('X-mailer: ZFmail 1.0'."\r\n");
|
| 27 |
-
mail($this->to, $this->subject, $this->body, $this->headers);
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
function addHeader($header){
|
| 31 |
-
$this->headers .= $header;
|
| 32 |
-
}
|
| 33 |
-
}
|
| 34 |
-
}
|
| 35 |
?>
|
| 1 |
+
<?php
|
| 2 |
+
/*
|
| 3 |
+
Custom Contact Forms Plugin
|
| 4 |
+
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
+
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
+
*/
|
| 7 |
+
if (!class_exists('CustomContactFormsMailer')) {
|
| 8 |
+
class CustomContactFormsMailer {
|
| 9 |
+
var $to;
|
| 10 |
+
var $from;
|
| 11 |
+
var $subject;
|
| 12 |
+
var $body;
|
| 13 |
+
var $headers;
|
| 14 |
+
|
| 15 |
+
function CustomContactFormsMailer($to, $from, $subject, $body){
|
| 16 |
+
$this->to = $to;
|
| 17 |
+
$this->from = $from;
|
| 18 |
+
$this->subject = $subject;
|
| 19 |
+
$this->body = $body;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
function send(){
|
| 23 |
+
$this->addHeader('From: '.$this->from."\r\n");
|
| 24 |
+
$this->addHeader('Reply-To: '.$this->from."\r\n");
|
| 25 |
+
$this->addHeader('Return-Path: '.$this->from."\r\n");
|
| 26 |
+
$this->addHeader('X-mailer: ZFmail 1.0'."\r\n");
|
| 27 |
+
mail($this->to, $this->subject, $this->body, $this->headers);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
function addHeader($header){
|
| 31 |
+
$this->headers .= $header;
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
?>
|
custom-contact-forms.css
CHANGED
|
@@ -1,193 +1,193 @@
|
|
| 1 |
-
/* Custom Contact Forms CSS */
|
| 2 |
-
form.customcontactform {
|
| 3 |
-
margin:8px;
|
| 4 |
-
width:95%;
|
| 5 |
-
max-width:600px;
|
| 6 |
-
font-size:1em;
|
| 7 |
-
padding:4px;
|
| 8 |
-
color:#333333;
|
| 9 |
-
}
|
| 10 |
-
form.customcontactform-sidebar {
|
| 11 |
-
width:100%;
|
| 12 |
-
max-width:600px;
|
| 13 |
-
padding:4px;
|
| 14 |
-
color:#333333;
|
| 15 |
-
font-size:1em;
|
| 16 |
-
}
|
| 17 |
-
form.customcontactform ul, form.customcontactform-sidebar ul {
|
| 18 |
-
list-style-type:none;
|
| 19 |
-
}
|
| 20 |
-
form.customcontactform ul li, form.customcontactform-sidebar ul li {
|
| 21 |
-
margin:.3em 0 .3em 0;
|
| 22 |
-
padding:4px 0 4px 0;
|
| 23 |
-
overflow:hidden;
|
| 24 |
-
}
|
| 25 |
-
form.customcontactform ul li {
|
| 26 |
-
border-bottom:1px dashed #999;
|
| 27 |
-
}
|
| 28 |
-
form.customcontactform h4, form.customcontactform-sidebar h4 {
|
| 29 |
-
font-size:1.4em;
|
| 30 |
-
font-weight:bold;
|
| 31 |
-
}
|
| 32 |
-
form.customcontactform ul li label {
|
| 33 |
-
display:block;
|
| 34 |
-
padding:0;
|
| 35 |
-
width:100%;
|
| 36 |
-
}
|
| 37 |
-
form.customcontactform-sidebar ul li label { width:100%; }
|
| 38 |
-
form.customcontactform ul li label.checkbox, form.customcontactform-sidebar ul li label.checkbox {
|
| 39 |
-
display:inline;
|
| 40 |
-
width:20%;
|
| 41 |
-
}
|
| 42 |
-
form.customcontactform ul li input[type=text], form.customcontactform ul li textarea, form.customcontactform-sidebar ul li input[type=text], form.customcontactform-sidebar ul li textarea {
|
| 43 |
-
border-width:1px;
|
| 44 |
-
border-style:solid;
|
| 45 |
-
border-spacing:0;
|
| 46 |
-
font-weight:normal;
|
| 47 |
-
width:16em;
|
| 48 |
-
padding:2px;
|
| 49 |
-
clear:both;
|
| 50 |
-
margin:0;
|
| 51 |
-
font-size:1.1em;
|
| 52 |
-
font-family:Verdana, Arial, Helvetica, sans-serif;
|
| 53 |
-
-moz-border-radius:4px;
|
| 54 |
-
-khtml-border-radius:4px;
|
| 55 |
-
-webkit-border-radius:4px;
|
| 56 |
-
border-radius:4px;
|
| 57 |
-
word-wrap:break-word;
|
| 58 |
-
}
|
| 59 |
-
form.customcontactform p, form.customcontactform-sidebar p { padding:0 0 4px 17px; margin:0; }
|
| 60 |
-
form.customcontactform ul li input[type=submit], form.customcontactform ul li .submit, form.customcontactform-sidebar ul li .submit {
|
| 61 |
-
font-size:1em; margin-left:8px;
|
| 62 |
-
}
|
| 63 |
-
form.customcontactform ul li input[type=checkbox], form.customcontactform-sidebar ul li input[type=checkbox] {
|
| 64 |
-
width:20px;
|
| 65 |
-
padding:0;
|
| 66 |
-
margin:0;
|
| 67 |
-
}
|
| 68 |
-
form.customcontactform-sidebar ul li input[type=text], form.customcontactform-sidebar ul li textarea {
|
| 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 |
-
}
|
| 86 |
-
#customcontactforms-admin .inside {
|
| 87 |
-
padding:5px 10px 10px 10px;
|
| 88 |
-
}
|
| 89 |
-
#customcontactforms-admin h3 {
|
| 90 |
-
margin:0 0 7px 0;
|
| 91 |
-
height:25px;
|
| 92 |
-
padding: 7px 0 0 9px;
|
| 93 |
-
}
|
| 94 |
-
#customcontactforms-admin #instructions {
|
| 95 |
-
float:left;
|
| 96 |
-
height:28em;
|
| 97 |
-
width:29em;
|
| 98 |
-
margin:20px 1em 1em 5px;
|
| 99 |
-
}
|
| 100 |
-
#customcontactforms-admin #instructions p:first-child {
|
| 101 |
-
padding-top:0;
|
| 102 |
-
margin-top:0;
|
| 103 |
-
}
|
| 104 |
-
#customcontactforms-admin #general-settings {
|
| 105 |
-
float:left;
|
| 106 |
-
clear:both;
|
| 107 |
-
height:53em;
|
| 108 |
-
width:29em;
|
| 109 |
-
margin:20px 1em 1em 5px;
|
| 110 |
-
}
|
| 111 |
-
#customcontactforms-admin #general-settings form ul li.descrip {
|
| 112 |
-
font-style:italic;
|
| 113 |
-
padding-left:20px;
|
| 114 |
-
}
|
| 115 |
-
#customcontactforms-admin #general-settings form ul li.show-widget {
|
| 116 |
-
margin-top:1em;
|
| 117 |
-
padding-top:.4em;
|
| 118 |
-
border-top:1px solid #ccc;
|
| 119 |
-
}
|
| 120 |
-
#customcontactforms-admin #create-fields {
|
| 121 |
-
float:left;
|
| 122 |
-
height:22em;
|
| 123 |
-
clear:left;
|
| 124 |
-
width:450px;
|
| 125 |
-
margin:0 1em 1em 5px;
|
| 126 |
-
}
|
| 127 |
-
#customcontactforms-admin #create-forms {
|
| 128 |
-
float:left;
|
| 129 |
-
width:500px;
|
| 130 |
-
height:22em;
|
| 131 |
-
border-left:1px solid #ccc;
|
| 132 |
-
margin:0 1em 1em 1em;
|
| 133 |
-
}
|
| 134 |
-
#customcontactforms-admin #create-forms .inside ul li {
|
| 135 |
-
font-size:.8em;
|
| 136 |
-
}
|
| 137 |
-
#customcontactforms-admin .manage-h3 {
|
| 138 |
-
clear:both;
|
| 139 |
-
margin-top:20px;
|
| 140 |
-
}
|
| 141 |
-
#customcontactforms-admin #manage-fields {
|
| 142 |
-
width:1000px;
|
| 143 |
-
}
|
| 144 |
-
#customcontactforms-admin #manage-fixed-fields {
|
| 145 |
-
width:1000px;
|
| 146 |
-
}
|
| 147 |
-
#customcontactforms-admin .evenrow {
|
| 148 |
-
background-color:#f5f5f5;
|
| 149 |
-
}
|
| 150 |
-
#customcontactforms-admin .nobordertop {
|
| 151 |
-
border-top:none;
|
| 152 |
-
}
|
| 153 |
-
#customcontactforms-admin .borderbottom {
|
| 154 |
-
border-bottom:2px solid black;
|
| 155 |
-
}
|
| 156 |
-
#customcontactforms-admin .attached_fields {
|
| 157 |
-
float:left;
|
| 158 |
-
width:600px;
|
| 159 |
-
}
|
| 160 |
-
#customcontactforms-admin .attach_field {
|
| 161 |
-
float:right;
|
| 162 |
-
width:360px;
|
| 163 |
-
}
|
| 164 |
-
#customcontactforms-admin label span {
|
| 165 |
-
font-weight:bold;
|
| 166 |
-
}
|
| 167 |
-
.width25 {
|
| 168 |
-
width:25px;
|
| 169 |
-
}
|
| 170 |
-
.width50 {
|
| 171 |
-
width:50px;
|
| 172 |
-
}
|
| 173 |
-
.width75 {
|
| 174 |
-
width:75px;
|
| 175 |
-
}
|
| 176 |
-
.width100 {
|
| 177 |
-
width:100px;
|
| 178 |
-
}
|
| 179 |
-
.width125 {
|
| 180 |
-
width:125px;
|
| 181 |
-
}
|
| 182 |
-
.width150 {
|
| 183 |
-
width:150px;
|
| 184 |
-
}
|
| 185 |
-
.width175 {
|
| 186 |
-
width:175px;
|
| 187 |
-
}
|
| 188 |
-
.width200 {
|
| 189 |
-
width:200px;
|
| 190 |
-
}
|
| 191 |
-
.red { color:#F00; }
|
| 192 |
-
.bold { font-weight:bold; }
|
| 193 |
-
.italic { font-style:italic; }
|
| 1 |
+
/* Custom Contact Forms CSS */
|
| 2 |
+
form.customcontactform {
|
| 3 |
+
margin:8px;
|
| 4 |
+
width:95%;
|
| 5 |
+
max-width:600px;
|
| 6 |
+
font-size:1em;
|
| 7 |
+
padding:4px;
|
| 8 |
+
color:#333333;
|
| 9 |
+
}
|
| 10 |
+
form.customcontactform-sidebar {
|
| 11 |
+
width:100%;
|
| 12 |
+
max-width:600px;
|
| 13 |
+
padding:4px;
|
| 14 |
+
color:#333333;
|
| 15 |
+
font-size:1em;
|
| 16 |
+
}
|
| 17 |
+
form.customcontactform ul, form.customcontactform-sidebar ul {
|
| 18 |
+
list-style-type:none;
|
| 19 |
+
}
|
| 20 |
+
form.customcontactform ul li, form.customcontactform-sidebar ul li {
|
| 21 |
+
margin:.3em 0 .3em 0;
|
| 22 |
+
padding:4px 0 4px 0;
|
| 23 |
+
overflow:hidden;
|
| 24 |
+
}
|
| 25 |
+
form.customcontactform ul li {
|
| 26 |
+
border-bottom:1px dashed #999;
|
| 27 |
+
}
|
| 28 |
+
form.customcontactform h4, form.customcontactform-sidebar h4 {
|
| 29 |
+
font-size:1.4em;
|
| 30 |
+
font-weight:bold;
|
| 31 |
+
}
|
| 32 |
+
form.customcontactform ul li label {
|
| 33 |
+
display:block;
|
| 34 |
+
padding:0;
|
| 35 |
+
width:100%;
|
| 36 |
+
}
|
| 37 |
+
form.customcontactform-sidebar ul li label { width:100%; }
|
| 38 |
+
form.customcontactform ul li label.checkbox, form.customcontactform-sidebar ul li label.checkbox {
|
| 39 |
+
display:inline;
|
| 40 |
+
width:20%;
|
| 41 |
+
}
|
| 42 |
+
form.customcontactform ul li input[type=text], form.customcontactform ul li textarea, form.customcontactform-sidebar ul li input[type=text], form.customcontactform-sidebar ul li textarea {
|
| 43 |
+
border-width:1px;
|
| 44 |
+
border-style:solid;
|
| 45 |
+
border-spacing:0;
|
| 46 |
+
font-weight:normal;
|
| 47 |
+
width:16em;
|
| 48 |
+
padding:2px;
|
| 49 |
+
clear:both;
|
| 50 |
+
margin:0;
|
| 51 |
+
font-size:1.1em;
|
| 52 |
+
font-family:Verdana, Arial, Helvetica, sans-serif;
|
| 53 |
+
-moz-border-radius:4px;
|
| 54 |
+
-khtml-border-radius:4px;
|
| 55 |
+
-webkit-border-radius:4px;
|
| 56 |
+
border-radius:4px;
|
| 57 |
+
word-wrap:break-word;
|
| 58 |
+
}
|
| 59 |
+
form.customcontactform p, form.customcontactform-sidebar p { padding:0 0 4px 17px; margin:0; }
|
| 60 |
+
form.customcontactform ul li input[type=submit], form.customcontactform ul li .submit, form.customcontactform-sidebar ul li .submit {
|
| 61 |
+
font-size:1em; margin-left:8px;
|
| 62 |
+
}
|
| 63 |
+
form.customcontactform ul li input[type=checkbox], form.customcontactform-sidebar ul li input[type=checkbox] {
|
| 64 |
+
width:20px;
|
| 65 |
+
padding:0;
|
| 66 |
+
margin:0;
|
| 67 |
+
}
|
| 68 |
+
form.customcontactform-sidebar ul li input[type=text], form.customcontactform-sidebar ul li textarea {
|
| 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 |
+
}
|
| 86 |
+
#customcontactforms-admin .inside {
|
| 87 |
+
padding:5px 10px 10px 10px;
|
| 88 |
+
}
|
| 89 |
+
#customcontactforms-admin h3 {
|
| 90 |
+
margin:0 0 7px 0;
|
| 91 |
+
height:25px;
|
| 92 |
+
padding: 7px 0 0 9px;
|
| 93 |
+
}
|
| 94 |
+
#customcontactforms-admin #instructions {
|
| 95 |
+
float:left;
|
| 96 |
+
height:28em;
|
| 97 |
+
width:29em;
|
| 98 |
+
margin:20px 1em 1em 5px;
|
| 99 |
+
}
|
| 100 |
+
#customcontactforms-admin #instructions p:first-child {
|
| 101 |
+
padding-top:0;
|
| 102 |
+
margin-top:0;
|
| 103 |
+
}
|
| 104 |
+
#customcontactforms-admin #general-settings {
|
| 105 |
+
float:left;
|
| 106 |
+
clear:both;
|
| 107 |
+
height:53em;
|
| 108 |
+
width:29em;
|
| 109 |
+
margin:20px 1em 1em 5px;
|
| 110 |
+
}
|
| 111 |
+
#customcontactforms-admin #general-settings form ul li.descrip {
|
| 112 |
+
font-style:italic;
|
| 113 |
+
padding-left:20px;
|
| 114 |
+
}
|
| 115 |
+
#customcontactforms-admin #general-settings form ul li.show-widget {
|
| 116 |
+
margin-top:1em;
|
| 117 |
+
padding-top:.4em;
|
| 118 |
+
border-top:1px solid #ccc;
|
| 119 |
+
}
|
| 120 |
+
#customcontactforms-admin #create-fields {
|
| 121 |
+
float:left;
|
| 122 |
+
height:22em;
|
| 123 |
+
clear:left;
|
| 124 |
+
width:450px;
|
| 125 |
+
margin:0 1em 1em 5px;
|
| 126 |
+
}
|
| 127 |
+
#customcontactforms-admin #create-forms {
|
| 128 |
+
float:left;
|
| 129 |
+
width:500px;
|
| 130 |
+
height:22em;
|
| 131 |
+
border-left:1px solid #ccc;
|
| 132 |
+
margin:0 1em 1em 1em;
|
| 133 |
+
}
|
| 134 |
+
#customcontactforms-admin #create-forms .inside ul li {
|
| 135 |
+
font-size:.8em;
|
| 136 |
+
}
|
| 137 |
+
#customcontactforms-admin .manage-h3 {
|
| 138 |
+
clear:both;
|
| 139 |
+
margin-top:20px;
|
| 140 |
+
}
|
| 141 |
+
#customcontactforms-admin #manage-fields {
|
| 142 |
+
width:1000px;
|
| 143 |
+
}
|
| 144 |
+
#customcontactforms-admin #manage-fixed-fields {
|
| 145 |
+
width:1000px;
|
| 146 |
+
}
|
| 147 |
+
#customcontactforms-admin .evenrow {
|
| 148 |
+
background-color:#f5f5f5;
|
| 149 |
+
}
|
| 150 |
+
#customcontactforms-admin .nobordertop {
|
| 151 |
+
border-top:none;
|
| 152 |
+
}
|
| 153 |
+
#customcontactforms-admin .borderbottom {
|
| 154 |
+
border-bottom:2px solid black;
|
| 155 |
+
}
|
| 156 |
+
#customcontactforms-admin .attached_fields {
|
| 157 |
+
float:left;
|
| 158 |
+
width:600px;
|
| 159 |
+
}
|
| 160 |
+
#customcontactforms-admin .attach_field {
|
| 161 |
+
float:right;
|
| 162 |
+
width:360px;
|
| 163 |
+
}
|
| 164 |
+
#customcontactforms-admin label span {
|
| 165 |
+
font-weight:bold;
|
| 166 |
+
}
|
| 167 |
+
.width25 {
|
| 168 |
+
width:25px;
|
| 169 |
+
}
|
| 170 |
+
.width50 {
|
| 171 |
+
width:50px;
|
| 172 |
+
}
|
| 173 |
+
.width75 {
|
| 174 |
+
width:75px;
|
| 175 |
+
}
|
| 176 |
+
.width100 {
|
| 177 |
+
width:100px;
|
| 178 |
+
}
|
| 179 |
+
.width125 {
|
| 180 |
+
width:125px;
|
| 181 |
+
}
|
| 182 |
+
.width150 {
|
| 183 |
+
width:150px;
|
| 184 |
+
}
|
| 185 |
+
.width175 {
|
| 186 |
+
width:175px;
|
| 187 |
+
}
|
| 188 |
+
.width200 {
|
| 189 |
+
width:200px;
|
| 190 |
+
}
|
| 191 |
+
.red { color:#F00; }
|
| 192 |
+
.bold { font-weight:bold; }
|
| 193 |
+
.italic { font-style:italic; }
|
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: 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.
|
| 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
|
|
@@ -576,8 +576,9 @@ if (!class_exists('CustomContactForms')) {
|
|
| 576 |
}
|
| 577 |
|
| 578 |
function getCaptchaCode() {
|
|
|
|
| 579 |
$out = '<img id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php">
|
| 580 |
-
<br /><label for="captcha">
|
| 581 |
|
| 582 |
return $out;
|
| 583 |
}
|
| 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.3
|
| 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
|
| 576 |
}
|
| 577 |
|
| 578 |
function getCaptchaCode() {
|
| 579 |
+
$captcha = parent::selectField('', 'captcha');
|
| 580 |
$out = '<img id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php">
|
| 581 |
+
<br /><label for="captcha">'.$captcha->field_label.'</label> <input type="text" name="captcha" id="captcha" maxlength="20" />';
|
| 582 |
|
| 583 |
return $out;
|
| 584 |
}
|
image.php
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/*
|
| 3 |
-
Custom Contact Forms Plugin
|
| 4 |
-
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
-
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
-
*/
|
| 7 |
-
header("Content-type: image/png");
|
| 8 |
-
require_once('custom-contact-forms-images.php');
|
| 9 |
-
$image = new CustomContactFormsImages();
|
| 10 |
-
$str = rand(10000, 99999);
|
| 11 |
-
if (!session_id())
|
| 12 |
-
session_start();
|
| 13 |
-
$_SESSION[captcha] = $str;
|
| 14 |
-
$image->createImageWithText($str);
|
| 15 |
-
|
| 16 |
-
?>
|
| 1 |
+
<?php
|
| 2 |
+
/*
|
| 3 |
+
Custom Contact Forms Plugin
|
| 4 |
+
By Taylor Lovett - http://www.taylorlovett.com
|
| 5 |
+
Plugin URL: http://www.taylorlovett.com/wordpress-plugins
|
| 6 |
+
*/
|
| 7 |
+
header("Content-type: image/png");
|
| 8 |
+
require_once('custom-contact-forms-images.php');
|
| 9 |
+
$image = new CustomContactFormsImages();
|
| 10 |
+
$str = rand(10000, 99999);
|
| 11 |
+
if (!session_id())
|
| 12 |
+
session_start();
|
| 13 |
+
$_SESSION[captcha] = $str;
|
| 14 |
+
$image->createImageWithText($str);
|
| 15 |
+
|
| 16 |
+
?>
|
images/_notes/dwsync.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0" encoding="utf-8" ?>
|
| 2 |
<dwsync>
|
| 3 |
-
<file name="gd1.png" server="ftp.taylorlovett.com/www/" local="
|
| 4 |
-
<file name="gd2.png" server="ftp.taylorlovett.com/www/" local="
|
| 5 |
-
<file name="gd3.png" server="ftp.taylorlovett.com/www/" local="
|
| 6 |
-
<file name="gd4.png" server="ftp.taylorlovett.com/www/" local="
|
| 7 |
</dwsync>
|
| 1 |
<?xml version="1.0" encoding="utf-8" ?>
|
| 2 |
<dwsync>
|
| 3 |
+
<file name="gd1.png" server="ftp.taylorlovett.com/www/" local="129249397200000000" remote="129249397200000000" />
|
| 4 |
+
<file name="gd2.png" server="ftp.taylorlovett.com/www/" local="129249397200000000" remote="129249397200000000" />
|
| 5 |
+
<file name="gd3.png" server="ftp.taylorlovett.com/www/" local="129249397200000000" remote="129249397200000000" />
|
| 6 |
+
<file name="gd4.png" server="ftp.taylorlovett.com/www/" local="129249397200000000" remote="129249397200000000" />
|
| 7 |
</dwsync>
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
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.
|
| 7 |
Contributors: Taylor Lovett
|
| 8 |
Download link: http://www.taylorlovett.com/wordpress-plugins/
|
| 9 |
Author: Taylor Lovett
|
|
@@ -34,7 +34,7 @@ Official Testers:
|
|
| 34 |
Mark Lassarre
|
| 35 |
|
| 36 |
== Upgrade Notice ==
|
| 37 |
-
|
| 38 |
|
| 39 |
== Change Log ==
|
| 40 |
1.0.0:
|
|
@@ -51,4 +51,7 @@ Required fields option will be added in mid-August 2010
|
|
| 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
|
|
|
|
|
|
|
|
|
| 2 |
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.1
|
| 6 |
+
Stable tag: 1.1.3
|
| 7 |
Contributors: Taylor Lovett
|
| 8 |
Download link: http://www.taylorlovett.com/wordpress-plugins/
|
| 9 |
Author: Taylor Lovett
|
| 34 |
Mark Lassarre
|
| 35 |
|
| 36 |
== Upgrade Notice ==
|
| 37 |
+
Create forms styles, manage them, and attach them to forms! Coming soon.
|
| 38 |
|
| 39 |
== Change Log ==
|
| 40 |
1.0.0:
|
| 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
|
| 55 |
+
1.1.3
|
| 56 |
+
* custom-contact-forms.php - Captcha label bug fixed
|
| 57 |
+
* custom-contact-forms-db.php - Default captcha label changed
|
