Contact Bank: WordPress Form Builder for Contact Forms - Version 1.7

Version Description

Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 Contact Bank: WordPress Form Builder for Contact Forms
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

contact-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://wordpress.org/plugins/contact-bank/
5
  Description: Contact Bank allows you to add a feedback form easilly and simply to a post or a page.
6
  Author: contact-banker
7
- Version: 1.6
8
  Author URI: http://wordpress.org/plugins/contact-bank/
9
  */
10
 
@@ -620,7 +620,7 @@ add_action('admin_menu','create_global_menus_for_contact_bank');
620
  // Activation Hook called for function plugin_install_script_for_contact_bank
621
  register_activation_hook(__FILE__,'plugin_install_script_for_contact_bank');
622
  // add_Shortcode Hook called for function contact_bank_short_code for FrontEnd
623
- add_shortcode('contact_bank', 'contact_bank_short_code' );
624
  // Uninstall Hook called for function plugin_install_script_for_contact_bank
625
  register_uninstall_hook(__FILE__,'plugin_uninstall_script_for_contact_bank');
626
  add_filter('widget_text', 'do_shortcode');
4
  Plugin URI: http://wordpress.org/plugins/contact-bank/
5
  Description: Contact Bank allows you to add a feedback form easilly and simply to a post or a page.
6
  Author: contact-banker
7
+ Version: 1.7
8
  Author URI: http://wordpress.org/plugins/contact-bank/
9
  */
10
 
620
  // Activation Hook called for function plugin_install_script_for_contact_bank
621
  register_activation_hook(__FILE__,'plugin_install_script_for_contact_bank');
622
  // add_Shortcode Hook called for function contact_bank_short_code for FrontEnd
623
+ add_shortcode('contact_bank', 'contact_bank_short_code');
624
  // Uninstall Hook called for function plugin_install_script_for_contact_bank
625
  register_uninstall_hook(__FILE__,'plugin_uninstall_script_for_contact_bank');
626
  add_filter('widget_text', 'do_shortcode');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: Contact Form, text, contact, form, contacts, request, contact me, feedback form, feedback, easy contact form, best contact form plugin, admin, Post, widget, contact bank, contact form 7, plugin, Posts, ajax, contact form 7, easy contact, advanced forms
4
  Requires at least: 2.9
5
  Tested up to: 3.7.1
6
- Stable tag: 1.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -98,6 +98,10 @@ Contact Bank can manage multiple forms, plus you can customize the form and the
98
  == Changelog ==
99
  = 1.6 =
100
 
 
 
 
 
101
  * Widget Added
102
  * Database Bugs Fixed
103
  * Code Opimized
3
  Tags: Contact Form, text, contact, form, contacts, request, contact me, feedback form, feedback, easy contact form, best contact form plugin, admin, Post, widget, contact bank, contact form 7, plugin, Posts, ajax, contact form 7, easy contact, advanced forms
4
  Requires at least: 2.9
5
  Tested up to: 3.7.1
6
+ Stable tag: 1.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
98
  == Changelog ==
99
  = 1.6 =
100
 
101
+ * Bugs fixed with shortcodes in subject field for both mails.
102
+
103
+ = 1.6 =
104
+
105
  * Widget Added
106
  * Database Bugs Fixed
107
  * Code Opimized
views/contact_bank_email_management.php CHANGED
@@ -24,6 +24,8 @@ if(isset($_REQUEST['param']))
24
  2
25
  )
26
  );
 
 
27
  $file_uploaded_path_admin = "";
28
  $file_path ="";
29
  $messageTxt = stripcslashes($email_content->body_content);
@@ -40,9 +42,13 @@ if(isset($_REQUEST['param']))
40
  $form_submit_id
41
  )
42
  );
 
 
43
  for($flag=0;$flag<count($frontend_control_value);$flag++)
44
  {
45
  $dynamicId = $frontend_control_value[$flag]->dynamic_control_id;
 
 
46
  if($frontend_control_value[$flag]->field_Id == 3)
47
  {
48
  if($client_email != "")
@@ -54,7 +60,7 @@ if(isset($_REQUEST['param']))
54
  }
55
 
56
  }
57
- if($frontend_control_value[$flag]->field_Id == 12)
58
  {
59
  $date_format = $wpdb->get_var
60
  (
@@ -158,7 +164,6 @@ if(isset($_REQUEST['param']))
158
  $admin_label = get_option( 'admin_email');
159
  $to = $email_content->email_to;
160
  $title = get_bloginfo('name');
161
- $emailSubject = $email_content->subject;
162
  $headers = "From: " .$email_content->email_from. " <". $admin_label . ">" ."\n" .
163
  "Content-Type: text/html; charset=\"" .
164
  get_option('blog_charset') . "\n";
@@ -175,7 +180,6 @@ if(isset($_REQUEST['param']))
175
  $admin_label = get_option( 'admin_email');
176
  $Client_to = $client_email;
177
  $title_client = get_bloginfo('name');
178
- $emailSubject_client = $email_content_client->subject;
179
  $headers_client = "From: " .$email_content_client->email_from. " <". $admin_label . ">" ."\n" .
180
  "Content-Type: text/html; charset=\"" .
181
  get_option('blog_charset') . "\n";
24
  2
25
  )
26
  );
27
+
28
+
29
  $file_uploaded_path_admin = "";
30
  $file_path ="";
31
  $messageTxt = stripcslashes($email_content->body_content);
42
  $form_submit_id
43
  )
44
  );
45
+ $emailSubject = $email_content->subject;
46
+ $emailSubject_client = $email_content_client->subject;
47
  for($flag=0;$flag<count($frontend_control_value);$flag++)
48
  {
49
  $dynamicId = $frontend_control_value[$flag]->dynamic_control_id;
50
+ $emailSubject = str_replace("[control_".$dynamicId."]",$frontend_control_value[$flag]->dynamic_frontend_value,$emailSubject);
51
+ $emailSubject_client = str_replace("[control_".$dynamicId."]",$frontend_control_value[$flag]->dynamic_frontend_value,$emailSubject_client);
52
  if($frontend_control_value[$flag]->field_Id == 3)
53
  {
54
  if($client_email != "")
60
  }
61
 
62
  }
63
+ else if($frontend_control_value[$flag]->field_Id == 12)
64
  {
65
  $date_format = $wpdb->get_var
66
  (
164
  $admin_label = get_option( 'admin_email');
165
  $to = $email_content->email_to;
166
  $title = get_bloginfo('name');
 
167
  $headers = "From: " .$email_content->email_from. " <". $admin_label . ">" ."\n" .
168
  "Content-Type: text/html; charset=\"" .
169
  get_option('blog_charset') . "\n";
180
  $admin_label = get_option( 'admin_email');
181
  $Client_to = $client_email;
182
  $title_client = get_bloginfo('name');
 
183
  $headers_client = "From: " .$email_content_client->email_from. " <". $admin_label . ">" ."\n" .
184
  "Content-Type: text/html; charset=\"" .
185
  get_option('blog_charset') . "\n";