Update admin member list and how the front check for valid member for 404
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Oct 2017 19:01:46 +0000 (15:01 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Oct 2017 19:01:46 +0000 (15:01 -0400)
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.

index.php
setup/frontHooks.php
views/admin/members/list.html

index d9bd04d..651ab86 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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
index a41c514..60f7f96 100644 (file)
@@ -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 ) {
index 10ea1bb..e8b9209 100644 (file)
@@ -35,9 +35,9 @@
         </div>
 
         <div class="glm-row">
-            <b>Show Archived: </b><input type="checkbox" id="filterArchived" class="listFilter"{if $filterArchived} checked{/if} style="margin-right: 1em;">
-                <b>Featured Only: </b><input type="checkbox" id="filterFeatured" class="listFilter"{if $filterFeatured} checked{/if} style="margin-right: 1em;">
-                <b>Pending Only: </b><input type="checkbox" id="filterPending" class="listFilter"{if $filterPending} checked{/if} style="margin-right: 1em;">
+            <b>Show Archived: </b><input type="checkbox" name="filterArchived" value="true" id="filterArchived" class="listFilter"{if $filterArchived} checked{/if} style="margin-right: 1em;">
+                <b>Featured Only: </b><input type="checkbox" name="filterFeatured" value="true" id="filterFeatured" class="listFilter"{if $filterFeatured} checked{/if} style="margin-right: 1em;">
+                <b>Pending Only: </b><input type="checkbox" name="filterPending" value="true" id="filterPending" class="listFilter"{if $filterPending} checked{/if} style="margin-right: 1em;">
         </div>
 
        {apply_filters('glm-member-db-custom-filter-search', '')}