Contact Form by BestWebSoft - Version 2011.2.07

Version Description

Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Contact Form by BestWebSoft
Version 2011.2.07
Comparing to
See all releases

Code changes from version 2011.2.06 to 2011.2.07

Files changed (2) hide show
  1. contact_form.php +11 -8
  2. readme.txt +7 -1
contact_form.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form Plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
- Version: 2.06
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -270,13 +270,13 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
270
  if( isset( $error_message['error_form'] ) ) {
271
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_form'].'</div>';
272
  }
273
- $content .= '<div style="text-align: left; padding-top: 5px;">
274
  <label for="cntctfrm_contact_name">Name:<span class="required"> *</span></label>
275
  </div>';
276
  if( isset( $error_message['error_name'] ) ) {
277
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_name'].'</div>';
278
  }
279
- $content .= '<div style="text-align: left;">
280
  <input class="text" type="text" size="40" value="'.$name.'" name="cntctfrm_contact_name" id="cntctfrm_contact_name" style="text-align: left; margin: 0;">
281
  </div>
282
 
@@ -286,7 +286,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
286
  if( isset( $error_message['error_email'] ) ) {
287
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
288
  }
289
- $content .= '<div style="text-align: left;">
290
  <input class="text" type="text" size="40" value="'.$email.'" name="cntctfrm_contact_email" id="cntctfrm_contact_email" style="text-align: left; margin: 0;">
291
  </div>
292
 
@@ -296,7 +296,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
296
  if( isset( $error_message['error_subject'] ) ) {
297
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_subject'].'</div>';
298
  }
299
- $content .= '<div style="text-align: left;">
300
  <input class="text" type="text" size="40" value="'.$subject.'" name="cntctfrm_contact_subject" id="cntctfrm_contact_subject" style="text-align: left; margin: 0;">
301
  </div>
302
 
@@ -306,12 +306,15 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
306
  if( isset( $error_message['error_message'] ) ) {
307
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
308
  }
309
- $content .= '<div style="text-align: left;">
310
  <textarea rows="10" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
311
  </div>';
312
- $content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
 
 
 
313
 
314
- $content .= '<div style="text-align: left; padding-top: 8px;">
315
  <input type="hidden" value="send" name="cntctfrm_contact_action">
316
  <input type="submit" value="Submit" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
317
  </div>
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
+ Version: 2.07
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
270
  if( isset( $error_message['error_form'] ) ) {
271
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_form'].'</div>';
272
  }
273
+ $content .= '<div style="text-align: left; padding-top: 5px;">
274
  <label for="cntctfrm_contact_name">Name:<span class="required"> *</span></label>
275
  </div>';
276
  if( isset( $error_message['error_name'] ) ) {
277
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_name'].'</div>';
278
  }
279
+ $content .= '<div style="text-align: left;">
280
  <input class="text" type="text" size="40" value="'.$name.'" name="cntctfrm_contact_name" id="cntctfrm_contact_name" style="text-align: left; margin: 0;">
281
  </div>
282
 
286
  if( isset( $error_message['error_email'] ) ) {
287
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_email'].'</div>';
288
  }
289
+ $content .= '<div style="text-align: left;">
290
  <input class="text" type="text" size="40" value="'.$email.'" name="cntctfrm_contact_email" id="cntctfrm_contact_email" style="text-align: left; margin: 0;">
291
  </div>
292
 
296
  if( isset( $error_message['error_subject'] ) ) {
297
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_subject'].'</div>';
298
  }
299
+ $content .= '<div style="text-align: left;">
300
  <input class="text" type="text" size="40" value="'.$subject.'" name="cntctfrm_contact_subject" id="cntctfrm_contact_subject" style="text-align: left; margin: 0;">
301
  </div>
302
 
306
  if( isset( $error_message['error_message'] ) ) {
307
  $content .= '<div style="text-align: left; color: red;">'.$error_message['error_message'].'</div>';
308
  }
309
+ $content .= '<div style="text-align: left;">
310
  <textarea rows="10" cols="30" name="cntctfrm_contact_message" id="cntctfrm_contact_message">'.$message.'</textarea>
311
  </div>';
312
+
313
+ if(has_filter('cntctfrm_display_captcha')) {
314
+ $content .= apply_filters( 'cntctfrm_display_captcha' , $error_message );
315
+ }
316
 
317
+ $content .= '<div style="text-align: left; padding-top: 8px;">
318
  <input type="hidden" value="send" name="cntctfrm_contact_action">
319
  <input type="submit" value="Submit" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
320
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bestwebsoft.com/
4
  Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
5
  Requires at least: 2.9
6
  Tested up to: 3.2
7
- Stable tag: 2011.2.06
8
 
9
  Add Contact Form to your WordPress website.
10
 
@@ -46,6 +46,9 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 2.06 =
50
  *We fixed the bug of complex email validation when filling in the contact form.
51
 
@@ -78,6 +81,9 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
78
 
79
  == Upgrade Notice ==
80
 
 
 
 
81
  = 2.06 =
82
  We fixed the bug of complex email validation when filling in the contact form.
83
 
4
  Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
5
  Requires at least: 2.9
6
  Tested up to: 3.2
7
+ Stable tag: 2011.2.07
8
 
9
  Add Contact Form to your WordPress website.
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 2.07 =
50
+ *We fixed the bug of complex form validation when captcha not used in the contact form. Upgrade immediately.
51
+
52
  = 2.06 =
53
  *We fixed the bug of complex email validation when filling in the contact form.
54
 
81
 
82
  == Upgrade Notice ==
83
 
84
+ = 2.07 =
85
+ We fixed the bug of complex form validation when captcha not used in the contact form. Upgrade immediately.
86
+
87
  = 2.06 =
88
  We fixed the bug of complex email validation when filling in the contact form.
89