From: Chuck Scott Date: Fri, 6 Nov 2015 20:40:12 +0000 (-0500) Subject: Interim commit so Steve can review X-Git-Tag: v1.0.43^2^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=10e239f521bd402c867b8aa90ec3de165d376715;p=WP-Plugins%2Fglm-member-db.git Interim commit so Steve can review --- diff --git a/classes/glmPluginSupport.php b/classes/glmPluginSupport.php index 5bb4a542..93b18a6e 100644 --- a/classes/glmPluginSupport.php +++ b/classes/glmPluginSupport.php @@ -37,7 +37,8 @@ class GlmPluginSupport public $dbVersions = array( '0.1' => array('version' => '0.1', 'tables' => 26), '1.0.28' => array('version' => '1.0.28', 'tables' => 26), - '1.0.30' => array('version' => '1.0.30', 'tables' => 26) + '1.0.30' => array('version' => '1.0.30', 'tables' => 26), + '1.0.43' => array('version' => '1.0.43', 'tables' => 27) ); /* diff --git a/config/plugin.ini b/config/plugin.ini index be8d6682..15c6d2db 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -2,8 +2,6 @@ ; Main Configuration File ; Gaslight Media Members Database Plugin ; -; Custom configurations for development and developer configuration at bottom of file. -; ; Image sizes array is outsize of the sections below and is added to $config after the section is selected. ; Any sizes added to this section will used by the Data Abstract to generate that size when images are uploaded. @@ -126,6 +124,17 @@ contact_type_numb['None'] = 0 contact_type_numb['Personal'] = 10 contact_type_numb['Role'] = 20 +; +; Contact Permissions +; +permission_type[0] = 'None' +permission_type[50] = 'Member All' +permission_type[99] = 'All' + +permission_type_numb['None'] = 0 +permission_type_numb['MemberAll'] = 50 +permission_type_numb['All'] = 99 + ; ; Invoice Delivery ; diff --git a/controllers/admin.php b/controllers/admin.php index d140cac5..eefa6eb4 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -53,13 +53,15 @@ $GLOBALS['glmMembersAdminValidActions'] = array( 'cities', 'regions', 'accommodationTypes', - 'amenities', + 'amenities' ), 'management' => array( 'index', // General Options - 'terms', // Terms and Phrases + 'terms', 'development', - 'import' // Import data + 'import', + 'addons', + 'hooks' ), 'shortcodes' => array( 'index' @@ -235,6 +237,8 @@ class glmMembersAdmin extends GlmPluginSupport ) ); + // Create hook for add-ons to create menus + do_action('glm-member-db-add-menu'); } @@ -439,8 +443,14 @@ class glmMembersAdmin extends GlmPluginSupport 'glmMembersAdminMenuShortcodes' )); + + + } + + + /** * Add Admin Dashboard Widget * @@ -677,7 +687,7 @@ class glmMembersAdmin extends GlmPluginSupport ! in_array($action, $GLOBALS['glmMembersAdminValidActions'][$menuItem])) { if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { - $this->addNotice('Error in Admin Controller: Requested Menu Item is invalid!', 'Alert'); + $this->addNotice('Error in Admin Controller: Requested Menu Item is invalid! - '.$menuItem, 'Alert'); } $menuItem = 'error'; @@ -693,6 +703,13 @@ class glmMembersAdmin extends GlmPluginSupport '/' . $action . '.php'; $className = 'GlmMembersAdmin_' . $menuItem . '_' . $action; + // Create hook to add page tabs by add-on plugins + $addOnTabs = array(); + $addOnTabs = apply_filters( + 'glm-member-db-add-tab-for-'.$menuItem, + $addOnTabs + ); + // If model file doesn't exist - we have an error if (!file_exists($modelName)) { @@ -709,7 +726,7 @@ class glmMembersAdmin extends GlmPluginSupport } else { // Load the model file - require_once ($modelName); + require_once ($modelName); // check for an invalid model class name if (!class_exists($className)) { @@ -800,6 +817,13 @@ class glmMembersAdmin extends GlmPluginSupport $view = 'admin/error/index.html'; } + // Check for modified settings to save in conf + if (isset($results['settings'])) { + while (list($key, $val) = each($results['settings'])) { + $this->config['settings'][$key] = $val; + } + } + /* * Merge data returned from the model with the selected view */ @@ -808,6 +832,7 @@ class glmMembersAdmin extends GlmPluginSupport $smarty = new smartyTemplateSupport(); // Add standard template parameters + $smarty->templateAssign ( 'addOnTabs', $addOnTabs); $smarty->templateAssign ( 'adminDebug', GLM_MEMBERS_PLUGIN_ADMIN_DEBUG); $smarty->templateAssign ( 'adminURL', GLM_MEMBERS_PLUGIN_ADMIN_URL); $smarty->templateAssign ( 'baseURL', GLM_MEMBERS_PLUGIN_BASE_URL); diff --git a/css/admin.css b/css/admin.css index 539820ba..08fc3bfa 100644 --- a/css/admin.css +++ b/css/admin.css @@ -139,6 +139,12 @@ padding: 5px; } +/* Misc Admin */ +.glm-code { + font-size: .8em; + font-family: "Courier New", Courier, monospace; + white-space: pre; +} /* Overlay dialog box */ .glm-dialog-box { diff --git a/glm-member-db.php b/glm-member-db.php index 1f402a31..6387bb53 100644 --- a/glm-member-db.php +++ b/glm-member-db.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.0.39 + * Version: 1.0.41 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.39 + * @version 1.0.41 */ /* @@ -33,8 +33,8 @@ * version when there's a change in the database!! Use the * version nunmber of that release for the DB version. */ -define('GLM_MEMBERS_PLUGIN_VERSION', '1.0.39'); -define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.0.30'); +define('GLM_MEMBERS_PLUGIN_VERSION', '1.0.43'); +define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.0.43'); /* * Copyright 2014 Charles Scott (email : cscott@gaslightmedia.com) @@ -201,9 +201,13 @@ require_once('config.php'); // Try to set the DB version option to false (new plugin) - If it's already set this won't do anything. add_option('glmMembersDatabaseDbVersion', false); +// Create hook for registering add-on plugins and their features +$config['addOns'] = array(); +$config['addOns'] = apply_filters('glm-member-db-register-addon', $config['addOns']); + /* * - * Activate, Deactivate, Uninstall hooks + * Activate and Deactivate hooks * */ @@ -226,8 +230,6 @@ function glmMembersPluginDeactivate () } register_deactivation_hook(__FILE__, 'glmMembersPluginDeactivate'); -// Uninstall - Not using. Using "uninstall.php" in the root directory of this plugin. - /* * * Load any other common files needed diff --git a/media-DELETE/Nothing_under_the_directories_here_should_be_committed.txt b/media-DELETE/Nothing_under_the_directories_here_should_be_committed.txt new file mode 100644 index 00000000..12ca4a6a --- /dev/null +++ b/media-DELETE/Nothing_under_the_directories_here_should_be_committed.txt @@ -0,0 +1 @@ +Nothing in the directories found here should be committed, only the directories (i.e. "images") \ No newline at end of file diff --git a/media-DELETE/images/large/antenna_1441214689.jpg b/media-DELETE/images/large/antenna_1441214689.jpg new file mode 100644 index 00000000..40411340 Binary files /dev/null and b/media-DELETE/images/large/antenna_1441214689.jpg differ diff --git a/media-DELETE/images/large/logo_1436884186.png b/media-DELETE/images/large/logo_1436884186.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1436884186.png differ diff --git a/media-DELETE/images/large/logo_1436884214.png b/media-DELETE/images/large/logo_1436884214.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1436884214.png differ diff --git a/media-DELETE/images/large/logo_1436884289.png b/media-DELETE/images/large/logo_1436884289.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1436884289.png differ diff --git a/media-DELETE/images/large/logo_1440437772.png b/media-DELETE/images/large/logo_1440437772.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1440437772.png differ diff --git a/media-DELETE/images/large/logo_1440438180.png b/media-DELETE/images/large/logo_1440438180.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1440438180.png differ diff --git a/media-DELETE/images/large/logo_1440438270.png b/media-DELETE/images/large/logo_1440438270.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/large/logo_1440438270.png differ diff --git a/media-DELETE/images/large/member_info_1-antenna_1439320523.jpg b/media-DELETE/images/large/member_info_1-antenna_1439320523.jpg new file mode 100644 index 00000000..40411340 Binary files /dev/null and b/media-DELETE/images/large/member_info_1-antenna_1439320523.jpg differ diff --git a/media-DELETE/images/large/member_info_1-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_1-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_1-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_1-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_1-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_1-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_1-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_1-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_1-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_10-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_10-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_10-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_10-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_10-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_10-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_10-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_10-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_10-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_11-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_11-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_11-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_11-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_11-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_11-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_11-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_11-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_11-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_12-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_12-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_12-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_12-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_12-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_12-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_12-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_12-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_12-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_13-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_13-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_13-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_13-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_13-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_13-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_13-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_13-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_13-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_14-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_14-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_14-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_14-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_14-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_14-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_14-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_14-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_14-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_15-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_15-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_15-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_15-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_15-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_15-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_15-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_15-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_15-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_16-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_16-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_16-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_16-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_16-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_16-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_16-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_16-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_16-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_8-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_8-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_8-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_8-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_8-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_8-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_8-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_8-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_8-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/large/member_info_9-depot_restaurant_1436883825.jpeg b/media-DELETE/images/large/member_info_9-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/large/member_info_9-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/large/member_info_9-ferry_coupon_1436883826.jpg b/media-DELETE/images/large/member_info_9-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b3321389 Binary files /dev/null and b/media-DELETE/images/large/member_info_9-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/large/member_info_9-fouroclock_1436883824.jpg b/media-DELETE/images/large/member_info_9-fouroclock_1436883824.jpg new file mode 100644 index 00000000..0c2daefa Binary files /dev/null and b/media-DELETE/images/large/member_info_9-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/antenna_1441214689.jpg b/media-DELETE/images/medium/antenna_1441214689.jpg new file mode 100644 index 00000000..1299bd08 Binary files /dev/null and b/media-DELETE/images/medium/antenna_1441214689.jpg differ diff --git a/media-DELETE/images/medium/logo_1436884186.png b/media-DELETE/images/medium/logo_1436884186.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1436884186.png differ diff --git a/media-DELETE/images/medium/logo_1436884214.png b/media-DELETE/images/medium/logo_1436884214.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1436884214.png differ diff --git a/media-DELETE/images/medium/logo_1436884289.png b/media-DELETE/images/medium/logo_1436884289.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1436884289.png differ diff --git a/media-DELETE/images/medium/logo_1440437772.png b/media-DELETE/images/medium/logo_1440437772.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1440437772.png differ diff --git a/media-DELETE/images/medium/logo_1440438180.png b/media-DELETE/images/medium/logo_1440438180.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1440438180.png differ diff --git a/media-DELETE/images/medium/logo_1440438270.png b/media-DELETE/images/medium/logo_1440438270.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/medium/logo_1440438270.png differ diff --git a/media-DELETE/images/medium/member_info_1-antenna_1439320523.jpg b/media-DELETE/images/medium/member_info_1-antenna_1439320523.jpg new file mode 100644 index 00000000..1299bd08 Binary files /dev/null and b/media-DELETE/images/medium/member_info_1-antenna_1439320523.jpg differ diff --git a/media-DELETE/images/medium/member_info_1-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_1-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_1-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_1-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_1-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_1-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_1-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_1-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_1-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_10-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_10-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_10-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_10-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_10-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_10-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_10-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_10-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_10-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_11-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_11-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_11-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_11-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_11-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_11-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_11-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_11-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_11-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_12-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_12-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_12-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_12-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_12-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_12-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_12-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_12-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_12-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_13-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_13-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_13-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_13-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_13-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_13-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_13-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_13-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_13-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_14-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_14-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_14-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_14-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_14-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_14-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_14-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_14-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_14-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_15-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_15-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_15-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_15-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_15-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_15-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_15-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_15-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_15-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_16-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_16-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_16-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_16-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_16-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_16-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_16-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_16-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_16-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_8-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_8-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_8-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_8-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_8-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_8-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_8-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_8-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_8-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/medium/member_info_9-depot_restaurant_1436883825.jpeg b/media-DELETE/images/medium/member_info_9-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/medium/member_info_9-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/medium/member_info_9-ferry_coupon_1436883826.jpg b/media-DELETE/images/medium/member_info_9-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..88f9daee Binary files /dev/null and b/media-DELETE/images/medium/member_info_9-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/medium/member_info_9-fouroclock_1436883824.jpg b/media-DELETE/images/medium/member_info_9-fouroclock_1436883824.jpg new file mode 100644 index 00000000..86ed9e5a Binary files /dev/null and b/media-DELETE/images/medium/member_info_9-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/antenna_1441214689.jpg b/media-DELETE/images/original/antenna_1441214689.jpg new file mode 100644 index 00000000..40411340 Binary files /dev/null and b/media-DELETE/images/original/antenna_1441214689.jpg differ diff --git a/media-DELETE/images/original/logo_1436884186.png b/media-DELETE/images/original/logo_1436884186.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/original/logo_1436884186.png differ diff --git a/media-DELETE/images/original/member_info_1-antenna_1439320523.jpg b/media-DELETE/images/original/member_info_1-antenna_1439320523.jpg new file mode 100644 index 00000000..40411340 Binary files /dev/null and b/media-DELETE/images/original/member_info_1-antenna_1439320523.jpg differ diff --git a/media-DELETE/images/original/member_info_1-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_1-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_1-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_1-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_1-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_1-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_1-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_1-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_1-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_10-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_10-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_10-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_10-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_10-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_10-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_10-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_10-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_10-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_11-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_11-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_11-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_11-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_11-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_11-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_11-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_11-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_11-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_12-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_12-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_12-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_12-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_12-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_12-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_12-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_12-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_12-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_13-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_13-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_13-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_13-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_13-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_13-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_13-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_13-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_13-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_14-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_14-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_14-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_14-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_14-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_14-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_14-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_14-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_14-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_15-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_15-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_15-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_15-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_15-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_15-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_15-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_15-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_15-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_16-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_16-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_16-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_16-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_16-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_16-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_16-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_16-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_16-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_8-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_8-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_8-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_8-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_8-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_8-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_8-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_8-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_8-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/member_info_9-depot_restaurant_1436883825.jpeg b/media-DELETE/images/original/member_info_9-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..643b5078 Binary files /dev/null and b/media-DELETE/images/original/member_info_9-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/original/member_info_9-ferry_coupon_1436883826.jpg b/media-DELETE/images/original/member_info_9-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..beb6b55e Binary files /dev/null and b/media-DELETE/images/original/member_info_9-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/original/member_info_9-fouroclock_1436883824.jpg b/media-DELETE/images/original/member_info_9-fouroclock_1436883824.jpg new file mode 100644 index 00000000..96559c4c Binary files /dev/null and b/media-DELETE/images/original/member_info_9-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/original/r158_1441214286.jpg b/media-DELETE/images/original/r158_1441214286.jpg new file mode 100644 index 00000000..26874059 Binary files /dev/null and b/media-DELETE/images/original/r158_1441214286.jpg differ diff --git a/media-DELETE/images/small/antenna_1441214689.jpg b/media-DELETE/images/small/antenna_1441214689.jpg new file mode 100644 index 00000000..eebf5a4c Binary files /dev/null and b/media-DELETE/images/small/antenna_1441214689.jpg differ diff --git a/media-DELETE/images/small/logo_1436884186.png b/media-DELETE/images/small/logo_1436884186.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1436884186.png differ diff --git a/media-DELETE/images/small/logo_1436884214.png b/media-DELETE/images/small/logo_1436884214.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1436884214.png differ diff --git a/media-DELETE/images/small/logo_1436884289.png b/media-DELETE/images/small/logo_1436884289.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1436884289.png differ diff --git a/media-DELETE/images/small/logo_1440437772.png b/media-DELETE/images/small/logo_1440437772.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1440437772.png differ diff --git a/media-DELETE/images/small/logo_1440438180.png b/media-DELETE/images/small/logo_1440438180.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1440438180.png differ diff --git a/media-DELETE/images/small/logo_1440438270.png b/media-DELETE/images/small/logo_1440438270.png new file mode 100644 index 00000000..df8eaf31 Binary files /dev/null and b/media-DELETE/images/small/logo_1440438270.png differ diff --git a/media-DELETE/images/small/member_info_1-antenna_1439320523.jpg b/media-DELETE/images/small/member_info_1-antenna_1439320523.jpg new file mode 100644 index 00000000..eebf5a4c Binary files /dev/null and b/media-DELETE/images/small/member_info_1-antenna_1439320523.jpg differ diff --git a/media-DELETE/images/small/member_info_1-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_1-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_1-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_1-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_1-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_1-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_1-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_1-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_1-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_10-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_10-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_10-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_10-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_10-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_10-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_10-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_10-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_10-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_11-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_11-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_11-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_11-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_11-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_11-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_11-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_11-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_11-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_12-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_12-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_12-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_12-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_12-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_12-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_12-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_12-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_12-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_13-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_13-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_13-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_13-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_13-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_13-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_13-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_13-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_13-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_14-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_14-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_14-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_14-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_14-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_14-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_14-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_14-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_14-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_15-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_15-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_15-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_15-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_15-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_15-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_15-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_15-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_15-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_16-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_16-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_16-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_16-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_16-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_16-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_16-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_16-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_16-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_8-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_8-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_8-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_8-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_8-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_8-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_8-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_8-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_8-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/small/member_info_9-depot_restaurant_1436883825.jpeg b/media-DELETE/images/small/member_info_9-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..f899d369 Binary files /dev/null and b/media-DELETE/images/small/member_info_9-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/small/member_info_9-ferry_coupon_1436883826.jpg b/media-DELETE/images/small/member_info_9-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..b086d48a Binary files /dev/null and b/media-DELETE/images/small/member_info_9-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/small/member_info_9-fouroclock_1436883824.jpg b/media-DELETE/images/small/member_info_9-fouroclock_1436883824.jpg new file mode 100644 index 00000000..c0810743 Binary files /dev/null and b/media-DELETE/images/small/member_info_9-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/antenna_1441214689.jpg b/media-DELETE/images/thumb/antenna_1441214689.jpg new file mode 100644 index 00000000..4cf0f846 Binary files /dev/null and b/media-DELETE/images/thumb/antenna_1441214689.jpg differ diff --git a/media-DELETE/images/thumb/logo_1436884186.png b/media-DELETE/images/thumb/logo_1436884186.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1436884186.png differ diff --git a/media-DELETE/images/thumb/logo_1436884214.png b/media-DELETE/images/thumb/logo_1436884214.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1436884214.png differ diff --git a/media-DELETE/images/thumb/logo_1436884289.png b/media-DELETE/images/thumb/logo_1436884289.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1436884289.png differ diff --git a/media-DELETE/images/thumb/logo_1440437772.png b/media-DELETE/images/thumb/logo_1440437772.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1440437772.png differ diff --git a/media-DELETE/images/thumb/logo_1440438180.png b/media-DELETE/images/thumb/logo_1440438180.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1440438180.png differ diff --git a/media-DELETE/images/thumb/logo_1440438270.png b/media-DELETE/images/thumb/logo_1440438270.png new file mode 100644 index 00000000..514ce5cb Binary files /dev/null and b/media-DELETE/images/thumb/logo_1440438270.png differ diff --git a/media-DELETE/images/thumb/member_info_1-antenna_1439320523.jpg b/media-DELETE/images/thumb/member_info_1-antenna_1439320523.jpg new file mode 100644 index 00000000..4cf0f846 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_1-antenna_1439320523.jpg differ diff --git a/media-DELETE/images/thumb/member_info_1-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_1-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_1-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_1-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_1-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_1-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_1-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_1-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_1-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_10-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_10-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_10-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_10-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_10-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_10-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_10-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_10-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_10-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_11-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_11-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_11-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_11-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_11-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_11-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_11-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_11-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_11-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_12-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_12-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_12-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_12-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_12-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_12-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_12-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_12-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_12-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_13-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_13-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_13-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_13-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_13-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_13-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_13-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_13-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_13-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_14-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_14-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_14-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_14-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_14-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_14-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_14-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_14-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_14-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_15-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_15-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_15-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_15-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_15-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_15-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_15-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_15-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_15-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_16-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_16-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_16-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_16-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_16-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_16-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_16-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_16-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_16-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_8-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_8-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_8-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_8-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_8-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_8-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_8-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_8-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_8-fouroclock_1436883824.jpg differ diff --git a/media-DELETE/images/thumb/member_info_9-depot_restaurant_1436883825.jpeg b/media-DELETE/images/thumb/member_info_9-depot_restaurant_1436883825.jpeg new file mode 100644 index 00000000..691497e3 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_9-depot_restaurant_1436883825.jpeg differ diff --git a/media-DELETE/images/thumb/member_info_9-ferry_coupon_1436883826.jpg b/media-DELETE/images/thumb/member_info_9-ferry_coupon_1436883826.jpg new file mode 100644 index 00000000..acf06518 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_9-ferry_coupon_1436883826.jpg differ diff --git a/media-DELETE/images/thumb/member_info_9-fouroclock_1436883824.jpg b/media-DELETE/images/thumb/member_info_9-fouroclock_1436883824.jpg new file mode 100644 index 00000000..5d267543 Binary files /dev/null and b/media-DELETE/images/thumb/member_info_9-fouroclock_1436883824.jpg differ diff --git a/misc/databaseScripts/create_database_V1.0.43.sql b/misc/databaseScripts/create_database_V1.0.43.sql new file mode 100644 index 00000000..61fd9694 --- /dev/null +++ b/misc/databaseScripts/create_database_V1.0.43.sql @@ -0,0 +1,805 @@ +-- Gaslight Media Members Database +-- File Created: 12/09/14 15:27:15 +-- Database Version: 1.0.43 +-- Database Creation Script +-- +-- To permit each query below to be executed separately, +-- all queries must be separated by a line with four dashes + +-- Accommodation Types +CREATE TABLE {prefix}accommodation_types ( + id INT NOT NULL AUTO_INCREMENT, + facility_type INT NULL, -- See "Facility Types" in config/plugin.ini + name TINYTEXT NULL, -- Name of accommodation type + descr TEXT NULL, -- Description of accommodation type + short_descr TINYTEXT NULL, -- Short description of accommodation type + PRIMARY KEY (id), + INDEX(facility_type), + INDEX(name(20)) +); + +---- + +-- Accommodations +CREATE TABLE {prefix}accommodations ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- Accommodation record is active flag + name TINYTEXT NULL, -- Name of the accommodation record + accommodation_type INT NULL, -- Pointer to Accommodation type in accommodation_types table + descr TEXT NULL, -- Description of accommodation + short_descr TINYTEXT NULL, -- Short description of accommodation + url TINYTEXT NULL, -- URL for info regarding this accommodation + notes TEXT NULL, -- Notes regarding this accommodation - Not displayed on front-end + create_time TIMESTAMP NULL, -- Date/time this accommondation was created + modify_time TIMESTAMP NULL, -- Date/time this accommodation was last updated + quant INT NULL, -- Quantity of this accommodation + reservation_url TINYTEXT NULL, -- URL to use for making reservaionn + reservation_id TINYTEXT NULL, -- ID to use as a reference to this accommodation when making reservations + year_round TINYINT(1) NULL, -- Accommodation is available year-round + ref_type INT NULL, -- Type of entity this accommodation is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this accommodation is associated with + PRIMARY KEY (id), + INDEX(accommodation_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Accounts +CREATE TABLE {prefix}accounts ( + id INT NOT NULL AUTO_INCREMENT, + member INT NULL, + payment_type INT NULL, + invoice_delivery INT NULL, + PRIMARY KEY (id), + INDEX(member) +); + +---- + +-- Activities +CREATE TABLE {prefix}activities ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- Activity is active flag + activity_type INT NULL, -- ***** NEED TO ADD ACTIVITY_TYPES TABLE AND SUPPORT FOR THAT ***** + name TINYTEXT NULL, -- Activity name + descr TEXT NULL, -- Description of activity + short_descr TINYTEXT NULL, -- Shot description of activity + phone TINYTEXT NULL, -- Phone number to contact someone regarding this activity + url TINYTEXT NULL, -- URL for info regarding this activity + notes TEXT NULL, -- Notes regarding this activity - Not displayed on front-end + create_time TIMESTAMP NULL, -- Date/time this activity was created + modify_time TIMESTAMP NULL, -- Date/time this activity was last updated + ref_type INT NULL, -- Type of entity this activity is associated with + ref_dest INT NULL, -- Pointer to the specific entity of type ref_type + PRIMARY KEY (id), + INDEX(activity_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Amenities +CREATE TABLE {prefix}amenities ( + id INT NOT NULL AUTO_INCREMENT, + active TINYINT(1) NULL, -- Amenity is active flag + name TINYTEXT NULL, -- Name of amenity + descr TEXT NULL, -- Description of amenity + short_descr TINYTEXT NULL, -- Short description of amenity + ref_type INT NULL, -- Type of entity these amenitites are associated with - see plugin.ini ref_type tables + uses_value BOOLEAN NULL, -- Flag indicating whether the amenity requires a quantity number + PRIMARY KEY (id), + INDEX(name(20)) +); + +---- + +-- Amenity Reference - Links a specific amenity to a specific entity of type ref_type +CREATE TABLE {prefix}amenity_ref ( + id INT NOT NULL AUTO_INCREMENT, + amenity INT NULL, -- Pointer to amenity in amenities table + ref_type INT NULL, -- Copy of ref_type from matching ameities table entry - to simplify searches + ref_dest INT NULL, -- Pointer to the specific entity of type ref_type + amenity_value TINYTEXT NULL, -- Quanity if amenity uses values + PRIMARY KEY (id), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Member Cateogries - used with member information records +CREATE TABLE {prefix}categories ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of this category + descr TEXT NULL, -- Description of this category + short_descr TINYTEXT NULL, -- Short description of this category + parent INT NULL, -- Pointer to parent category in this table - if there is one + PRIMARY KEY (id) +); + +---- + +-- Mapping of categories to speific member information records +CREATE TABLE {prefix}category_member_info ( + id INT NOT NULL AUTO_INCREMENT, + category INT NULL, -- Pointer to category in categories table + member_info INT NULL, -- Pointer to member infomation record + PRIMARY KEY (id), + CONSTRAINT {prefix}categories_fk_1 + FOREIGN KEY (category) + REFERENCES {prefix}categories (id) + ON DELETE CASCADE, + INDEX(category), + INDEX(member_info) +); + +---- + +-- Cities +CREATE TABLE {prefix}cities ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of city + PRIMARY KEY (id) +); + +---- + +-- Contacts - used by various entities +CREATE TABLE {prefix}contacts ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- Contact is active flag + fname TINYTEXT NULL, -- First name of contact + lname TINYTEXT NULL, -- Last name of contact + contact_type INT NULL, -- Contact type - see contact_type table (individual, role, ...) + org TINYTEXT NULL, -- Organization name + addr1 TINYTEXT NULL, -- Address line 1 - Address is for contact, not necessarily for organization + addr2 TINYTEXT NULL, -- Address line 2 + city INT NULL, -- Pointer to city in cities table + state TINYTEXT NULL, -- Two character state code - matches states.ini entries + country TINYTEXT NULL, -- Two character country code - matches countries.ini entries + zip TINYTEXT NULL, -- ZIP/Postal Code + lat FLOAT NULL, -- Latitude of contact location + lon FLOAT NULL, -- Longitude of contact location + url TINYTEXT NULL, -- URL to information regarding this contact + office_phone TINYTEXT NULL, -- Office phone number + home_phone TINYTEXT NULL, -- Home phone number - or after-hours phone number + mobile_phone TINYTEXT NULL, -- Mobile phone number + alt_phone TINYTEXT NULL, -- An alternate phone number + fax TINYTEXT NULL, -- FAX number (do people still use these?) + email TINYTEXT NULL, -- E-Mail address + alt_email TINYTEXT NULL, -- Alternate E-Mail address - Also used to log-in + username TINYTEXT NULL, -- Optional username to use for login + password TINYTEXT NULL, -- Encrypted password + notes TEXT NULL, -- Notes - Not displayed on front-end + create_time TIMESTAMP NULL, -- Create date/time + modify_time TIMESTAMP NULL, -- Last modified date/time + ref_type INT NULL, -- Type of entity this contact is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this contact is associated with + PRIMARY KEY (id), + INDEX(fname(20)), + INDEX(lname(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(email(20)) +); + +---- + +-- Mapping of permissions to specific contacts +CREATE TABLE {prefix}contact_permissions ( + id INT NOT NULL AUTO_INCREMENT, + permission INT NULL, -- Index of permission - see permissions table in plugin.ini + contact INT NULL, -- Pointer to specific contact + PRIMARY KEY (id), + CONSTRAINT {prefix}contact_fk_1 + FOREIGN KEY (contact) + REFERENCES {prefix}contacts (id) + ON DELETE CASCADE, + INDEX(permission), + INDEX(contact) +); + + +---- + +-- Facilities - Facilities are separate functional units of a member, either physically or operationally +-- For example, separate facilities could be individual properties (hotels, motels) or could be operationally +-- separate hotel and restaurant at the same location. A facility is an entity under a member "location". +CREATE TABLE {prefix}facilities ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- Facility is active flag + facility_type INT NULL, -- Facility type - see plugin.ini facility type + location INT NULL, -- Pointer to one of the member's locations - see locations table + name TINYTEXT NULL, -- Name of this facility + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short description + addr1 TINYTEXT NULL, -- Address line 1 + addr2 TINYTEXT NULL, -- Address line 2 + city INT NULL, -- Pointer to city in cities table + state TINYTEXT NULL, -- Two character state code - matches states.ini entries + country TINYTEXT NULL, -- Two character country code - matches countries.ini entries + zip TINYTEXT NULL, -- ZIP/Postal code + lat FLOAT NULL, -- Latitude of facility + lon FLOAT NULL, -- Longitude of facility + phone TINYTEXT NULL, -- Primary phone number + toll_free TINYTEXT NULL, -- Toll Free phone number + url TINYTEXT NULL, -- URL for information specifically regarding this facility + logo TINYTEXT NULL, -- Logo + notes TEXT NULL, -- Notes - Not displayed on front-end + create_time TIMESTAMP NULL, -- Create date/time + modify_time TIMESTAMP NULL, -- Last modified date/time + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon) +); + +---- + +-- Donwloadable Files - files are stored under /wp-content/uploads/glm-member-db/files/ +CREATE TABLE {prefix}files ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of this file + file_name TINYTEXT NULL, -- Physical file name for this file + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short descroption + size INT NULL, -- Download size of this file + pending BOOLEAN NULL, -- File is pending review flag + create_date DATE NULL, -- Date file was uploaded + ref_type INT NULL, -- Type of entity this file is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this file is associated with + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(file_name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Detail on golf courses +CREATE TABLE {prefix}golf ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- This golf course is active flag + name TINYTEXT NULL, -- Name of Golf course + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short Description + rating TINYTEXT NULL, -- Rating + par TINYTEXT NULL, -- Par + yardage TINYTEXT NULL, -- Total yardage + slope TINYTEXT NULL, -- Slope rating + walking TINYINT(1) NULL, -- Walking course + holes INT NULL, -- Number of holes + reservation_url TINYTEXT NULL, -- URL for making reservations for this course + ref_type INT NULL, -- Type of entity this golf course is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this golf course is associated with + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Images - Images are stored under /wp-content/uploads/glm-member-db/images/{size}/ +CREATE TABLE {prefix}images ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Original name of the image - might be URL if copied via HTTP + status TINYINT(1) NULL, -- Display/Use status - See plugin.ini status table + file_name TINYTEXT NULL, -- Stored file name for the image + descr TEXT NULL, -- Description + caption TINYTEXT NULL, -- Caption for the image + position INT NULL, -- Numeric position for sequence of display + ref_type INT NULL, -- Type of entity this image is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this image is associated with + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(file_name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- Member locations - Locations are physically separate campuses where facilities exist +CREATE TABLE {prefix}locations ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- This location is active flag + member INT NULL, -- Pointer to main member record + member_info INT NULL, -- Pointer to associated member info record + name TINYTEXT NULL, -- Name of location + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short Description + addr1 TINYTEXT NULL, -- Address line 1 - Main address for this location + addr2 TINYTEXT NULL, -- Address line 2 + city INT NULL, -- Pointer to city in cities table + state TINYTEXT NULL, -- Two character state code - matches states.ini entries + country TINYTEXT NULL, -- Two character country code - matches countries.ini entries + zip TINYTEXT NULL, -- ZIP/Postal code + lat FLOAT NULL, -- Latitude of location + lon FLOAT NULL, -- Longitude of location + region INT NULL, -- Pointer to region where location exists + phone TINYTEXT NULL, -- Primary phone number + toll_free TINYTEXT NULL, -- Toll Free phone number + url TINYTEXT NULL, -- URL for information regarding this location + logo TINYTEXT NULL, -- Logo + notes TEXT NULL, -- Notes - not displayed on front-end + create_time TIMESTAMP NULL, -- Create date/time + modify_time TIMESTAMP NULL, -- Last Update date/time + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(region) +); + +---- + +-- Meals offered by a restaurant +CREATE TABLE {prefix}meals ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- Meal is active flag + name TINYTEXT NULL, -- Name of this meal (typically Breakfast, Lunch, Dinner, Brunch, ...) + descr TEXT NULL, -- Description of the meal + short_descr TINYTEXT NULL, -- Short description + menu TEXT NULL, -- Text menu for this meal + menu_file TINYTEXT NULL, -- File name of downloadable menu file (PDF, etc.) + daily BOOLEAN NULL, -- Flag indicating if meal is available daily + daily_start_time TIME NULL, -- Daily meal - Time of day this meal starts + daily_end_time TIME NULL, -- Daily meal - Time of day this meal ends + daily_res_req BOOLEAN NULL, -- Daily meal - Reservations requested + sunday BOOLEAN NULL, -- Flag indicating if meal is available Sunday + sun_menu TEXT NULL, -- Optional menu text for Sunday + sun_start_time TIME NULL, -- Sunday - Time of day this meal starts + sun_end_time TIME NULL, -- Sunday - Time of day this meal ends + sun_res_req BOOLEAN NULL, -- Sunday - Reservations requested + monday BOOLEAN NULL, -- Flag indicating if meal is available Monday + mon_menu TEXT NULL, -- Optional menu text for Monday + mon_start_time TIME NULL, -- Monday - Time of day this meal starts + mon_end_time TIME NULL, -- Monday - Time of day this meal ends + mon_res_req BOOLEAN NULL, -- Monday - Reservations requested + tuesday BOOLEAN NULL, -- Flag indicating if meal is available Tuesday + tue_menu TEXT NULL, -- Optional menu text for Tuesday + tue_start_time TIME NULL, -- Tuesday - Time of day this meal starts + tue_end_time TIME NULL, -- Tuesday - Time of day this meal ends + tue_res_req BOOLEAN NULL, -- Tuesday - Reservations requested + wednesday BOOLEAN NULL, -- Flag indicating if meal is available Wednesday + wed_menu TEXT NULL, -- Optional menu text for Wednesday + wed_start_time TIME NULL, -- Wednesday - Time of day this meal starts + wed_end_time TIME NULL, -- Wednesday - Time of day this meal ends + wed_res_req BOOLEAN NULL, -- Wednesday - Reservations requested + thursday BOOLEAN NULL, -- Flag indicating if meal is available Thursday + thu_menu TEXT NULL, -- Optional menu text for Thursday + thu_start_time TIME NULL, -- Thursday - Time of day this meal starts + thu_end_time TIME NULL, -- Thursday - Time of day this meal ends + thu_res_req BOOLEAN NULL, -- Thursday - Reservations requested + friday BOOLEAN NULL, -- Flag indicating if meal is available Friday + fri_menu TEXT NULL, -- Optional menu text for Friday + fri_start_time TIME NULL, -- Friday - Time of day this meal starts + fri_end_time TIME NULL, -- Friday - Time of day this meal ends + fri_res_req BOOLEAN NULL, -- Friday - Reservations requested + saturday BOOLEAN NULL, -- Flag indicating if meal is available Saturday + sat_menu TEXT NULL, -- Optional menu text for Saturday + sat_start_time TIME NULL, -- Saturday - Time of day this meal starts + sat_end_time TIME NULL, -- Saturday - Time of day this meal ends + sat_res_req BOOLEAN NULL, -- Saturday - Reservations requested + restaurant INT NULL, -- Pointer to restaurant that has this meal + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(restaurant) +); + +---- + +-- Primary member records - One for each member +CREATE TABLE {prefix}members ( + id INT NOT NULL AUTO_INCREMENT, + access INT NULL, -- Access type - See memb_access table in plugin.ini + member_type INT NULL, -- Pointer to member type in member_type table + created DATE NULL, -- Date member record was created + name TINYTEXT NULL, -- Member name + member_slug TINYTEXT NULL, -- Member name slug for canonical URLs (lowercase, "-" for spaces, no punctuation) + PRIMARY KEY (id), + INDEX(name(20)), + INDEX(member_slug(20)), + INDEX(created) +); + +---- + +-- Member information version record - May be multiples per member - Only one with stauts "Active" for a distinct date range +CREATE TABLE {prefix}member_info ( + id INT NOT NULL AUTO_INCREMENT, + member INT NULL, -- Pointer to member record in table members + member_name TINYTEXT NULL, -- Copy of member name from members table entry for fast reference + status INT NULL, -- Status of this member information record - See plugin.ini status table + reference_name TINYTEXT NULL, -- Refernce name for this member information record - Not displayed on front-end + descr TEXT NULL, -- Description + short_descr TEXT NULL, -- Short description + addr1 TINYTEXT NULL, -- Address line 1 - Main member address (main location) or + addr2 TINYTEXT NULL, -- Address line 2 + city INT NULL, -- Pointer to City in cities table + state TINYTEXT NULL, -- Two character state code - matches states.ini entries + country TINYTEXT NULL, -- Two character country code - matches countries.ini entries + zip TINYTEXT NULL, -- ZIP/Postal code + lat FLOAT NULL, -- Latitude of member's location + lon FLOAT NULL, -- Longitude of member's location + region INT NULL, -- Pointer to entry in regions table + phone TINYTEXT NULL, -- Primary phone number + toll_free TINYTEXT NULL, -- Toll Free phone number + url TINYTEXT NULL, -- URL with information about this member + email TINYTEXT NULL, -- Main E-Mail address for this member + logo TINYTEXT NULL, -- Member logo + cc_type INT NULL, -- Bitmap of credit card types accepted - See credit_card array in plugin.ini + notes TEXT NULL, -- General notes - Not displayed in front-end + create_time TIMESTAMP NULL, -- Create date/time + modify_time TIMESTAMP NULL, -- Last update date/time + PRIMARY KEY (id), + INDEX(status), + INDEX(city), + INDEX(zip(10)), + INDEX(lat), + INDEX(lon), + INDEX(region) +); + +---- + +-- Member type - Can be used to assign members to different "classes" of membership (i.e. Full, Associate, Premium) +-- Mostly for internal use by the member organization, but could be displayed - Consider a short_description if they are. +CREATE TABLE {prefix}member_type ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of member type + descr TINYTEXT NULL, -- Description of member type + PRIMARY KEY (id) +); + +---- + +-- Regions - Used to segment members into various geographical regions - can be cities, counties, or other logical regions +CREATE TABLE {prefix}regions ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of region + descr TEXT NULL, -- Descrption of region + short_descr TINYTEXT NULL, -- Short descroption of region + PRIMARY KEY (id) +); + +---- + +-- Resturaunt Types - Various general types of restaurants (i.e. Fast Food, Ethnic, Fine food, ...) +CREATE TABLE {prefix}restaurant_types ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of restaurant type + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short Description + PRIMARY KEY (id), + INDEX(name(20)) +); + +---- + +-- Restaurants +CREATE TABLE {prefix}restaurants ( + id INT NOT NULL AUTO_INCREMENT, + active BOOLEAN NULL, -- This restaurant is active flag + name TINYTEXT NULL, -- Name of restaurant + restaurant_type INT NULL, -- Pointer to restaurant_types table entry + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short Description + url TINYTEXT NULL, -- URL of Web page about this restaurant + reservation_url TINYTEXT NULL, -- Reservations URL + phone TINYTEXT NULL, -- Phone number / reservations number + hours_descr TINYTEXT NULL, -- Description of restaurant hours + alcohol BOOLEAN NULL, -- Flag indicating whether restaurant serves alcohol + non_smoking BOOLEAN NULL, -- Flag indicating whether restaurant is non-smoking only + notes TEXT NULL, -- General notes + ref_type INT NULL, -- Type of entity this restaurant is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type this restaurant is associated with + PRIMARY KEY (id), + INDEX(restaurant_type), + INDEX(name(20)), + INDEX(ref_type), + INDEX(ref_dest) +); + +---- + +-- General settings available on Management page in admin - Only 1 entry in this table +-- Items in this table should be all self-explanatory +CREATE TABLE {prefix}settings_general ( + id INT NOT NULL AUTO_INCREMENT, + admin_debug BOOLEAN DEFAULT '1', + admin_debug_verbose BOOLEAN DEFAULT '0', + front_debug BOOLEAN DEFAULT '0', + front_debug_verbose BOOLEAN DEFAULT '0', + google_maps_api_key TINYTEXT DEFAULT '', + maps_default_lat FLOAT DEFAULT '45.3749', + maps_default_lon FLOAT DEFAULT '-84.9592', + maps_default_zoom INTEGER DEFAULT '10', + time_zone TINYTEXT DEFAULT NULL, + canonical_member_page TINYTEXT DEFAULT NULL, + list_show_map BOOLEAN DEFAULT '1', + list_show_list BOOLEAN DEFAULT '1', + list_show_search BOOLEAN DEFAULT '1', + list_show_search_text BOOLEAN DEFAULT '1', + list_show_search_category BOOLEAN DEFAULT '1', + list_show_search_amenities BOOLEAN DEFAULT '1', + list_show_search_alpha BOOLEAN DEFAULT '1', + list_show_detail_link BOOLEAN DEFAULT '1', + list_show_logo BOOLEAN DEFAULT '1', + list_logo_size TINYTEXT NULL, + list_show_address BOOLEAN DEFAULT '1', + list_show_street BOOLEAN DEFAULT '1', + list_show_citystatezip BOOLEAN DEFAULT '1', + list_show_country BOOLEAN DEFAULT '1', + list_show_region BOOLEAN DEFAULT '1', + list_show_descr BOOLEAN DEFAULT '0', + list_show_short_descr BOOLEAN DEFAULT '1', + list_show_phone BOOLEAN DEFAULT '1', + list_show_tollfree BOOLEAN DEFAULT '1', + list_show_url BOOLEAN DEFAULT '1', + list_show_url_newtarget BOOLEAN DEFAULT '1', + list_show_email BOOLEAN DEFAULT '1', + list_show_categories BOOLEAN DEFAULT '1', + list_show_creditcards BOOLEAN DEFAULT '1', + list_show_amenities BOOLEAN DEFAULT '0', + list_map_show_detaillink BOOLEAN DEFAULT '1', + list_map_show_logo BOOLEAN DEFAULT '0', + list_map_logo_size TINYTEXT NULL, + list_map_show_descr BOOLEAN DEFAULT '0', + list_map_show_short_descr BOOLEAN DEFAULT '1', + list_map_show_address BOOLEAN DEFAULT '1', + list_map_show_street BOOLEAN DEFAULT '1', + list_map_show_citystatezip BOOLEAN DEFAULT '1', + list_map_show_country BOOLEAN DEFAULT '1', + list_map_show_region BOOLEAN DEFAULT '1', + list_map_show_phone BOOLEAN DEFAULT '1', + list_map_show_tollfree BOOLEAN DEFAULT '1', + list_map_show_url BOOLEAN DEFAULT '1', + list_map_show_url_newtarget BOOLEAN DEFAULT '1', + list_map_show_email BOOLEAN DEFAULT '1', + list_map_show_categories BOOLEAN DEFAULT '0', + list_map_show_creditcards BOOLEAN DEFAULT '0', + list_map_show_amenities BOOLEAN DEFAULT '0', + detail_show_map BOOLEAN DEFAULT '1', + detail_show_directions BOOLEAN DEFAULT '1', + detail_show_logo BOOLEAN DEFAULT '1', + detail_logo_size TINYTEXT NULL, + detail_show_descr BOOLEAN DEFAULT '1', + detail_show_short_descr BOOLEAN DEFAULT '0', + detail_show_address BOOLEAN DEFAULT '1', + detail_show_street BOOLEAN DEFAULT '1', + detail_show_citystatezip BOOLEAN DEFAULT '1', + detail_show_country BOOLEAN DEFAULT '1', + detail_show_region BOOLEAN DEFAULT '1', + detail_show_phone BOOLEAN DEFAULT '1', + detail_show_tollfree BOOLEAN DEFAULT '1', + detail_show_url BOOLEAN DEFAULT '1', + detail_show_url_newtarget BOOLEAN DEFAULT '1', + detail_show_email BOOLEAN DEFAULT '1', + detail_show_categories BOOLEAN DEFAULT '1', + detail_show_creditcards BOOLEAN DEFAULT '1', + detail_show_amenities BOOLEAN DEFAULT '1', + detail_show_imagegallery BOOLEAN DEFAULT '1', + detail_show_coupons BOOLEAN DEFAULT '0', + detail_show_packages BOOLEAN DEFAULT '0', + detail_map_show_logo BOOLEAN DEFAULT '0', + detail_map_logo_size TINYTEXT NULL, + detail_map_show_descr BOOLEAN DEFAULT '0', + detail_map_show_short_descr BOOLEAN DEFAULT '1', + detail_map_show_address BOOLEAN DEFAULT '1', + detail_map_show_street BOOLEAN DEFAULT '1', + detail_map_show_citystatezip BOOLEAN DEFAULT '1', + detail_map_show_country BOOLEAN DEFAULT '1', + detail_map_show_region BOOLEAN DEFAULT '1', + detail_map_show_phone BOOLEAN DEFAULT '1', + detail_map_show_tollfree BOOLEAN DEFAULT '1', + detail_map_show_url BOOLEAN DEFAULT '1', + detail_map_show_url_newtarget BOOLEAN DEFAULT '1', + detail_map_show_email BOOLEAN DEFAULT '1', + detail_map_show_categories BOOLEAN DEFAULT '0', + detail_map_show_creditcards BOOLEAN DEFAULT '0', + detail_map_show_amenities BOOLEAN DEFAULT '0', + PRIMARY KEY (id) +); + +---- + +-- Set default entry +INSERT INTO {prefix}settings_general + ( id, time_zone, canonical_member_page ) + VALUES + ( 1, 'America/Detroit', 'member-detail' ) +; + +---- + +-- Terms used in site modifiable on Management page in admin - Only 1 entry in this table +-- Tems in this table should be all self-explanatory +CREATE TABLE {prefix}settings_terms ( + id INT NOT NULL AUTO_INCREMENT, + term_admin_menu_members TINYTEXT NULL, + term_admin_menu_member_list TINYTEXT NULL, + term_admin_menu_member TINYTEXT NULL, + term_admin_menu_configure TINYTEXT NULL, + term_admin_menu_settings TINYTEXT NULL, + term_admin_menu_shortcodes TINYTEXT NULL, + term_admin_menu_members_dashboard TINYTEXT NULL, + term_admin_menu_members_list TINYTEXT NULL, + term_admin_menu_members_reports TINYTEXT NULL, + term_admin_menu_member_dashboard TINYTEXT NULL, + term_admin_menu_member_info TINYTEXT NULL, + term_admin_menu_member_locations TINYTEXT NULL, + term_admin_menu_member_facilities TINYTEXT NULL, + term_admin_menu_member_attractions TINYTEXT NULL, + term_admin_menu_member_contacts TINYTEXT NULL, + term_admin_menu_configure_member_types TINYTEXT NULL, + term_admin_menu_configure_member_cats TINYTEXT NULL, + term_admin_menu_configure_accom_types TINYTEXT NULL, + term_admin_menu_configure_amenities TINYTEXT NULL, + term_admin_menu_configure_cities TINYTEXT NULL, + term_admin_menu_configure_regions TINYTEXT NULL, + term_admin_menu_settings_general TINYTEXT NULL, + term_admin_menu_settings_terms TINYTEXT NULL, + term_admin_menu_settings_development TINYTEXT NULL, + term_member TINYTEXT NULL, + term_member_cap TINYTEXT NULL, + term_member_plur TINYTEXT NULL, + term_member_plur_cap TINYTEXT NULL, + term_location TINYTEXT NULL, + term_location_cap TINYTEXT NULL, + term_location_plur TINYTEXT NULL, + term_location_plur_cap TINYTEXT NULL, + term_facility TINYTEXT NULL, + term_facility_cap TINYTEXT NULL, + term_facility_plur TINYTEXT NULL, + term_facility_plur_cap TINYTEXT NULL, + term_attraction TINYTEXT NULL, + term_attraction_cap TINYTEXT NULL, + term_attraction_plur TINYTEXT NULL, + term_attraction_plur_cap TINYTEXT NULL, + term_contact TINYTEXT NULL, + term_contact_cap TINYTEXT NULL, + term_contact_plur TINYTEXT NULL, + term_contact_plur_cap TINYTEXT NULL, + PRIMARY KEY (id) +); + +---- + +-- Default terms entry +INSERT INTO {prefix}settings_terms + ( + id, + term_admin_menu_members, + term_admin_menu_member_list, + term_admin_menu_member, + term_admin_menu_configure, + term_admin_menu_settings, + term_admin_menu_shortcodes, + term_admin_menu_members_dashboard, + term_admin_menu_members_list, + term_admin_menu_members_reports, + term_admin_menu_member_dashboard, + term_admin_menu_member_info, + term_admin_menu_member_locations, + term_admin_menu_member_facilities, + term_admin_menu_member_attractions, + term_admin_menu_member_contacts, + term_admin_menu_configure_member_types, + term_admin_menu_configure_member_cats, + term_admin_menu_configure_accom_types, + term_admin_menu_configure_amenities, + term_admin_menu_configure_cities, + term_admin_menu_configure_regions, + term_admin_menu_settings_general, + term_admin_menu_settings_terms, + term_admin_menu_settings_development, + term_member, + term_member_cap, + term_member_plur, + term_member_plur_cap, + term_location, + term_location_cap, + term_location_plur, + term_location_plur_cap, + term_facility, + term_facility_cap, + term_facility_plur, + term_facility_plur_cap, + term_attraction, + term_attraction_cap, + term_attraction_plur, + term_attraction_plur_cap, + term_contact, + term_contact_cap, + term_contact_plur, + term_contact_plur_cap + ) + VALUES + ( + 1, + 'Members', + 'Member', + 'Add Member', + 'Configure', + 'Management', + 'Shortcodes', + 'Dashboard', + 'Member List', + 'Reports', + 'Member Dashboard', + 'Member Info', + 'Locations', + 'Facilities', + 'Attractions', + 'Contacts', + 'Member Types', + 'Member Categories', + 'Accommodation Types', + 'Amenities', + 'Cities', + 'Regions', + 'General Settings', + 'Terms & Phrases', + 'Development', + 'member', + 'Member', + 'members', + 'Members', + 'location', + 'Location', + 'locations', + 'Locations', + 'facility', + 'Facility', + 'facilities', + 'Facilities', + 'attraction', + 'Attraction', + 'attractions', + 'Attractions', + 'contact', + 'Contact', + 'contacts', + 'Contacts' + ) +; + +---- + +-- Social Media types (i.e. Facebook, Twitter, ...) +CREATE TABLE {prefix}social_media ( + id INT NOT NULL AUTO_INCREMENT, + name TINYTEXT NULL, -- Name of this social media service + descr TEXT NULL, -- Description + short_descr TINYTEXT NULL, -- Short Description + PRIMARY KEY (id) +); + +---- + +-- Social media to entity cross-reference table +CREATE TABLE {prefix}social_media_ref ( + id INT NOT NULL AUTO_INCREMENT, + ref_type INT NULL, -- Type of entity this entry is associated with + ref_dest INT NULL, -- Pointer to the specific entity of ref_type + social_media INT NULL, -- Pointer to entry in social_media table + url TINYTEXT NULL, -- URL to this social media service + PRIMARY KEY (id), + INDEX(ref_type), + INDEX(ref_dest), + INDEX(social_media) +); diff --git a/misc/databaseScripts/drop_database_V1.0.43.sql b/misc/databaseScripts/drop_database_V1.0.43.sql new file mode 100644 index 00000000..cc75793c --- /dev/null +++ b/misc/databaseScripts/drop_database_V1.0.43.sql @@ -0,0 +1,36 @@ +-- Gaslight Media Members Database +-- File Created: 12/09/14 15:27:15 +-- Database Version: 1.0.43 +-- Database Deletion Script +-- Note: Tables with DELETE CASCADE must appear before referenced table + +DROP TABLE IF EXISTS + {prefix}accommodation_types, + {prefix}accommodations, + {prefix}accounts, + {prefix}activties, + {prefix}amenities, + {prefix}amenity_ref, + {prefix}category_member_info, + {prefix}categories, + {prefix}cities, + {prefix}contact_permissions, + {prefix}contacts, + {prefix}facilities, + {prefix}files, + {prefix}golf, + {prefix}images, + {prefix}locations, + {prefix}meals, + {prefix}members, + {prefix}member_info, + {prefix}member_type, + {prefix}regions, + {prefix}restaurant_types, + {prefix}restaurants, + {prefix}settings_general, + {prefix}settings_terms, + {prefix}social_media, + {prefix}social_media_ref +; + diff --git a/misc/databaseScripts/update_database_V1.0.43.sql b/misc/databaseScripts/update_database_V1.0.43.sql new file mode 100644 index 00000000..3235219c --- /dev/null +++ b/misc/databaseScripts/update_database_V1.0.43.sql @@ -0,0 +1,197 @@ +-- Gaslight Media Members Database +-- File Created: 12/09/14 15:27:15 +-- Database Version: 1.0.28 +-- Database Update From Previous Version Script +-- +-- To permit each query below to be executed separately, +-- all queries must be separated by a line with four dashses + +RENAME TABLE {prefix}activties to {prefix}activities; + +---- + +CREATE TABLE {prefix}contact_permissions ( + id INT NOT NULL AUTO_INCREMENT, + permission INT NULL, + contact INT NULL, + PRIMARY KEY (id), + CONSTRAINT {prefix}contact_fk_1 + FOREIGN KEY (contact) + REFERENCES {prefix}contacts (id) + ON DELETE CASCADE, + INDEX(permission), + INDEX(contact) +); + +---- + +ALTER TABLE {prefix}contacts ADD COLUMN username TINYTEXT; + +---- + +ALTER TABLE {prefix}activities DROP COLUMN facility; + +---- + +ALTER TABLE {prefix}accommodations ADD COLUMN url TINYTEXT; + +---- + +ALTER TABLE {prefix}accommodations ADD COLUMN notes TEXT; + +---- + +ALTER TABLE {prefix}accommodations ADD COLUMN create_time TIMESTAMP; + +---- + +ALTER TABLE {prefix}accommodations ADD COLUMN modify_time TIMESTAMP; + +---- + +ALTER TABLE {prefix}contacts MODIFY state TINYTEXT; + +---- + +ALTER TABLE {prefix}contacts MODIFY country TINYTEXT; + +---- + +ALTER TABLE {prefix}contacts DROP COLUMN permissions; + +---- + +ALTER TABLE {prefix}facilities MODIFY state TINYTEXT; + +---- + +ALTER TABLE {prefix}facilities MODIFY country TINYTEXT; + +---- + +ALTER TABLE {prefix}files MODIFY pending BOOLEAN; + +---- + +ALTER TABLE {prefix}locations DROP COLUMN location_type; + +---- + +ALTER TABLE {prefix}locations ADD COLUMN member_info INT; + +---- + +ALTER TABLE {prefix}locations MODIFY state TINYTEXT; + +---- + +ALTER TABLE {prefix}locations MODIFY country TINYTEXT; + +---- + +ALTER TABLE {prefix}meals ADD COLUMN menu_file TINYTEXT; + +---- + +ALTER TABLE {prefix}meals DROP COLUMN special_menu; + +---- + +ALTER TABLE {prefix}meals DROP COLUMN daily_time; + +---- + +ALTER TABLE {prefix}meals ADD COLUMN daily BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY daily_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY sunday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY sun_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY monday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY tuesday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY wednesday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY thursday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY friday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY saturday BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY mon_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY tue_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY wed_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY thu_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY fri_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals MODIFY sat_res_req BOOLEAN; + +---- + +ALTER TABLE {prefix}meals DROP COLUMN ref_type; + +---- + +ALTER TABLE {prefix}meals DROP COLUMN ref_dest; + +---- + +CREATE INDEX meal_restaurant ON {prefix}meals (restaurant); + +---- + +ALTER TABLE {prefix}restaurant_types DROP COLUMN active; + +---- + +ALTER TABLE {prefix}restaurants DROP COLUMN menu; + +---- + +ALTER TABLE {prefix}restaurants DROP COLUMN special_menu; + +---- + +ALTER TABLE {prefix}restaurants MODIFY alcohol BOOLEAN; + +---- + +ALTER TABLE {prefix}restaurants MODIFY non_smoking BOOLEAN; + diff --git a/misc/documentation/Plugin_Database_Organization.odt b/misc/documentation/Plugin_Database_Organization.odt new file mode 100644 index 00000000..55fdfc25 Binary files /dev/null and b/misc/documentation/Plugin_Database_Organization.odt differ diff --git a/misc/documentation/Plugin_Directory_Structure.odg b/misc/documentation/Plugin_Directory_Structure.odg index 30ee3ecd..88a5d651 100755 Binary files a/misc/documentation/Plugin_Directory_Structure.odg and b/misc/documentation/Plugin_Directory_Structure.odg differ diff --git a/misc/documentation/Plugin_Functional_Outline.odt b/misc/documentation/Plugin_Functional_Outline.odt new file mode 100644 index 00000000..0b0d065a Binary files /dev/null and b/misc/documentation/Plugin_Functional_Outline.odt differ diff --git a/misc/documentation/Plugin_program_flow.odg b/misc/documentation/Plugin_program_flow.odg index 8760dbae..599b8989 100755 Binary files a/misc/documentation/Plugin_program_flow.odg and b/misc/documentation/Plugin_program_flow.odg differ diff --git a/misc/documentation/User Interface Outline.odt b/misc/documentation/User Interface Outline.odt new file mode 100644 index 00000000..934b11e2 Binary files /dev/null and b/misc/documentation/User Interface Outline.odt differ diff --git a/models/admin/ajax/imageUpload.php b/models/admin/ajax/imageUpload.php index 64399c1b..b6d1a21d 100644 --- a/models/admin/ajax/imageUpload.php +++ b/models/admin/ajax/imageUpload.php @@ -253,7 +253,7 @@ class GlmMembersAdmin_ajax_imageUpload extends GlmDataImages '".$file['newFileName']."', '', '".addslashes($caption)."', - ".$this->config['status_numb']['Inactive'].", + ".$this->config['status_numb']['Active'].", 99, $refType, $refDest diff --git a/models/admin/dashboardWidget/index.php b/models/admin/dashboardWidget/index.php index a981cc89..38290d55 100644 --- a/models/admin/dashboardWidget/index.php +++ b/models/admin/dashboardWidget/index.php @@ -172,7 +172,8 @@ class GlmMembersAdmin_dashboardWidget_index extends GlmDataMembers 'haveAmenities' => $haveAmenities, 'haveRegions' => $haveRegions, 'haveCities' => $haveCities, - 'pendingList' => $pendingList + 'pendingList' => $pendingList, + 'addOns' => $this->config['addOns'] ); // Return status, suggested view, and data to controller diff --git a/models/admin/management/addons.php b/models/admin/management/addons.php new file mode 100644 index 00000000..291462a3 --- /dev/null +++ b/models/admin/management/addons.php @@ -0,0 +1,110 @@ + + * @license http://www.gaslightmedia.com Gaslightmedia + * @version 1.0.43 + */ + +/* + * This class performs the work for the default action of the "Members" menu + * option, which is to display the members dashboard. + * + */ +class GlmMembersAdmin_management_addons +{ + + /** + * WordPress Database Object + * + * @var $wpdb + * @access public + */ + public $wpdb; + /** + * Plugin Configuration Data + * + * @var $config + * @access public + */ + public $config; + + /* + * Constructor + * + * This contructor sets up this model. At this time that only includes + * storing away the WordPress data object. + * + * @return object Class object + * + */ + public function __construct ($wpdb, $config) + { + + // Save WordPress Database object + $this->wpdb = $wpdb; + + // Save plugin configuration object + $this->config = $config; + + } + + /* + * Perform Model Action + * + * This method does the work for this model and returns any resulting data + * + * @return array Status and data array + * + * 'status' + * + * True if successfull and false if there was a fatal failure. + * + * 'menuItemRedirect' + * + * If not false, provides a menu item the controller should + * execute after this one. Normally if this is used, there would also be a + * modelRedirect value supplied as well. + * + * 'modelRedirect' + * + * If not false, provides an action the controller should execute after + * this one. + * + * 'view' + * + * A suggested view name that the contoller should use instead of the + * default view for this model or false to indicate that the default view + * should be used. + * + * 'data' + * + * Data that the model is returning for use in merging with the view to + * produce output. + * + */ + public function modelAction ($actionData = false) + { + + // Return status, suggested view, and data to controller + return array( + 'status' => true, + 'menuItemRedirect' => false, + 'modelRedirect' => false, + 'view' => 'admin/management/addons.html', + 'data' => array( + 'addOns' => $this->config['addOns'] + ) + ); + + } + +} + +?> \ No newline at end of file diff --git a/models/admin/management/development.php b/models/admin/management/development.php index b718ac78..6fdb845e 100644 --- a/models/admin/management/development.php +++ b/models/admin/management/development.php @@ -182,8 +182,9 @@ class GlmMembersAdmin_management_development $del = $this->deleteDataTables($dbVersion); if ($del) { - glmMembersAdmin::addNotice('New database tables for the '.GLM_MEMBERS_PLUGIN_NAME.' plugin have been deleted.', 'AdminNotice'); - + glmMembersAdmin::addNotice('Database tables for the '.GLM_MEMBERS_PLUGIN_NAME.' plugin have been deleted.', 'AdminNotice'); + } else { + break; } if ($option != 'reset') { @@ -209,35 +210,35 @@ class GlmMembersAdmin_management_development case 'list': - // Check if the database version set for this plugin is invalid. - if (!isset($activate->dbVersions[$dbVersion])) { - $templateData['resultMessage'] .= "The last database version set for the ".GLM_MEMBERS_PLUGIN_NAME." (V$dbVersion) isn't valid.
"; - break; - } + // Check if the database version set for this plugin is invalid. + if (!isset($activate->dbVersions[$dbVersion])) { + $templateData['resultMessage'] .= "The last database version set for the ".GLM_MEMBERS_PLUGIN_NAME." (V$dbVersion) isn't valid.
"; + break; + } - // Get the number of tables for this plugin database version that should exist. - $tables = $activate->dbVersions[$dbVersion]['tables']; + // Get the number of tables for this plugin database version that should exist. + $tables = $activate->dbVersions[$dbVersion]['tables']; - // Get the number of tables for this plugin that do currently exist. - $existingTables = $this->wpdb->get_results(" - SELECT table_name - FROM information_schema.tables - WHERE table_name like '".GLM_MEMBERS_PLUGIN_DB_PREFIX."%'; - ", ARRAY_A); + // Get the number of tables for this plugin that do currently exist. + $existingTables = $this->wpdb->get_results(" + SELECT table_name + FROM information_schema.tables + WHERE table_name like '".GLM_MEMBERS_PLUGIN_DB_PREFIX."%'; + ", ARRAY_A); - if (is_array($existingTables)) { + if (is_array($existingTables)) { - $templateData['resultMessage'] .= 'Current database tables
'; - } else { - $templateData['resultMessage'] .= 'No tables currently exist
'; + $templateData['resultMessage'] .= 'Current database tables
'; + } else { + $templateData['resultMessage'] .= 'No tables currently exist
'; + } break; @@ -270,6 +271,11 @@ class GlmMembersAdmin_management_development { // Read in Database deletion script - assumes the current db version. + $dropSQL = GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/drop_database_V'.$dbVersion.'.sql'; + if (!is_file($dropSQL)) { + glmMembersAdmin::addNotice('Error when deleting database: Database deletion SQL script not found:
'.$dropSQL, 'AdminError'); + return false; + } $sqlFile = GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/drop_database_V'.$dbVersion.'.sql'; $sql = file_get_contents($sqlFile); @@ -307,9 +313,13 @@ class GlmMembersAdmin_management_development { // Read in Database creation script - $sqlFile = GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/create_database_V'.$dbVersion.'.sql'; + $createSQL = GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/create_database_V'.$dbVersion.'.sql'; + if (!is_file($createSQL)) { + glmMembersAdmin::addNotice('Error when creating database: Database creation SQL script not found:
'.$createSQL, 'AdminError'); + return false; + } - $sql = file_get_contents($sqlFile); + $sql = file_get_contents($createSQL); // Replace {prefix} with table name prefix $sql = str_replace('{prefix}', GLM_MEMBERS_PLUGIN_DB_PREFIX, $sql); diff --git a/models/admin/management/hooks.php b/models/admin/management/hooks.php new file mode 100644 index 00000000..83fa6b58 --- /dev/null +++ b/models/admin/management/hooks.php @@ -0,0 +1,108 @@ + + * @license http://www.gaslightmedia.com Gaslightmedia + * @version 1.0.43 + */ + +/* + * This class performs the work for the default action of the "Members" menu + * option, which is to display the members dashboard. + * + */ +class GlmMembersAdmin_management_hooks +{ + + /** + * WordPress Database Object + * + * @var $wpdb + * @access public + */ + public $wpdb; + /** + * Plugin Configuration Data + * + * @var $config + * @access public + */ + public $config; + + /* + * Constructor + * + * This contructor sets up this model. At this time that only includes + * storing away the WordPress data object. + * + * @return object Class object + * + */ + public function __construct ($wpdb, $config) + { + + // Save WordPress Database object + $this->wpdb = $wpdb; + + // Save plugin configuration object + $this->config = $config; + + } + + /* + * Perform Model Action + * + * This method does the work for this model and returns any resulting data + * + * @return array Status and data array + * + * 'status' + * + * True if successfull and false if there was a fatal failure. + * + * 'menuItemRedirect' + * + * If not false, provides a menu item the controller should + * execute after this one. Normally if this is used, there would also be a + * modelRedirect value supplied as well. + * + * 'modelRedirect' + * + * If not false, provides an action the controller should execute after + * this one. + * + * 'view' + * + * A suggested view name that the contoller should use instead of the + * default view for this model or false to indicate that the default view + * should be used. + * + * 'data' + * + * Data that the model is returning for use in merging with the view to + * produce output. + * + */ + public function modelAction ($actionData = false) + { + + // Return status, suggested view, and data to controller + return array( + 'status' => true, + 'menuItemRedirect' => false, + 'modelRedirect' => false, + 'view' => 'admin/management/hooks.html', + 'data' => array() + ); + + } + +} + +?> \ No newline at end of file diff --git a/readme.txt b/readme.txt index 59c7268e..5d48923a 100644 --- a/readme.txt +++ b/readme.txt @@ -22,7 +22,6 @@ e.g. 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress -1. Place `` in your templates == Frequently Asked Questions == diff --git a/views/admin/configure/header.html b/views/admin/configure/header.html index 5ce2e0c2..cd9ee47f 100644 --- a/views/admin/configure/header.html +++ b/views/admin/configure/header.html @@ -9,6 +9,9 @@ Amenities Cities Regions +{foreach $addOnTabs as $a} + {$a.text} +{/foreach}
\ No newline at end of file diff --git a/views/admin/management/addons.html b/views/admin/management/addons.html new file mode 100644 index 00000000..4deb4bf3 --- /dev/null +++ b/views/admin/management/addons.html @@ -0,0 +1,25 @@ +{include file='admin/management/header.html'} + +

Currently Installed and Active GLM Members DB Add-Ons

+ +{if $addOns} + + + + {assign var="i" value="0"} + {foreach $addOns as $a} + {if $i++ is odd by 1} + + {else} + + {/if} + + + {/foreach} + +
+ {$a.name} +
+{/if} + +{include file='admin/footer.html'} diff --git a/views/admin/management/header.html b/views/admin/management/header.html index 10ae4a53..e3751757 100644 --- a/views/admin/management/header.html +++ b/views/admin/management/header.html @@ -7,6 +7,11 @@ Terms and Phrases Development Data Import + Add-Ons + Hooks +{foreach $addOnTabs as $a} + {$a.text} +{/foreach}
\ No newline at end of file diff --git a/views/admin/management/hooks.html b/views/admin/management/hooks.html new file mode 100644 index 00000000..15a4eb86 --- /dev/null +++ b/views/admin/management/hooks.html @@ -0,0 +1,152 @@ +{include file='admin/management/header.html'} + +

Hooks Into GLM Member DB Reference

+ +

+ Listed below are hooks into the GLM Member DB plugin. These hooks are used by + add-ons (child plugins) and by themes to extend and modify behavior and output + content of this plugin and its addons. +

+ + + + + + + + + + + + + + + + + + + +
HookTypeDescription
glm-member-db-register-addonFilter + Informs the GLM Meembers DB plugin of an installed add-on plugin. Information + on the plugin is provided in an array that's returned from the function + referenced in the add_filer() call. +

+ The data compiled from all registered add-on plugins is stored in the $config + object for reference throughout this plugin. +

+ An example from the registration of + the Contacts add-on is below. +

+
+function glmMembersRegisterContacts($addOns) { + $addOns[GLM_MEMBERS_CONTACTS_PLUGIN_SLUG] = array( + 'dir' => GLM_MEMBERS_CONTACTS_PLUGIN_PATH, + 'name' => GLM_MEMBERS_CONTACTS_PLUGIN_NAME, + 'short_name' => GLM_MEMBERS_CONTACTS_PLUGIN_SHORT_NAME + ); + return $addOns; +} +add_filter('glm-member-db-register-addon','glmMembersRegisterContacts', 10, 1); +
+
glm-member-db-add-menuAction + Hook to add a menu or menus (or sub-menus) to the GLM Member DB menus. Note that + you may have only menu items and sub-menu items under a main menu item, or in other + words, only 3 levels of menus. +
+// This call will generally be in the constructor of the admin controller in the add-on plugin +add_action('glm-member-db-add-menu', array($this, 'glmMembersAddMenusContacts')); + +// The following two functions would be located elsewhere of the admin controller class. +public function glmMembersAddMenusContacts() +{ + // Add hooks to WordPress + add_action('admin_menu', array($this, 'configureMenus')); +} +public function configureMenus () +{ + // A test menu + add_submenu_page( + 'glm-members-admin-menu-members', + 'Contacts', + 'Contacts', + 'glm_members_edit', + 'glm-members-admin-menu-contacts', + array($this, 'glmMembersAdminMenuContacts') + ); +} +
+

+ Note that in the example above that the function references are as they as + would be used when contained in a class and being called from another + method--such as '_constructor()'. This will likely be the case since the + add_action() call will generally be located in the constructor of the + add-on's admin controller and the the function called by that will be + a function in the same class. +

+

+ Current list of standard GLM Member DB menu items. +

+ + + + + + + + + + + + + + +
MenulevelSlug
Member DBMain Menuglm-members-admin-menu-members
MembersSub-Menu(same as Member DB main menu item)
MembersSub-Menuglm-members-admin-menu-members
Member ListSub-Sub-Menuglm-members-admin-menu-members-list
Add MemberSub-Menuglm-members-admin-menu-member
ConfigureSub-Menuglm-members-admin-menu-configure
ManagementSub-Menuglm-members-admin-menu-management
ShortcodesSub-Menuglm-members-admin-menu-shortcodes
+
glm-member-db-add-tab-for-{literal}{menu_item}{/literal}Filter + Hook to add a tab or tabs to the header for pages in a particular page where + {literal}{menu_item}{/literal} should be the name of the menu item (page) where + the tab(s) should be added. +

+ As shown in the example below, the $addOnTabs array that is passed is an array + of tab definition arrays wherein 'text' is the text displayed on the tab and + 'action' is the action that is to be performed when the tab is clicked. +

+
+// This call will generally be in the constructor of the admin controller in the add-on plugin +add_filter('glm-member-db-add-tab-for-members', array($this, 'glmMembersAddTabForMembers')); + +// The following two functions would be located elsewhere in the admin controller class. +public function glmMembersAddTabForMembers($addOnTabs) +{ + $newTabs = array( + array( + 'text' => 'New Tab', + 'action' => 'contact' + ), + array( + 'text' => 'Another Tab', + 'action' => 'anotherAction' + ) + ); + $addOnTabs = array_merge($addOnTabs, $newTabs); + return $addOnTabs; +} +
+

+ The tabs are generated from this array by the related header.html template + for the related menu item. +

+

+ Note that in the example above that the function references are as they as + would be used when contained in a class and being called from another + method--such as '_constructor()'. This will likely be the case since the + add_filter() call will generally be located in the constructor of the + add-on's admin controller and the the function called by that will be + a function in the same class. +

+
+ +{include file='admin/footer.html'} + + + +'glm-member-db-add-tab-for-'.$menuItem, \ No newline at end of file diff --git a/views/admin/member/header.html b/views/admin/member/header.html index 18427bfc..81d99bb8 100644 --- a/views/admin/member/header.html +++ b/views/admin/member/header.html @@ -5,6 +5,9 @@