Patch to store field label in remote database
-
Needed when reading remote database with custom software/script to identify which value corresponds to which form field
See the patch below
Cannot attach file, so pasting plain text hereFrom: 0rc <dbat@softserveinc.com> Date: Fri, 5 Sep 2014 12:20:08 +0300 Subject: [PATCH] Additional field to store field label in remote database Needed when reading remote database with custom software/script to identify which value corresponds to which form field --- README.txt | 2 ++ gds_encryption.php | 22 +++++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.txt b/README.txt index d1f22d0..93c8f23 100644 --- a/README.txt +++ b/README.txt @@ -106,6 +106,8 @@ to 1. Upload the <code>gds_encryption</code> folder to the <code>/wp-content/plugins/</code> directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. You can configure the Encryption Settings in <code>Settings</code> -> <code>Graviteate Encryption</code> +4. Create remote database table example: +create table optout_form_data ( id int not null AUTO_INCREMENT, parent_id int, groupname varchar(100), value varchar(1000), field_name varchar(100), PRIMARY KEY (id) ); == Screenshots == diff --git a/gds_encryption.php b/gds_encryption.php index 2a06fe1..3fbcb37 100644 --- a/gds_encryption.php +++ b/gds_encryption.php @@ -176,7 +176,8 @@ class GDS_Encryption_Class 'remote_database_table_id' => 'id', 'remote_database_table_parent_id' => 'parent_id', 'remote_database_table_value' => 'value', - 'remote_database_table_group' => 'group'); + 'remote_database_table_group' => 'group', + 'remote_database_table_fieldlabel' => 'fieldname'); if(!$mcrypt_available) { @@ -250,6 +251,7 @@ class GDS_Encryption_Class document.getElementById('remote_database_table_value_container').style.display = ''; document.getElementById('remote_database_table_parent_id_container').style.display = ''; document.getElementById('remote_database_table_group_container').style.display = ''; + document.getElementById('remote_database_table_fieldlabel_container').style.display = ''; document.getElementById('submit_test').style.display = ''; } else @@ -265,6 +267,7 @@ class GDS_Encryption_Class
The topic ‘Patch to store field label in remote database’ is closed to new replies.