Contact Form by BestWebSoft - Version 2011.1.03

Version Description

Download this release

Release Info

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

Code changes from version 2011.05.27 to 2011.1.03

Files changed (2) hide show
  1. contact_form.php +9 -9
  2. readme.txt +14 -2
contact_form.php CHANGED
@@ -6,9 +6,9 @@
6
  /*
7
  Plugin Name: Contact Form Plugin
8
  Plugin URI: http://bestwebsoft.com/plugin/
9
- Description: Plugin for portfolio.
10
  Author: BestWebSoft
11
- Version: 1.01
12
  Author URI: http://bestwebsoft.com/
13
  License: GPLv2 or later
14
  */
@@ -81,7 +81,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
81
  }
82
  }
83
  else {
84
- if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:\.?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
85
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
86
  $message = "Options saved.";
87
  }
@@ -106,20 +106,20 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
106
  <tr valign="top">
107
  <th scope="row" style="width:195px;">Use email of wordpress user: </th>
108
  <td>
109
- <input type="radio" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
110
  </td>
111
  <td>
112
- <input type="text" name="cntctfrm_user_email" value="<?php echo $cntctfrm_options['cntctfrm_user_email']; ?>" />
113
  <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set a name of user wo will get messages from a contact form.</span>
114
  </td>
115
  </tr>
116
  <tr valign="top">
117
  <th scope="row" style="width:195px;">Use this email: </th>
118
  <td>
119
- <input type="radio" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/>
120
  </td>
121
  <td>
122
- <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" />
123
  <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set an email address which will be used for messages receiving.</span>
124
  </td>
125
  </tr>
@@ -213,8 +213,8 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
213
  <input type="submit" value="Submit" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
214
  </div>
215
  </form>';
216
- return $content ;
217
  }
 
218
  }
219
  }
220
 
@@ -233,7 +233,7 @@ if( ! function_exists( 'cntctfrm_check_form' ) ) {
233
  // Check information wich was input in fields
234
  if( "" != $_REQUEST['cntctfrm_contact_name'] )
235
  unset( $error_message['error_name'] );
236
- if( "" != $_REQUEST['cntctfrm_contact_emai'] && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:\.?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $_REQUEST['cntctfrm_contact_emai'] ) ) )
237
  unset( $error_message['error_email'] );
238
  if( "" != $_REQUEST['cntctfrm_contact_subject'] )
239
  unset( $error_message['error_subject'] );
6
  /*
7
  Plugin Name: Contact Form Plugin
8
  Plugin URI: http://bestwebsoft.com/plugin/
9
+ Description: Plugin for Contact Form.
10
  Author: BestWebSoft
11
+ Version: 1.03
12
  Author URI: http://bestwebsoft.com/
13
  License: GPLv2 or later
14
  */
81
  }
82
  }
83
  else {
84
+ if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:[-\.]?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
85
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
86
  $message = "Options saved.";
87
  }
106
  <tr valign="top">
107
  <th scope="row" style="width:195px;">Use email of wordpress user: </th>
108
  <td>
109
+ <input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
110
  </td>
111
  <td>
112
+ <input type="text" name="cntctfrm_user_email" value="<?php echo $cntctfrm_options['cntctfrm_user_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_user').checked = true;" />
113
  <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set a name of user wo will get messages from a contact form.</span>
114
  </td>
115
  </tr>
116
  <tr valign="top">
117
  <th scope="row" style="width:195px;">Use this email: </th>
118
  <td>
119
+ <input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/>
120
  </td>
121
  <td>
122
+ <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_custom').checked = true;" />
123
  <span style="color: rgb(136, 136, 136); font-size: 10px;clear:both;">Set an email address which will be used for messages receiving.</span>
124
  </td>
125
  </tr>
213
  <input type="submit" value="Submit" style="cursor: pointer; margin: 0pt; text-align: center;margin-bottom:10px;">
214
  </div>
215
  </form>';
 
216
  }
217
+ return $content ;
218
  }
219
  }
220
 
233
  // Check information wich was input in fields
234
  if( "" != $_REQUEST['cntctfrm_contact_name'] )
235
  unset( $error_message['error_name'] );
236
+ if( "" != $_REQUEST['cntctfrm_contact_emai'] && preg_match( "/^(?:[a-z0-9]+(?:[-_\.]?[a-z0-9]+)?@[a-z0-9]+(?:[-\.]?[a-z0-9]+)?\.[a-z]{2,5})$/i", trim( $_REQUEST['cntctfrm_contact_emai'] ) ) )
237
  unset( $error_message['error_email'] );
238
  if( "" != $_REQUEST['cntctfrm_contact_subject'] )
239
  unset( $error_message['error_subject'] );
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: bestwebsoft
3
  Contributors: bestwebsoft
4
  Donate link: http://bestwebsoft.com/
5
- Tags: Contact Form, text, contact, form
6
  Requires at least: 2.9
7
  Tested up to: 3.1.3
8
- Stable tag: 2011.05.27
9
 
10
  Add Contact Form to your WordPress website.
11
 
@@ -47,6 +47,12 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
47
 
48
  == Changelog ==
49
 
 
 
 
 
 
 
50
  = 1.01 =
51
  *Contact form position bug is fixed.
52
 
@@ -55,6 +61,12 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
55
 
56
  == Upgrade Notice ==
57
 
 
 
 
 
 
 
58
  = 1.01 =
59
  Contact form position bug is fixed. Upgrade immediately.
60
 
2
  Contributors: bestwebsoft
3
  Contributors: bestwebsoft
4
  Donate link: http://bestwebsoft.com/
5
+ Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin
6
  Requires at least: 2.9
7
  Tested up to: 3.1.3
8
+ Stable tag: 2011.01.03
9
 
10
  Add Contact Form to your WordPress website.
11
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.03 =
51
+ *Contact form email adress bug is fixed.
52
+
53
+ = 1.02 =
54
+ *Display "thanks" message bug is fixed. Radio buttons automatic switching added (for settings page) after setting mouse cursor (clicking) into a text field.
55
+
56
  = 1.01 =
57
  *Contact form position bug is fixed.
58
 
61
 
62
  == Upgrade Notice ==
63
 
64
+ = 1.03 =
65
+ Contact form email adress bug is fixed. Upgrade immediately.
66
+
67
+ = 1.02 =
68
+ Display "thanks" message bug is fixed. Radio buttons automatic switching added (for settings page) after setting mouse cursor (clicking) into a text field. Upgrade immediately.
69
+
70
  = 1.01 =
71
  Contact form position bug is fixed. Upgrade immediately.
72