From: Chuck Scott Date: Tue, 12 Jan 2016 20:11:13 +0000 (-0500) Subject: Various minor fixes to work with Packaging updates. X-Git-Tag: v1.0.7^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=94e803b8e99004b072606ba12df4ae299729e962;p=WP-Plugins%2Fglm-member-db-contacts.git Various minor fixes to work with Packaging updates. --- diff --git a/glm-member-db-contacts.php b/glm-member-db-contacts.php index 87f9183..0f61e43 100644 --- a/glm-member-db-contacts.php +++ b/glm-member-db-contacts.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Contacts * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.0.6 + * Version: 1.0.7 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -33,7 +33,7 @@ * version when there's a change in the database!! Use the * version nunmber of that release for the DB version. */ -define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.0.6'); +define('GLM_MEMBERS_CONTACTS_PLUGIN_VERSION', '1.0.7'); define('GLM_MEMBERS_CONTACTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION', '1.0.44'); define('REQUIRED_GLM_MEMBERS_PLUGIN_MIN_DB_VERSION', '1.0.41'); @@ -230,7 +230,7 @@ function my_login_redirect( $redirect_to, $request, $user ) { // If we get here, this is a pure contact user, start them at their profile - return '/wp-admin/admin.php?page=glm-members-admin-menu-profile'; + return '/wp-admin/admin.php?page=glm-members-admin-menu-member'; } diff --git a/models/admin/member/contacts.php b/models/admin/member/contacts.php index 467effd..d98f99f 100644 --- a/models/admin/member/contacts.php +++ b/models/admin/member/contacts.php @@ -144,6 +144,9 @@ class GlmMembersAdmin_member_contacts extends GlmDataContacts // Check that we have good member data if (is_array($memberData) && isset($memberData['id']) && $memberData['id'] > 0) { + // Also store the member id in a WordPress Option in case user clicks "Member" sub-menu + update_option('glmMembersDatabaseMemberID', $this->memberID); + $haveMember = true; $memberName = $memberData['name']; diff --git a/models/admin/profile/index.php b/models/admin/profile/index.php index 0704d3a..1564bfd 100644 --- a/models/admin/profile/index.php +++ b/models/admin/profile/index.php @@ -1,7 +1,7 @@ config['loggedInUser']['contactUser']) { add_submenu_page( $mainMenuSlug, - 'My Profile', - 'My Profile', + 'User Profile', + 'User Profile', 'glm_members_edit_my_contact_info', 'glm-members-admin-menu-profile', function() {$this->controller('profile');} diff --git a/views/admin/member/contacts.html b/views/admin/member/contacts.html index bb87d19..f1550ce 100644 --- a/views/admin/member/contacts.html +++ b/views/admin/member/contacts.html @@ -15,7 +15,7 @@ {if $option == 'list'} {if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)} - Add New Member Contact + Add New Member Contact {/if}
List Filters:   @@ -108,16 +108,16 @@ {if $option == 'create' || $option == 'edit'} - Return to Contact List + Return to Contact List {if $option == 'create'}

Add New Contact

{else} {if $contactUpdated}

Contact Updated

{/if} - Delete this Contact + Delete this Contact
-

Cancel

+

Cancel

@@ -311,7 +311,7 @@ {if $contactInfo.fieldData.image}
- Close
+ Close
@@ -319,7 +319,7 @@ @@ -347,7 +347,7 @@
Delete Image
{$contactInfo.fieldData.image}
-

Show Large Image

+

Show Large Image

City -
Add a new City
+
Add a new City
@@ -359,7 +359,7 @@

* Required

- Cancel + Cancel
@@ -412,7 +412,7 @@
Web Address (URL): {if $contactInfo.fieldData.url} - Test Link + Test Link {/if} http:// {if $contactInfo.fieldFail.url}

{$contactInfo.fieldFail.url}

{/if} @@ -525,7 +525,7 @@ {/if} {else} -

ERROR: Specified member not found!

+

No current member.

{/if}