From: Anthony Talarico Date: Thu, 25 Feb 2016 20:12:13 +0000 (-0500) Subject: changed form action url X-Git-Tag: v1.0.0^2~20 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=06352aac4410b9029df605cdfb9760c47da05cc2;p=WP-Plugins%2Fglm-member-db-social.git changed form action url --- diff --git a/models/admin/member/social.php b/models/admin/member/social.php index ef9be9f..23ae86f 100644 --- a/models/admin/member/social.php +++ b/models/admin/member/social.php @@ -182,10 +182,12 @@ class GlmMembersAdmin_member_social extends GlmDataSocial ); // If there's an action option - if (isset($_REQUEST['option'])) { - $option = trim(filter_var($_REQUEST['option'],FILTER_SANITIZE_STRING)); - } - +// if (isset($_REQUEST['option'])) { +// $option = trim(filter_var($_REQUEST['option'],FILTER_SANITIZE_STRING)); +// } +// + $option = $_REQUEST['option']; + echo $option; $socialData = $this->editEntry($memberID); if (!$socialData) { @@ -223,7 +225,7 @@ class GlmMembersAdmin_member_social extends GlmDataSocial ); } - + // if (isset($_REQUEST['option']) && $_REQUEST['option'] == 'submit') { if ($option == 'submit') { @@ -232,7 +234,7 @@ class GlmMembersAdmin_member_social extends GlmDataSocial if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { glmMembersAdmin::addNotice("  Social Update: $memberID", 'Process'); } - +echo $option; // If update was successful then use editEntry() to setup for the edit again. if ($socialData) { @@ -240,11 +242,11 @@ class GlmMembersAdmin_member_social extends GlmDataSocial $socialUpdated = true; // Also update all member info records with any possible name change - $sql = " - UPDATE ".GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX."socialURL - SET facebook_url = 'www.testval.com' - WHERE member_id = 1 - ;"; + $sql = " + INSERT INTO ".GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX."socialURL + (member_id,facebook_url) + VALUES (1, 'www.failedcheck.com') + ;"; // $sql = " // UPDATE ".GLM_MEMBERS_SOCIAL_PLUGIN_DB_PREFIX."socialURL // SET facebook_url = '".addslashes($socialData['fieldData']['name'])."' diff --git a/views/admin/member/social.html b/views/admin/member/social.html index df3628d..8afd3bf 100644 --- a/views/admin/member/social.html +++ b/views/admin/member/social.html @@ -8,8 +8,8 @@

Social Model

{$displayData}

Click me to see more! -
- + +
Update