* Fixed member search on members dashboard page. Checked for other similar issues.
* Removed old form content from member edit template. No longer used.
* Comented out editing of credit cards and front-end display of credit cards. Management fields related to credit cards still remain.
* Added ability to set a minimum value for the top of the Y axis on graphs.
* Set a minimum Y axis top for bandwidth a click-through/detail views graphs.
* Removed mouseover effects for images in the member info edit page. Could not get I.E. to behave with this.
}
// Load glmPluginSupport class
-require_once (GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php');
+require_once GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php';
/*
* This class performs all necessary additional work when this
$this->checkUploadsDir();
// Set Roles and Capabilities for this plugin
- require_once(GLM_MEMBERS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+ require_once GLM_MEMBERS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php';
// Set current plugin version
update_option('glmMembersDatabasePluginVersion', GLM_MEMBERS_PLUGIN_VERSION);
{
// Load Member Info Data Class and get info data for later use
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
$MemberInfo = new GlmDataMemberInfo($this->wpdb, $this->config);
$memberInfo = $MemberInfo->getEntry($id);
$this->wpdb->query($sql);
// Load image gallery class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
$Images = new GlmDataImages($this->wpdb, $this->config);
// Get the refType for the member_info table and use if for both src and dst
// If setup/frontMisc.php exists include that now - Can be used for additional filters and hooks
$miscFile = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminHooks.php';
if (is_file($miscFile)) {
- require_once($miscFile);
+ require_once $miscFile;
}
}
}
// Load the model file
- require_once ($modelName);
+ require_once $modelName;
// check for an invalid model class name
if (!class_exists($className)) {
// For each add-on, read in their menu additions - These are optional files
foreach ($this->config['addOns'] as $a) {
if (is_file(GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminMenus.php')) {
- require_once(GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminMenus.php');
+ require_once GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminMenus.php';
}
if (is_file(GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminTabs.php')) {
- require_once(GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminTabs.php');
+ require_once GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/adminTabs.php';
}
}
} else {
// Load the model file
- require_once ($modelName);
+ require_once $modelName;
// check for an invalid model class name
if (!class_exists($className)) {
// If setup/frontMisc.php exists include that now - Can be used for additional filters and hooks
$miscFile = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/setup/frontHooks.php';
if (is_file($miscFile)) {
- require_once($miscFile);
+ require_once $miscFile;
}
}
// Load the model file, if it hasn't already
if (!class_exists($className)) {
- require_once ($modelName);
+ require_once $modelName;
}
// check for an invalid model class name
} // if errorMsg
// If there was an error
- if ($errorMsg != '') {
- $mailMsg = "
- <p>An error occurred while running the request below.</p>
-
- <pre>
- <table>
- <tr><th>Error Msg: </th><td>$errorMsg</td></tr>
- <tr><th>Server: </th><td>".$_SERVER['SERVER_NAME']."</td></tr>
- <tr><th>Method: </th><td>".$_SERVER['REQUEST_METHOD']."</td></tr>
- <tr><th>Time: </th><td>".date('r', $_SERVER['REQUEST_TIME'])."</td></tr>
- <tr><th>Query: </th><td>".$_SERVER['QUERY_STRING']."</td></tr>
- <tr><th>Referer: </th><td>".$_SERVER['HTTP_REFERER']."</td></tr>
- <tr><th>User Agent: </th><td>".$_SERVER['HTTP_USER_AGENT']."</td></tr>
- <tr><th>Remote Addr: </th><td>".$_SERVER['REMOTE_ADDR']."</td></tr>
- <tr><th>Filename: </th><td>".$_SERVER['SCRIPT_FILENAME']."</td></tr>
- <tr><th>URL: </th><td>http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."</td></tr>
- <tr><th valign=\"top\">Request Data: </th><td>".print_r($_REQUEST,1)."</td></tr>
- </table>
- </pre>
- ";
+ if ($errorMsg != '' && isset($_SERVER['HTTP_REFERER'])) {
+ $mailMsg =
+"
+An error occurred while running the request below.
+
+Error Msg: $errorMsg
+Server: ".$_SERVER['SERVER_NAME']."
+Method: ".$_SERVER['REQUEST_METHOD']."
+Time: ".date('r', $_SERVER['REQUEST_TIME'])."
+Query: ".$_SERVER['QUERY_STRING']."
+Referrer: ".$_SERVER['HTTP_REFERER']."
+User Agent: ".$_SERVER['HTTP_USER_AGENT']."
+Remote Addr: ".$_SERVER['REMOTE_ADDR']."
+Filename: ".$_SERVER['SCRIPT_FILENAME']."
+URL: http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."
+Request Data: ".print_r($_REQUEST,1)."
+";
mail (
'errors@gaslightmedia.com',
'Front-End GLM Associate Error',
);
$viewPath = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.GLM_MEMBERS_PLUGIN_SLUG.'/views';
$viewFile = 'front/error/index.html';
- require_once (GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.GLM_MEMBERS_PLUGIN_SLUG.'/models/front/error/index.php');
+ require_once GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.GLM_MEMBERS_PLUGIN_SLUG.'/models/front/error/index.php';
$model = new GlmMembersFront_error_index($this->wpdb, $this->config);
$results = $model->modelAction($actionData);
}
}
// Load glmPluginSupport class
-require_once (GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php');
+require_once GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php';
/*
* This class performs all necessary additional work when this
$glmMembersDatabaseDbVersion = get_option('glmMembersDatabaseDbVersion');
// Get standard defined parameters
-require_once('defines.php');
+require_once 'defines.php';
// Get configuration
-require_once('config.php');
+require_once 'config.php';
/*
*
* Also note that the default array includes information on the main member db plugin. This is
* done for consistency, particularly for database maintenance
*/
-require_once(GLM_MEMBERS_PLUGIN_SETUP_PATH.'/validActions.php');
-require_once(GLM_MEMBERS_PLUGIN_SETUP_PATH.'/shortcodes.php');
+require_once GLM_MEMBERS_PLUGIN_SETUP_PATH.'/validActions.php';
+require_once GLM_MEMBERS_PLUGIN_SETUP_PATH.'/shortcodes.php';
require_once GLM_MEMBERS_PLUGIN_SETUP_PATH.'/requiredPages.php';
-require_once(GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/dbVersions.php');
+require_once GLM_MEMBERS_PLUGIN_DB_SCRIPTS.'/dbVersions.php';
$config['addOns'] = array();
// Register the main member db plugin as an add-on - Will be more normal when members are pulled from main plugin
function glmMembersPluginActivate ()
{
global $wpdb, $config;
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/activate.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/activate.php';
new glmMembersPluginActivate($wpdb, $config);
}
register_activation_hook(__FILE__, 'glmMembersPluginActivate');
function glmMembersPluginDeactivate ()
{
global $wpdb, $config;
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/deactivate.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/deactivate.php';
$x = new glmMembersPluginDeactivate($wpdb, $config);
return false;
}
*/
// Load data abstract
- require_once(GLM_MEMBERS_PLUGIN_LIB_PATH.'/GlmDataAbstract/DataAbstract.php');
+ require_once GLM_MEMBERS_PLUGIN_LIB_PATH.'/GlmDataAbstract/DataAbstract.php';
// Load glmPluginSupport class
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/classes/glmPluginSupport.php';
// Load Smarty Template Support
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/lib/smartyTemplateSupport.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/lib/smartyTemplateSupport.php';
/*
* Hook through which an add-on may supply additional logged in user information and
// Otherwise select appropriate controller
if (is_admin()) {
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/admin.php';
new glmMembersAdmin($wpdb, $config);
} else {
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/controllers/front.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/controllers/front.php';
new glmMembersFront($wpdb, $config);
}
// Check for PHP script to update database
$phpScript = $a['database']['dbScriptPath'].'/update_database_V'.$ver.'.php';
if (is_file($phpScript)) {
- require_once ($phpScript);
+ require_once $phpScript;
}
// If there were no errors
// If there was any serious error with the database for this add-on
if ($db_error) {
// Deactivate this add-on
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
+ include_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins($a['slug'].'/index.php');
$startupNotices .= '<p>Plugin '.$a['name'].' Deactivated.</p>';
*/
function setupExpandedImageEvents() {
- var holdImage = false;
+ var largeImageDisplayed = false;
// Handle expanded images on hover for image gallery
- $('.glm-galleryImage').on("mouseenter", function(){
- id = $(this).attr("data-id");
+ $('.glm-galleryImage').on("click", function(){
- // If an image is being held, close it now and reset holdImage
- if (holdImage) {
- $('#glm-galleryImageLarger_' + holdImage).dialog("close");
- holdImage = false;
+ // If an image is currently displayed, close it now and reset the flag
+ if (largeImageDisplayed) {
+ $('#glm-galleryImageLarger_' + largeImageDisplayed).dialog("close");
+ largeImageDisplayed = false;
}
+
+ id = $(this).attr("data-id");
+ largeImageDisplayed = id;
// Display the larger image
var imgTitle = $("#galleryImage_caption_" + id).val();
autoOpen: true,
resizable: false,
width: 'auto',
+ modal: false,
minWidth: 100,
minHeight: 100,
create: function() {
-
$(this).dialog('option', 'maxHeight', $(window).height() * .9);
$(this).dialog('option', 'maxWidth', $(window).width() * .9);
},
- position: { my: "left+10 top+10", at: "right top", of: $(this), collision: "fit" }
+ position: { my: "left+10 top+10", at: "right top", of: $(this) }
});
});
- // If an image is clicked, then hold the larter image dialog box
- $('.glm-galleryImage').on("click", function(){
- holdImage = $(this).attr("data-id");
- });
- $('.glm-galleryImage').on("mouseleave", function(){
- id = $(this).attr("data-id");
-
- // If the image has not been clicked to keep it displayed, close it now
- if (!holdImage) {
- $('#glm-galleryImageLarger_' + id).dialog("close");
- }
- });
// Make images sortable and store the list of IDs in a hidden input field when order has changed.
if (enableDraggable) {
protected $data_set_count = 0;
protected $data_min = 0;
protected $data_max = 0;
+ protected $minMaxYValue = false;
protected $data_count = 0;
protected $bool_data = false;
protected $bool_bars_generate = true;
//start at y value 0 or data min, whichever is less
$graphBottomScale = ($this->data_min<0) ? $this->data_min : 0;
$graphTopScale = ($this->data_max<0) ? 0 : $this->data_max ;
+ if ($this->minMaxYValue && $this->minMaxYValue > $graphTopScale) {
+ $graphTopScale = $this->minMaxYValue;
+ $this->data_max = $this->minMaxYValue;
+}
$graphScaleRange = $graphTopScale - $graphBottomScale;
//all data identical
}
}
+ // Added by Chuck Scott - 8/26/16 - Option to set minimum value for the top of the Y axis
+ public function setMinMaxY($minMaxYValue) {
+ $this->minMaxYValue = $minMaxYValue;
+ }
+
public function setDataCurrency($currency_type = 'dollar')
{
switch (strtolower($currency_type)) {
/*
* Load and instatiate Smarty Templates
*/
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/lib/Smarty-3.1.21/libs/SmartyBC.class.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH.'/lib/Smarty-3.1.21/libs/SmartyBC.class.php';
$this->template = new SmartyBC ();
/*
// Load Members Data Class
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class exports the currently selected members list
// Load Members Data Class
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class exports the currently selected members list
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class exports the currently selected members list
}
// Load PHPGraphLib
- require_once(GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php');
+ require_once GLM_MEMBERS_PLUGIN_LIB_PATH.'/phpgraphlib-master/phpgraphlib.php';
// Create graph object
$graph = new PHPGraphLib(600,300);
$graph->addData($data);
+ $graph->setMinMaxY(10); // Set minimum top value to Y axis
// $graph->setTitle($graphTitle); - In this case the graph title is on the pop-up dialog box.
$graph->setTextColor("black");
$graph->setLineColor("blue");
// Load Member Info data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
/*
* This class exports the currently selected members list
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class performs the work for the default action of the "Members" menu
$membersList = $this->getSimpleMembersList();
// Check for required Member Types
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php';
$MemberTypes = new GlmDataMemberTypes($this->wpdb, $this->config);
$memberTypesStats = $MemberTypes->getStats();
$haveMemberTypes = ($memberTypesStats > 0);
// Check for required Categories
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$Categories = new GlmDataCategories($this->wpdb, $this->config);
$categoriesStats = $Categories->getStats();
$haveCategories = ($categoriesStats > 0);
// Check for required Amenities
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php';
$Amenities = new GlmDataAmenities($this->wpdb, $this->config);
$amenitiesStats = $Amenities->getStats();
$haveAmenities = ($amenitiesStats > 0);
// Check for required Cities
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
$Cities = new GlmDataCities($this->wpdb, $this->config);
$citiesStats = $Cities->getStats();
$haveCities = ($citiesStats > 0);
// Check for required Regions
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php';
$Regions = new GlmDataRegions($this->wpdb, $this->config);
$regionsStats = $Regions->getStats();
$haveRegions = ($regionsStats > 0);
// Get number of member information records with pending updates
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
$MemberInfo = new GlmDataMemberInfo($this->wpdb, $this->config);
$membersPending = $MemberInfo->getStats('status = '.$this->config['status_numb']['Pending']);
settype($dbVersion, 'string');
// Load database activation class to get access to database version information
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/activate.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/activate.php';
$activate = new glmMembersPluginActivate($this->wpdb, $this->config, true);
$option = '';
case 'import_connections':
// Load Member Info Data Class and get info data for later use
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/glmMemberImportFromConnections.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/glmMemberImportFromConnections.php';
$Connections = new GlmMemberImportFromConnections($this->wpdb, $this->config);
if (isset($_REQUEST['import']) && $_REQUEST['import'] == 'now') {
case 'importImages':
- require_once(GLM_MEMBERS_PLUGIN_PATH.'/models/admin/ajax/imageUpload.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH.'/models/admin/ajax/imageUpload.php';
$ImageUpload = new GlmMembersAdmin_ajax_imageUpload($this->wpdb, $this->config);
$refType = $this->config['ref_type_numb']['MemberInfo'];
* Import Member Images
*/
-require_once(GLM_MEMBERS_PLUGIN_PATH.'/models/admin/ajax/imageUpload.php');
+require_once GLM_MEMBERS_PLUGIN_PATH.'/models/admin/ajax/imageUpload.php';
$ImageUpload = new GlmMembersAdmin_ajax_imageUpload($this->wpdb, $this->config);
$refType = $this->config['ref_type_numb']['MemberInfo'];
*/
// Load Members data abstract
-require_once( GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsGeneral.php' );
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsGeneral.php' ;
/*
* This class performs the work for the default action of the "Members" menu
)
);
}
-
+
// Check for submission option
$option = '';
if ( isset( $_REQUEST[ 'option' ] ) && $_REQUEST[ 'option' ] == 'submit' ) {
$option = $_REQUEST['option'];
}
-
+
$this->updateRequiredPages();
switch( $option ) {
case 'submit':
foreach ( $this->config[ 'addOns' ] as $a ) {
if ( isset( $a[ 'requiredPages' ] ) ) {
- foreach( $a[ 'requiredPages'] as $pageName => $pageData ) {
-
+ foreach( $a[ 'requiredPages'] as $pageName => $pageData ) {
+
$current_page_id_value = get_option( GLM_MEMBERS_PLUGIN_OPTION_PREFIX.$pageData[ 'underscored_title' ] );
-
+
// the static slug name used to create unique form field names
$page_title_field_name = 'glm_members_database_title_' . $this->requiredPages[ $a[ 'underscored_name'] ][ $pageName ][ 'static_name' ];
$page_id_field_name = 'glm_members_database_id_' . $this->requiredPages[ $a[ 'underscored_name' ] ][ $pageName ][ 'static_name' ];
-
+
// the slug used to update the options table
$page_option_slug = GLM_MEMBERS_PLUGIN_OPTION_PREFIX.$pageData['underscored_title'];
$current_page_title_value = $this->requiredPages[ $a[ 'underscored_name' ] ][ $pageName][ 'title' ];
-
+
if ( isset( $_POST[ $page_title_field_name ] ) && ! empty( $_POST[ $page_title_field_name ] ) ){
$new_page_title_value = filter_var( $_POST[ $page_title_field_name ], FILTER_SANITIZE_STRING);
} else {
$title_error = true;
}
-
+
// check to make sure the post value isn't empty and is numeric
if ( isset( $_POST[ $page_id_field_name ] ) && ! empty( $_POST[ $page_id_field_name ] ) && is_numeric( $_POST[ $page_id_field_name ] ) ){
$new_page_id_value = filter_var( $_POST[ $page_id_field_name ], FILTER_SANITIZE_STRING );
} else {
$id_error = true;
}
-
+
// if the current page title matches the posted value, no need to update
if ( $current_page_title_value !== $new_page_title_value ){
$args = array (
);
wp_update_post( $args );
}
-
+
// ensure the new page id exists and isn't already the same as the current page ID value
if ( $current_page_id_value !== $new_page_id_value && get_post_status( $new_page_id_value ) ){
update_option( $page_option_slug, $new_page_id_value );
- }
+ }
}
}
}
-
+
$this->updateRequiredPages();
-
+
// Update all general setttings
$generalSettings = $this->updateEntry( 1 );
if ( $generalSettings[ 'status' ] ) {
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsTerms.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsTerms.php';
/*
* This class performs the work for the default action of the "Members" menu
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsTheme.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/settings/dataSettingsTheme.php';
/*
* This class performs the work for the default action of the "Members" menu
$this->config = $config;
}
-
+
public function addScheme($url, $scheme = 'http://')
{
return parse_url($url, PHP_URL_SCHEME) === null ?
settype($dbVersion, 'string');
// Load database activation class to get access to database version information
- require_once (GLM_MEMBERS_PLUGIN_PATH . '/activate.php');
+ require_once GLM_MEMBERS_PLUGIN_PATH . '/activate.php';
$activate = new glmMembersPluginActivate($this->wpdb, $this->config, true);
$option = '';
if (isset($_REQUEST['option']) && $_REQUEST['option'] != '') {
$option = $_REQUEST['option'];
}
-
+
switch($option) {
case 'transfer_videos':
-
+
$resultMessage = '<pre>$_REQUEST: ' . print_r($_REQUEST, true) . '</pre>';
$sql = "
SELECT id,descr,video_url
FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info
- WHERE descr like '%youtube.com/embed%'
+ WHERE descr like '%youtube.com/embed%'
ORDER BY id";
$results = $this->wpdb->get_results( $sql, ARRAY_A );
//echo '<pre>$results: ' . print_r($results, true) . '</pre>';
echo "TEST". $this->addScheme($srcMatches[0])."TESTEND";
if ( preg_match( '%youtube.com/embed/([^?"]*)%', $matches[1], $srcMatches ) ) {
echo '<pre>$srcMatches: ' . print_r($srcMatches, true) . '</pre>';
-
+
}
$sqlUpdate = "
UPDATE " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info
SET video_url='" . $this->addScheme($srcMatches[0]) . "'
WHERE id='" . $member['id'] . "'";
$this->wpdb->query($sqlUpdate);
-
+
$filteredString = str_replace($iframeCode,"",$descr);
-
+
$sqlDelete = "
UPDATE " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_info
SET descr='" . $filteredString . "'
WHERE id='" . $member['id'] . "'";
$this->wpdb->query($sqlDelete);
-
+
//$resultMessage .= '<pre>$matches: ' . print_r($matches, true) . '</pre>';
}
}
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class performs the work for the default action of the "Members" menu
$detailViewCounts = array('day' => 0, 'week' => 0, 'month' => 0);
// Check for required Member Types
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php';
$MemberTypes = new GlmDataMemberTypes($this->wpdb, $this->config);
$memberTypesStats = $MemberTypes->getStats();
$haveMemberTypes = ($memberTypesStats > 0);
$showArchived = true;
}
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
$MemberInfo = new GlmDataMemberInfo($this->wpdb, $this->config);
$memberInfoRecords = $MemberInfo->getList("T.member = $memberID".$hideArchived, 'T.status');
", ARRAY_A);
}
-
+
// End of - Get member view stats
$thisDate = date('m/d/Y');
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class performs the work for the default action of the "Members" menu
*/
// Check for required Member Types
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php';
$MemberTypes = new GlmDataMemberTypes($this->wpdb, $this->config);
$memberTypesStats = $MemberTypes->getStats();
$haveMemberTypes = ($memberTypesStats > 0);
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
/*
* This class performs the work for the default action of the "Members" menu
$this->isActive = $this->isActive();
// Get member base data
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
$Members = new GlmDataMembers($this->wpdb, $this->config);
$this->memberData = $Members->getEntry($this->memberID);
$this->fields['logo']['i_prefix'] = 'memb_'.$this->memberID.'_';
* These will be sorted so sub-categories fall under their
* respective category.
*/
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$Categories = new GlmDataCategories($this->wpdb, $this->config);
$categories = $Categories->getListSortedParentChild();
$this->updateAmenities();
// Load Image data class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
$Images = new GlmDataImages($this->wpdb, $this->config);
// Update image gallery titles, descriptions, and image positions then return current image gallery
case 'clone':
// Load Member Info Clone Class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/glmMemberInfoClone.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/glmMemberInfoClone.php';
$CloneMemberInfo = new GlmMemberInfoClone($this->wpdb, $this->config);
// Clone the current member info
}
// Get list of Available Member Amenities to use for picklists
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php';
$Amenities = new GlmDataAmenities($this->wpdb, $this->config);
$this->amenities = $Amenities->getList("T.ref_type = ".$this->config['ref_type_numb']['MemberInfo']);
// Also, if this is not a create, get any image gallery images
if ($this->memberInfoID) {
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
$Images = new GlmDataImages($this->wpdb, $this->config);
$this->imageGallery = $Images->getGallery($this->config['ref_type_numb']['MemberInfo'], $this->memberInfoID);
$this->haveImageGallery = ($this->imageGallery != false);
$cName = trim(filter_var($_REQUEST['newCityName']));
// Try to add the city
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
$Cities = new GlmDataCities($this->wpdb, $this->config);
$cID = $Cities->addCity($cName);
{
// Instatiate the dataCategories class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$Categories = new GlmDataCategories($this->wpdb, $this->config);
// Instatiate categoryMemberInfo class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategoryMemberInfo.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategoryMemberInfo.php';
$CategoryMemberInfo = new GlmDataCategoryMemberInfo($this->wpdb, $this->config);
// Get any selected categories
{
// Instantiate Amenities data class
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php';
$Amenities = new GlmDataAmenities($this->wpdb, $this->config);
$selectedAmenities = array();
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class performs the work for the default action of the "Members" menu
$membersList = $this->getSimpleMembersList();
// Check for required Member Types
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php';
$MemberTypes = new GlmDataMemberTypes($this->wpdb, $this->config);
$memberTypesStats = $MemberTypes->getStats();
$haveMemberTypes = ($memberTypesStats > 0);
// Check for required Categories
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$Categories = new GlmDataCategories($this->wpdb, $this->config);
$categoriesStats = $Categories->getStats();
$haveCategories = ($categoriesStats > 0);
// Check for required Amenities
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataAmenities.php';
$Amenities = new GlmDataAmenities($this->wpdb, $this->config);
$amenitiesStats = $Amenities->getStats();
$haveAmenities = ($amenitiesStats > 0);
// Check for required Cities
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
$Cities = new GlmDataCities($this->wpdb, $this->config);
$citiesStats = $Cities->getStats();
$haveCities = ($citiesStats > 0);
// Check for required Regions
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php';
$Regions = new GlmDataRegions($this->wpdb, $this->config);
$regionsStats = $Regions->getStats();
$haveRegions = ($regionsStats > 0);
// Get number of member information records with pending updates
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
$MemberInfo = new GlmDataMemberInfo($this->wpdb, $this->config);
$membersPending = $MemberInfo->getStats('status = '.$this->config['status_numb']['Pending']);
*/
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMembers.php';
/*
* This class performs the work for the default action of the "Members" menu
}
// Get a list of categories for filtering
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$Categories = new GlmDataCategories($this->wpdb, $this->config);
$categories = $Categories->getListSortedParentChild(false);
FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."members I
WHERE I.featured = 1
AND I.id = T.id
-
+
)";
$filterFeatured = true;
$haveFilter = true;
}
}
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
$listAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-members-list']['attributes'];
$detailAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-member-detail']['attributes'];
*/
// Load Member Types data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php';
/*
* This class performs the work for the default action of the "Members" menu
*/
// Load Member Types data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
/*
* This class performs the work for the default action of the "Members" menu
*/
// Load Member Types data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberTypes.php';
/*
* This class performs the work for the default action of the "Members" menu
*/
// Load Member Types data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataRegions.php';
/*
* This class performs the work for the default action of the "Members" menu
);
// Load Members data abstract
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
+require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php';
/*
* This class performs the work for the default action of the "Members" menu
$haveMember = true;
// Also get any image gallery images
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php');
+ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php';
$Images = new GlmDataImages($this->wpdb, $this->config);
$imageGallery = $Images->getGallery($this->config['ref_type_numb']['MemberInfo'], $memberData['id']);
// Squash Bread Crumbs if using Breadcrumb NavXT plugin -- NEED TO CREATE A MANAGEMENT OPTION FOR THIS TO TURN IT ON/OFF
$plugin_name = 'glm-member-db/glm-member-db.php';
-include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
+include_once ABSPATH . 'wp-admin/includes/plugin.php';
if (is_plugin_active($plugin_name)) {
add_action('bcn_after_fill', function($trail) {
global $post;
}
// Get setup and configuration
-require_once('defines.php');
+require_once 'defines.php';
// Delete options
delete_option('glmMembersDatabasePluginVersion');
{include file='admin/error/header.html'}
-<center>
+
+<div id="awShucks" class="graph-dialog glm-dialog-box" title="Oops!">
<div id="glm-admin-content-container" class="glm-center" style="width: 600px; text-align: left; padding: 1em;">
<center>
<h1 class="glm-error">Aw shucks!</h1>
{/if}
<p>
- Please head back to the link below and try again. If you continue to get this error,
- please call for assistance.
+ You may click your browser's "BACK" button or click on the link below to continue. If you
+ continue keep seeing this error, please call for assistance.
</p>
<p style="text-align: center;"><a href="{$siteBaseUrl}">Return to Home Page</a></p>
</div>
</center>
</div>
-</center>
+</div>
+
+<script type="text/javascript">
+ jQuery(document).ready(function($) {
+
+ // Create graph dialog boxes
+ $("#awShucks").dialog({
+ autoOpen: true,
+ resizable: false,
+ modal: true,
+ width:'auto'
+ });
+
+ });
+</script>
+
{include file='admin/footer.html'}
+
{include file='admin/error/header.html'}
-<center>
+<div id="awShucks" class="graph-dialog glm-dialog-box" title="Oops!">
<div id="glm-admin-content-container" class="glm-center" style="width: 600px; text-align: left; padding: 1em;">
<center>
<h1 class="glm-error">Aw shucks!</h1>
</div>
</center>
</div>
-</center>
+</div>
+
+<script type="text/javascript">
+ jQuery(document).ready(function($) {
+
+ // Create graph dialog boxes
+ $("#awShucks").dialog({
+ autoOpen: true,
+ resizable: false,
+ modal: true,
+ width:'auto'
+ });
+
+ });
+</script>
+
{include file='admin/footer.html'}
<input id="updateMember" type="submit" value="{if $memberID && $member}Update member{else}Add new member{/if}">
{/if}
</form>
- {else}
- {if $haveMember}
- <table class="glm-admin-table">
- <tr>
- <th>{$terms.term_member_cap} Name:</th>
- <td>{$member.fieldData.name}</td>
- </tr>
- <tr>
- <th>{$terms.term_member_cap} Display & Access:</th>
- <td>{$member.fieldData.access.name}</td>
- </tr>
- <tr>
- <th>{$terms.term_member_cap} Type:</th>
- <td>{$member.fieldData.member_type.name}</td>
- </tr>
- <tr><th>Date created:</th><td>{$member.fieldData.created.date}</td></tr>
- <tr>
- <td> </td>
- <td>
- <h3>{$terms.term_member_cap} Address</h3>
- <p>The map below will display the likely location as you enter or edit the address.</p>
- </td>
- </tr>
- <tr>
- <th>Address:</th>
- <td>
- {$member.fieldData.addr1}<br>
- {if $member.fieldData.addr2 != ''}{$member.fieldData.addr2}<br>{/if}
- {$member.fieldData.city.name}, {$member.fieldData.state.name} {$member.fieldData.zip}<br>
- {$member.fieldData.country.name}
- </td>
- </tr>
- <tr>
- <th>Categories</th>
- <td class="glm-item-container">
- {if isset($member.fieldData.categories) && $member.fieldData.categories}
- {foreach from=$member.fieldData.categories item=c}
- <div data-id="{$c.id}" class="glm-dynSelect-item glm-members-catgegory">
- {if $c.parent_name != ''}{$c.parent_name}: {/if}{$c.name}
- <input type="hidden" name="category[{$c.id}]" value="{$c.id}">
- </div>
- {/foreach}
- {/if}
- </td>
- </tr>
- <tr><th>Region:</th><td>{$member.fieldData.region.name}</td></tr>
- <tr><th>Phone #:</th><td>{$member.fieldData.phone}</td></tr>
- <tr><th>Toll Free #:</th><td>{$member.fieldData.toll_free}</td></tr>
- <tr><th>Web Address (URL):</th><td><a href="{$member.fieldData.url}" target="urlTarget">{$member.fieldData.url}</a></td></tr>
- <tr><th>E-Mail Address:</th><td>{$member.fieldData.email}</td></tr>
- <tr><th>Logo:</th>
- <td {if $member.fieldFail.logo}class="glm-form-bad-input"{/if}>
- {if $member.fieldData.logo}
- <div class="glm-galleryImage" data-id="logo">
- <img src="{$glmPluginMediaUrl}/images/small/{$member.fieldData.logo}">
- </div>
- <div id="glm-galleryImageLarger_logo" class="glm-imageDialog"><img src="{$glmPluginMediaUrl}/images/large/{$member.fieldData.logo}"></div>
- {/if}
- </td>
- </tr>
- <tr>
- <th>Credit Cards Accepted:</th>
- <td>
- {foreach from=$member.fieldData.cc_type.bitmap item=v}
- {$v.name}
- {/foreach}
- </td>
- </tr>
- <tr><th>Notes:</th><td>{$member.fieldData.notes}</td></tr>
- </table>
- {else}
- <h3>No {$terms.term_member} information available.</h3>
- {/if}
{/if}
{else}
<div id="deleteMemberInfoButton" class="button button-primary glm-right">Delete this {$terms.term_member_cap} Profile Version</div>
<div id="deleteMemberInfoDialog" class="glm-dialog-box" title="Delete {$terms.term_member_cap} Profile">
{if $memberInfo.fieldData.status.value == 10}
- <p><center><a id="deleteMemberInfoCancel" class="button button-primary">Cancel</a></center></p>
+ <p><a id="deleteMemberInfoCancel" class="button button-primary">Cancel</a></p>
<p>
<span class="glm-notice">NOTE:</span> This {$terms.term_member} profile is the <b>currently active</b> version! You may not delete an active profile version.
To delete this version, please select another version to be active or change the "Profile Status" on this page to something
<a id="glm-member-info-cat" data-show-table="glm-table-cat" class="glm-member-info-tab nav-tab">Categories & Amenities</a>
<a id="glm-member-info-images" data-show-table="glm-table-images" class="glm-member-info-tab nav-tab">Images</a>
<a id="glm-member-info-video" data-show-table="glm-table-video" class="glm-member-info-tab nav-tab">Video</a>
- <a id="glm-member-info-ccards" data-show-table="glm-table-ccards" class="glm-member-info-tab nav-tab">Credit Cards</a>
+<!-- Not using credit cards currently <a id="glm-member-info-ccards" data-show-table="glm-table-ccards" class="glm-member-info-tab nav-tab">Credit Cards</a> -->
{if $memberUpdated}<span class="glm-notice glm-flash-updated glm-right">{$terms.term_member_cap} Profile Updated</span>{/if}
{if $memberUpdateError}<span class="glm-error glm-flash-updated glm-right">{$terms.term_member_cap} Profile Update Error</span>{/if}
</h2>
<table id="glm-table-images" class="glm-admin-table glm-hidden glm-member-info-table">
<tr>
- <td> </td>
+ <td> </td>
<td>
<p>
Best image size to provide is between 800 and 1000 pixels wide and stored as a JPG or JPEG file.
</td>
</tr>
<tr>
- </b><div style="float: right; margin: .2em .2em 0 0;" id="imageUploadCancel" class="button button-primary glm-right">Cancel Upload</div>
+ <td><div style="float: right; margin: .2em .2em 0 0;" id="imageUploadCancel" class="button button-primary glm-right">Cancel Upload</div></td>
<td class="glm-statusPrompt">Name: </td><td class="glm-statusValue">{ fileName }</td>
</tr>
<tr><td class="glm-statusPrompt">Type: </td><td class="glm-statusValue">{ fileType }</td></tr>
</div>
</li>
<div id="glm-galleryImageLarger2_{ id }" class="glm-imageDialog">
- <bust-stupid-ngg-image-selection src="{$glmPluginMediaUrl}/images/large/{ filename }" /></bust-stupid-ngg-image-selection>
+ <bust-stupid-ngg-image-selection src="{$glmPluginMediaUrl}/images/large/{ filename }"></bust-stupid-ngg-image-selection>
</div>
<!-- End of template -->
<div class="glm-noImageDropText glm-imageItemHidden">HTML5 file drag-and-drop not supported by your browser.<br>Use "Browse" button above to upload an image.</div>
</div>
<div class="glm-right"><b>No Featured Image:</b> <input type="radio" name="galleryImage_featured" value="0"><br> </div>
+ <div class="glm-left">Click images to view full size.</div>
<ul class="glm-galleryImages">
<!-- Note that id in li is needed for sorting -->
{if $haveImageGallery}
Replace this video file:</b> <input type="file" name="video_file">
<input type="checkbox" name="video_file_delete"> Delete Video File<br>
{else}
- New file:</b> <input type="file" name="video_file_new">
+ <b>New file:</b> <input type="file" name="video_file_new">
{/if}
</td>
</tr>
*/
var availableTags = [
{foreach $membersList as $m}
- { label: "{$m.name|unescape:'html'}", value: "{$m.name|unescape:'html'}", id: '{$m.id}' },
+ { label: "{$m.name|unescape:'html'|replace:'"':''}", value: "{$m.name|unescape:'html'|replace:'"':''}", id: '{$m.id}' },
{/foreach}
];
$( "#glmMembersList" ).autocomplete({
{include file='front/error/header.html'}
-<center>
- <div id="glm-admin-content-container" class="glm-center" style="width: 600px; text-align: left; padding: 1em;">
+<div id="awShucks" title="">
<center>
<h1 class="glm-error">Aw shucks!</h1>
<h3>We couldn't get you the page you wanted. </h3>
<p style="text-align: center;"><a href="{$siteBaseUrl}">Return to Home Page</a></p>
</div>
</center>
- </div>
</center>
+
+<script type="text/javascript">
+ jQuery(document).ready(function($) {
+
+ // Create graph dialog boxes
+ $("#awShucks").dialog({
+ autoOpen: true,
+ resizable: false,
+ modal: true,
+ width:'900'
+ });
+
+ });
+</script>
+
{include file='front/footer.html'}
+
{include file='front/error/header.html'}
-<center>
- <div id="glm-admin-content-container" class="glm-center" style="width: 600px; text-align: left; padding: 1em;">
+<div id="awShucks" title="">
<center>
<h1 class="glm-error">Aw shucks!</h1>
<p><b>We couldn't get you the page you wanted.</b></p>
<p style="margin-top: .5em; text-align: center;"><a href="{$siteBaseUrl}">Return to Home Page</a></p>
</div>
</center>
- </div>
</center>
+
+<script type="text/javascript">
+ jQuery(document).ready(function($) {
+
+ // Create graph dialog boxes
+ $("#awShucks").dialog({
+ autoOpen: true,
+ resizable: false,
+ modal: true,
+ width:'900'
+ });
+
+ });
+</script>
+
{include file='front/footer.html'}
</div>
{/if}
{apply_filters('glm-member-db-front-members-detail-amenitiesAfter', '', $member.id)}
+<!-- Not using credit cards for now
{apply_filters('glm-member-db-front-members-detail-creditcardsBefore', '', $member.id)}
{if $member.cc_type && $settings.detail_show_creditcards}
<div id="glm-member-detail-creditcards-toggle" class="glm-member-detail-content-toggle">Credit Cards</div>
<div id="glm-member-detail-creditcards-container" class="glm-member-detail-content-data small-12">
<table class="glm-member-detail-table">
-<!-- <tr><th>Credit Cards Accepted:</th></tr>-->
+ <tr><th>Credit Cards Accepted:</th></tr>
{foreach $member.cc_type.names as $c}
<tr><td>{$c}</td></tr>
{/foreach}
</div>
{/if}
{apply_filters('glm-member-db-front-members-detail-creditcardsAfter', '', $member.id)}
+-->
{apply_filters('glm-member-db-front-members-detail-categoriesBefore', '', $member.id)}
{if $member.categories && $settings.detail_show_categories}
<div id="glm-member-detail-categories-toggle" class="glm-member-detail-content-toggle">Categories</div>
</ul>
</div>
{/if}
+<!-- Not using credit cards for now
{if $m.cc_type && $settings.list_map_show_creditcards}
<div class="glm-member-list-items">
<b>Credit Cards Accepted:</b>
</ul>
</div>
{/if}
+-->
{if $settings.list_map_show_amenities}
<div class="glm-member-list-items">
<b>Amenities:</b>