From: Steve Sutton Date: Tue, 10 Oct 2017 19:01:46 +0000 (-0400) Subject: Update admin member list and how the front check for valid member for 404 X-Git-Tag: v2.10.14^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f5ef8f8f2dac524745cf4c427940f5ed50824109;p=WP-Plugins%2Fglm-member-db.git Update admin member list and how the front check for valid member for 404 For the 404 check also check the member.access for a display member type. For the admin side need to add the name and value to the input fields for the filters archived pending and featured for them to get passed to the next page buttons. --- diff --git a/index.php b/index.php index d9bd04db..651ab869 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.10.13 + * Version: 2.10.14 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.13 + * @version 2.10.14 */ // Check that we're being called by WordPress. @@ -44,7 +44,7 @@ if (!defined('ABSPATH')) { * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.13'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.14'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.32'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a41c5141..60f7f964 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -157,7 +157,11 @@ if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, $this->config['settings']['canonical_ ".GLM_MEMBERS_PLUGIN_DB_PREFIX."member_info I WHERE T.member_slug = '".$GLOBALS['glmDetailSlug']."' AND T.id = I.member - AND I.status = " . $this->config['status_numb']['Active'], + AND I.status = " . $this->config['status_numb']['Active'] . " + AND T.access IN ( + ".$this->config['access_numb']['NoAccess'].", + ".$this->config['access_numb']['Moderated'].", + ".$this->config['access_numb']['Full'].")", ARRAY_A ); if ( ! $memberData ) { diff --git a/views/admin/members/list.html b/views/admin/members/list.html index 10ea1bb7..e8b9209e 100644 --- a/views/admin/members/list.html +++ b/views/admin/members/list.html @@ -35,9 +35,9 @@
- Show Archived: - Featured Only: - Pending Only: + Show Archived: + Featured Only: + Pending Only:
{apply_filters('glm-member-db-custom-filter-search', '')}