From 318567ce5634c0af6e86b8168f13e674e69f8974 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 20 Sep 2016 16:25:17 -0400 Subject: [PATCH] Changed Live Cam to include the ability to use it as an off-site link to a Webcam (or whatever) page. --- classes/data/settings/dataSettingsTerms.php | 7 + config/plugin.ini | 10 +- index.php | 2 +- models/front/members/detail.php | 17 +- ...1.1.18.sql => create_database_V1.1.19.sql} | 7 +- setup/databaseScripts/dbVersions.php | 1 + ..._V1.1.18.sql => drop_database_V1.1.19.sql} | 0 .../update_database_V1.1.19.sql | 14 + views/admin/management/terms.html | 14 + views/admin/member/memberInfo.html | 615 +----------------- views/admin/member/memberInfo/editCamera.html | 46 ++ .../admin/member/memberInfo/editCategory.html | 106 +++ .../admin/member/memberInfo/editContact.html | 36 + .../member/memberInfo/editCreditCards.html | 15 + views/admin/member/memberInfo/editImages.html | 166 +++++ .../admin/member/memberInfo/editLocation.html | 110 ++++ views/admin/member/memberInfo/editStatus.html | 61 ++ views/admin/member/memberInfo/editVideo.html | 58 ++ views/front/members/detail.html | 11 +- views/front/members/list.html | 6 + 20 files changed, 684 insertions(+), 618 deletions(-) rename setup/databaseScripts/{create_database_V1.1.18.sql => create_database_V1.1.19.sql} (99%) rename setup/databaseScripts/{drop_database_V1.1.18.sql => drop_database_V1.1.19.sql} (100%) create mode 100644 setup/databaseScripts/update_database_V1.1.19.sql create mode 100644 views/admin/member/memberInfo/editCamera.html create mode 100644 views/admin/member/memberInfo/editCategory.html create mode 100644 views/admin/member/memberInfo/editContact.html create mode 100644 views/admin/member/memberInfo/editCreditCards.html create mode 100644 views/admin/member/memberInfo/editImages.html create mode 100644 views/admin/member/memberInfo/editLocation.html create mode 100644 views/admin/member/memberInfo/editStatus.html create mode 100644 views/admin/member/memberInfo/editVideo.html diff --git a/classes/data/settings/dataSettingsTerms.php b/classes/data/settings/dataSettingsTerms.php index d379f960..64451238 100644 --- a/classes/data/settings/dataSettingsTerms.php +++ b/classes/data/settings/dataSettingsTerms.php @@ -433,6 +433,13 @@ class GlmDataSettingsTerms extends GlmDataAbstract 'field' => 'term_contact_plur_cap', 'type' => 'text', 'use' => 'a' + ), + + // Live Camera Cap + 'term_webcam_cap' => array( + 'field' => 'term_webcam_cap', + 'type' => 'text', + 'use' => 'a' ) diff --git a/config/plugin.ini b/config/plugin.ini index 24dec222..df74ff41 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -323,8 +323,10 @@ video_type_numb['Vimeo'] = 2 ;video_type_numb['Ogg'] = 23 ; Live Cam Types -live_cam_type[1] = 'Image' -;live_cam_type[2] = 'Stream' +live_cam_type[1] = 'Web Page' +live_cam_type[2] = 'Camera Image' +;live_cam_type[3] = 'Video Stream' -live_cam_type_numb['Image'] = 1 -;live_cam_type_numb['Stream'] = 2 +live_cam_type_numb['Web Page'] = 1 +live_cam_type_numb['Camera Image'] = 2 +;live_cam_type_numb['Video Stream'] = 3 diff --git a/index.php b/index.php index 37a78778..0b1c6260 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ */ define('GLM_MEMBERS_PLUGIN_VERSION', '2.5.6'); -define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.18'); +define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.19'); // Check if plugin version is not current in WordPress option and if needed updated it if (GLM_MEMBERS_PLUGIN_VERSION != get_option('glmMembersDatabasePluginVersion')) { diff --git a/models/front/members/detail.php b/models/front/members/detail.php index 1cd7eb06..a1624dda 100644 --- a/models/front/members/detail.php +++ b/models/front/members/detail.php @@ -315,22 +315,7 @@ class GlmMembersFront_members_detail extends GlmDataMemberInfo } else { $memberData['video_embed'] = "Could not find video"; } - - // Create embed code for the live cam feed. Image or video based on selected type - $liveCamType = $memberData['live_cam_type']['name']; - $liveCamUrl = $memberData['live_cam_url']; - if (!preg_match("~^(?:f|ht)tps?://~i", $liveCamUrl)) { - $liveCamUrl = "http://" . $liveCamUrl; - } - if ($liveCamType == 'Image') { - $liveCamEmbed = ''; - } else if ($liveCamType == 'Stream') { - $liveCamEmbed = ''; - } else { - $liveCamEmbed = "Nope"; - } - $memberData['live_cam_embed'] = $liveCamEmbed; - + } diff --git a/setup/databaseScripts/create_database_V1.1.18.sql b/setup/databaseScripts/create_database_V1.1.19.sql similarity index 99% rename from setup/databaseScripts/create_database_V1.1.18.sql rename to setup/databaseScripts/create_database_V1.1.19.sql index cc17b946..86e7d14f 100644 --- a/setup/databaseScripts/create_database_V1.1.18.sql +++ b/setup/databaseScripts/create_database_V1.1.19.sql @@ -427,6 +427,7 @@ CREATE TABLE {prefix}settings_terms ( term_contact_cap TINYTEXT NULL, term_contact_plur TINYTEXT NULL, term_contact_plur_cap TINYTEXT NULL, + term_webcam_cap TINYTEXT NULL, PRIMARY KEY (id) ); @@ -479,7 +480,8 @@ INSERT INTO {prefix}settings_terms term_contact, term_contact_cap, term_contact_plur, - term_contact_plur_cap + term_contact_plur_cap, + term_webcam_cap ) VALUES ( @@ -527,7 +529,8 @@ INSERT INTO {prefix}settings_terms 'contact', 'Contact', 'contacts', - 'Contacts' + 'Contacts', + 'Webcam' ) ; diff --git a/setup/databaseScripts/dbVersions.php b/setup/databaseScripts/dbVersions.php index befc21dd..d31121a8 100644 --- a/setup/databaseScripts/dbVersions.php +++ b/setup/databaseScripts/dbVersions.php @@ -50,6 +50,7 @@ $glmMembersDbVersions = array( '1.1.16' => array('version' => '1.1.16', 'tables' => 18, 'date' => '8/22/16'), '1.1.17' => array('version' => '1.1.17', 'tables' => 18, 'date' => '8/29/16'), '1.1.18' => array('version' => '1.1.18', 'tables' => 18, 'date' => '9/16/16'), + '1.1.19' => array('version' => '1.1.19', 'tables' => 18, 'date' => '9/20/16') ); diff --git a/setup/databaseScripts/drop_database_V1.1.18.sql b/setup/databaseScripts/drop_database_V1.1.19.sql similarity index 100% rename from setup/databaseScripts/drop_database_V1.1.18.sql rename to setup/databaseScripts/drop_database_V1.1.19.sql diff --git a/setup/databaseScripts/update_database_V1.1.19.sql b/setup/databaseScripts/update_database_V1.1.19.sql new file mode 100644 index 00000000..4cda599d --- /dev/null +++ b/setup/databaseScripts/update_database_V1.1.19.sql @@ -0,0 +1,14 @@ +-- Gaslight Media Members Database +-- File Created: 8/15/16 14:59:42 +-- Database Version: 1.1.18 +-- 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 dashes +-- Sets which character to use to separate phone numbers + +ALTER TABLE {prefix}settings_terms ADD COLUMN term_webcam_cap TINYTEXT NULL; + +---- + +UPDATE TABLE {prefix}settings_terms SET term_webcam_cap = 'Webcam'; \ No newline at end of file diff --git a/views/admin/management/terms.html b/views/admin/management/terms.html index 01824b7a..9e6b67b9 100644 --- a/views/admin/management/terms.html +++ b/views/admin/management/terms.html @@ -377,6 +377,20 @@ + + Live Camera: + + + + + + +
Capitalized: + + {if $termSettings.fieldFail.term_webcam_cap}

{$termSettings.fieldFail.term_webcam_cap}

{/if} +
+ + diff --git a/views/admin/member/memberInfo.html b/views/admin/member/memberInfo.html index 18f409c2..a2c634df 100644 --- a/views/admin/member/memberInfo.html +++ b/views/admin/member/memberInfo.html @@ -106,615 +106,35 @@ - - - - - - - - - - - - - - - - - - - - - -
Profile Name: - - {if $memberInfo.fieldFail.reference_name}

{$memberInfo.fieldFail.reference_name}

{/if}
- The "Profile Name" field is used to help identify this particular {$terms.term_member} profile. {$terms.term_member_plur_cap} may have multiple profiles, - only one of which can be active at a time. Multiple profiles make it easy to manage separate sets of information that may be - used at different times, for example seasons of the year or for special events (i.e. "Winter Profile"). -
Profile Status: - - {if $memberInfo.fieldFail.status}

{$memberInfo.fieldFail.status}

{/if} -
Description: - {php} - wp_editor('{$memberInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'media_buttons' => false, - // 'quicktags' => false, - // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. - 'textarea_name' => 'descr', - 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 - )); - {/php} - {if $memberInfo.fieldFail.descr}

{$memberInfo.fieldFail.descr}

{/if} -
Short Description: - -
- {if $memberInfo.fieldFail.short_descr}

{$memberInfo.fieldFail.short_descr}

{/if} -
Notes: - - {if $memberInfo.fieldFail.notes} -

{$memberInfo.fieldFail.notes}

{/if}
This - "Notes" field is not displayed anywhere else. It is - strictly for making and keeping notes related to this - {$terms.term_member} profile. -
+ {include file='admin/member/memberInfo/editStatus.html'} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {if $memberInfo.fieldRequired.lat} - - -
Address Line 1: - - {if $memberInfo.fieldFail.addr1}

{$memberInfo.fieldFail.addr1}

{/if} -
Address Line 2: - - {if $memberInfo.fieldFail.addr2}

{$memberInfo.fieldFail.addr2}

{/if} -
City - -
Add a new City
-
- - - - - -
City Name: - -
-
-

* Required

- Cancel - -
- - - -
State: - - {if $memberInfo.fieldFail.state}

{$memberInfo.fieldFail.state}

{/if} -
ZIP / Postal Code: - - {if $memberInfo.fieldFail.zip}

{$memberInfo.fieldFail.zip}

{/if} -
Country: - - {if $memberInfo.fieldFail.country}

{$memberInfo.fieldFail.country}

{/if} -
Region: - - {if $memberInfo.fieldFail.region}

{$memberInfo.fieldFail.region}

{/if} -
{else}{/if}Location: -
Map Location Using Above Address
-

- MAP USE: Drag the pointer to the desired location for this {$terms.term_member}. - Use + and - buttons or the mouse wheel to zoom in or out. - Click and drag anywhere else on the map to move to another area. -

-
(map loads here)
-

- Selected Position: -   Latitude -   Longitude -   Update pointer with new lat/lon postion. -

-
+ + {include file='admin/member/memberInfo/editLocation.html'} - - - - - - - - - - - - - - - - - - -
Phone #: - - {if $memberInfo.fieldFail.phone}

{$memberInfo.fieldFail.phone}

{/if} -
Toll Free #: - - {if $memberInfo.fieldFail.toll_free}

{$memberInfo.fieldFail.toll_free}

{/if} -
E-Mail Address: - - {if $memberInfo.fieldFail.email}

{$memberInfo.fieldFail.email}

{/if} -
Web Address (URL): - {if $memberInfo.fieldData.url} - Test Link - {/if} - - {if $memberInfo.fieldFail.url}

{$memberInfo.fieldFail.url}

{/if} -
+ + {include file='admin/member/memberInfo/editContact.html'} - - - - - - - - - -
Categories - - -{if apply_filters('glm_members_menu_members', true)} -
Add a new Category
-{/if} - -
- - - - - - - - - -
Category Name: - -
-
Parent Category: - -
OR
- -
-

* Required

- Cancel - -
- -{if apply_filters('glm_members_menu_members', true)} -    Select a category to add to box below.
-{else} -

You do not have permission to change your {$terms.term_member} categories. Please call if you need changes made here. -{/if} -

- - {if isset($memberInfo.fieldData.categories) && $memberInfo.fieldData.categories} - {foreach from=$memberInfo.fieldData.categories item=c} -
- {if $c.parent_name != ''}{$c.parent_name}: {/if}{$c.name} -{if apply_filters('glm_members_menu_members', true)} - X -{/if} - -
- {/foreach} - {/if} -
-
Amenities - -    Select an amenity to add to box below.
-
- {if isset($memberInfo.fieldData.amenities) && $memberInfo.fieldData.amenities} - {foreach from=$memberInfo.fieldData.amenities item=c} -
- {$c.name} - X - -
- {/foreach} - {/if} -
-
- + {include file='admin/member/memberInfo/editCategory.html'} - - - - - - - - - - - - - -
  -

- Best image size to provide is between 800 and 1000 pixels wide and stored as a JPG or JPEG file. - Also try to supply images that have a reasonable "aspect ratio" (not too tall, not too wide). - Files provided like this should have a file size of 100 to 250 KB. Images will be automatically - resized for use in the Web site. Images that are too large will be rejected. -

-
Profile Image: - - {if $memberInfo.fieldData.logo} - - - - - {/if} - -
-
- -
-
- Delete Image
- {$memberInfo.fieldData.logo}
-
New image:
- - {if $memberInfo.fieldFail.logo}

{$memberInfo.fieldFail.logo}

{/if} -
Image Gallery - - {if $memberInfoID} - -
- -
- -
- - - Uploading Image { thisFile } of { numbFiles } - - - - - - - - - - - -
-
- -
-
Cancel Upload
Name: { fileName }
Type: { fileType }
Size: { fileSize }
Progress:
- - -
- -
- - -
  • -
    - - - - - - - - - - -
    Caption: - - - - -
    Delete:
    featured Image:
    New Upload
    -
    Description:
    -
    -
    - -
    -
  • -
    - -
    - - -
    -
    -
    -
    Drag and drop new images here
    -
    HTML5 file drag-and-drop not supported by your browser.
    Use "Browse" button above to upload an image.
    -
    -
    No Featured Image:
     
    -
    Click images to view full size.
    -
      - - {if $haveImageGallery} - {foreach $imageGallery as $i} - {if $i.file_name} -
    • -
      - - - - - - - - - - - -
      Caption: - - - -
      Delete:
      Featured Image:
      - -
      Description: -
      -
      -
      - -
      -
      - {/if} -
    • - - {/foreach} - {/if} -
    - {else} - Note: Images may only be added to {$terms.term_member} profile records that have been created. - You are editing information to create a new record. -
    After you click "Add new {$terms.term_member}" below, you may come back here to add images to the gallery. - {/if} -
    + {include file='admin/member/memberInfo/editImages.html'} - - - - - - - - - - - - - - - - - - - - - -
    Video Type: - - {if $memberInfo.fieldFail.video_type}

    {$memberInfo.fieldFail.video_type}

    {/if} -
    Video URL: - - {if $memberInfo.fieldFail.video_url}

    {$memberInfo.fieldFail.video_url}

    {/if} - Only YouTube and Vimeo links are supported -
    Video File: - {if $memberInfo.fieldData.video_file} - File Name: {$memberInfo.fieldData.video_file}
    - Replace this video file: - Delete Video File
    - {else} - New file: - {/if} -
    Video Title: - - {if $memberInfo.fieldFail.video_title}

    {$memberInfo.fieldFail.video_title}

    {/if}
    - -
    Video Description: - {php} - wp_editor('{$memberInfo.fieldData.video_descr|escape:quotes}', 'glm_video_descr', array( - 'media_buttons' => false, - // 'quicktags' => false, - // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. - 'textarea_name' => 'video_descr', - 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 - )); - {/php} - {if $memberInfo.fieldFail.video_descr}

    {$memberInfo.fieldFail.video_descr}

    {/if} -
    + {include file='admin/member/memberInfo/editVideo.html'} - - - - - - - - - - - - - - - - - -
    Source Type: - - {if $memberInfo.fieldFail.live_cam_type}

    {$memberInfo.fieldFail.live_cam_type}

    {/if} -
    Source URL: - - {if $memberInfo.fieldFail.live_cam_url}

    {$memberInfo.fieldFail.live_cam_url}

    {/if} - Only image links are supported -
    Title to Display: - - {if $memberInfo.fieldFail.live_cam_title}

    {$memberInfo.fieldFail.live_cam_title}

    {/if}
    - -
    Description to Display: - {php} - wp_editor('{$memberInfo.fieldData.live_cam_descr|escape:quotes}', 'glm_live_cam_descr', array( - 'media_buttons' => false, - // 'quicktags' => false, - // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. - 'textarea_name' => 'live_cam_descr', - 'editor_height' => 200, // Height in px, overrides editor_rows - // 'textarea_rows' => 8 - )); - {/php} - {if $memberInfo.fieldFail.live_cam_descr}

    {$memberInfo.fieldFail.live_cam_descr}

    {/if} -
    + {include file='admin/member/memberInfo/editCamera.html'} - - - - - -
    Credit Cards Accepted: - {foreach from=$memberInfo.fieldData.cc_type.bitmap item=v} - {$v.name}
    - {/foreach} - {if $memberInfo.fieldFail.cc_type}

    {$memberInfo.fieldFail.cc_type}

    {/if} -
    - -

    * Required

    - + {include file='admin/member/memberInfo/editCreditCards.html'} @@ -1312,7 +732,20 @@ // Set masking for phone number fields - see http://digitalbush.com/projects/masked-input-plugin/ $.mask.definitions['e'] = "[A-Za-z0-9: ]"; $(".glm-phone-input").mask("999{$settings.phone_infix}999{$settings.phone_infix}9999? eeeeeeeeeee"); - + + $('#glm-live-cam-type').on("change", function() { + checkLiveCamType(); + }); + function checkLiveCamType() { + var camType = $('#glm-live-cam-type').val(); + if (camType == 1) { + $('.not-with-url-type').addClass('glm-hidden'); + } else { + $('.not-with-url-type').removeClass('glm-hidden'); + } + } + checkLiveCamType(); + }); diff --git a/views/admin/member/memberInfo/editCamera.html b/views/admin/member/memberInfo/editCamera.html new file mode 100644 index 00000000..02c50e35 --- /dev/null +++ b/views/admin/member/memberInfo/editCamera.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + +
    Type: + + {if $memberInfo.fieldFail.live_cam_type}

    {$memberInfo.fieldFail.live_cam_type}

    {/if} +
    URL: + + {if $memberInfo.fieldFail.live_cam_url}

    {$memberInfo.fieldFail.live_cam_url}

    {/if} +
    Title to Display: + + {if $memberInfo.fieldFail.live_cam_title}

    {$memberInfo.fieldFail.live_cam_title}

    {/if}
    + +
    Description to Display: + {php} + wp_editor('{$memberInfo.fieldData.live_cam_descr|escape:quotes}', 'glm_live_cam_descr', array( + 'media_buttons' => false, + // 'quicktags' => false, + // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. + 'textarea_name' => 'live_cam_descr', + 'editor_height' => 200, // Height in px, overrides editor_rows + // 'textarea_rows' => 8 + )); + {/php} + {if $memberInfo.fieldFail.live_cam_descr}

    {$memberInfo.fieldFail.live_cam_descr}

    {/if} +
    diff --git a/views/admin/member/memberInfo/editCategory.html b/views/admin/member/memberInfo/editCategory.html new file mode 100644 index 00000000..74e59788 --- /dev/null +++ b/views/admin/member/memberInfo/editCategory.html @@ -0,0 +1,106 @@ + + + + + + + + + + +
    Categories + + +{if apply_filters('glm_members_menu_members', true)} +
    Add a new Category
    +{/if} + +
    + + + + + + + + + +
    Category Name: + +
    +
    Parent Category: + +
    OR
    + +
    +

    * Required

    + Cancel + +
    + +{if apply_filters('glm_members_menu_members', true)} +    Select a category to add to box below.
    +{else} +

    You do not have permission to change your {$terms.term_member} categories. Please call if you need changes made here. +{/if} +

    + + {if isset($memberInfo.fieldData.categories) && $memberInfo.fieldData.categories} + {foreach from=$memberInfo.fieldData.categories item=c} +
    + {if $c.parent_name != ''}{$c.parent_name}: {/if}{$c.name} +{if apply_filters('glm_members_menu_members', true)} + X +{/if} + +
    + {/foreach} + {/if} +
    +
    Amenities + +    Select an amenity to add to box below.
    +
    + {if isset($memberInfo.fieldData.amenities) && $memberInfo.fieldData.amenities} + {foreach from=$memberInfo.fieldData.amenities item=c} +
    + {$c.name} + X + +
    + {/foreach} + {/if} +
    +
    + diff --git a/views/admin/member/memberInfo/editContact.html b/views/admin/member/memberInfo/editContact.html new file mode 100644 index 00000000..f23c4f11 --- /dev/null +++ b/views/admin/member/memberInfo/editContact.html @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + +
    Phone #: + + {if $memberInfo.fieldFail.phone}

    {$memberInfo.fieldFail.phone}

    {/if} +
    Toll Free #: + + {if $memberInfo.fieldFail.toll_free}

    {$memberInfo.fieldFail.toll_free}

    {/if} +
    E-Mail Address: + + {if $memberInfo.fieldFail.email}

    {$memberInfo.fieldFail.email}

    {/if} +
    Web Address (URL): + {if $memberInfo.fieldData.url} + Test Link + {/if} + + {if $memberInfo.fieldFail.url}

    {$memberInfo.fieldFail.url}

    {/if} +
    + diff --git a/views/admin/member/memberInfo/editCreditCards.html b/views/admin/member/memberInfo/editCreditCards.html new file mode 100644 index 00000000..e587ae7f --- /dev/null +++ b/views/admin/member/memberInfo/editCreditCards.html @@ -0,0 +1,15 @@ + + + + + + +
    Credit Cards Accepted: + {foreach from=$memberInfo.fieldData.cc_type.bitmap item=v} + {$v.name}
    + {/foreach} + {if $memberInfo.fieldFail.cc_type}

    {$memberInfo.fieldFail.cc_type}

    {/if} +
    + +

    * Required

    + diff --git a/views/admin/member/memberInfo/editImages.html b/views/admin/member/memberInfo/editImages.html new file mode 100644 index 00000000..a75c16f7 --- /dev/null +++ b/views/admin/member/memberInfo/editImages.html @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + +
      +

    + Best image size to provide is between 800 and 1000 pixels wide and stored as a JPG or JPEG file. + Also try to supply images that have a reasonable "aspect ratio" (not too tall, not too wide). + Files provided like this should have a file size of 100 to 250 KB. Images will be automatically + resized for use in the Web site. Images that are too large will be rejected. +

    +
    Profile Image: + + {if $memberInfo.fieldData.logo} + + + + + {/if} + +
    +
    + +
    +
    + Delete Image
    + {$memberInfo.fieldData.logo}
    +
    New image:
    + + {if $memberInfo.fieldFail.logo}

    {$memberInfo.fieldFail.logo}

    {/if} +
    Image Gallery + + {if $memberInfoID} + +
    + +
    + +
    + + + Uploading Image { thisFile } of { numbFiles } + + + + + + + + + + + +
    +
    + +
    +
    Cancel Upload
    Name: { fileName }
    Type: { fileType }
    Size: { fileSize }
    Progress:
    + + +
    + +
    + + +
  • +
    + + + + + + + + + + +
    Caption: + + + + +
    Delete:
    featured Image:
    New Upload
    +
    Description:
    +
    +
    + +
    +
  • +
    + +
    + + +
    +
    +
    +
    Drag and drop new images here
    +
    HTML5 file drag-and-drop not supported by your browser.
    Use "Browse" button above to upload an image.
    +
    +
    No Featured Image:
     
    +
    Click images to view full size.
    +
      + + {if $haveImageGallery} + {foreach $imageGallery as $i} + {if $i.file_name} +
    • +
      + + + + + + + + + + + +
      Caption: + + + +
      Delete:
      Featured Image:
      + +
      Description: +
      +
      +
      + +
      +
      + {/if} +
    • + + {/foreach} + {/if} +
    + {else} + Note: Images may only be added to {$terms.term_member} profile records that have been created. + You are editing information to create a new record. +
    After you click "Add new {$terms.term_member}" below, you may come back here to add images to the gallery. + {/if} +
    diff --git a/views/admin/member/memberInfo/editLocation.html b/views/admin/member/memberInfo/editLocation.html new file mode 100644 index 00000000..ff99a74b --- /dev/null +++ b/views/admin/member/memberInfo/editLocation.html @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {if $memberInfo.fieldRequired.lat} + + +
    Address Line 1: + + {if $memberInfo.fieldFail.addr1}

    {$memberInfo.fieldFail.addr1}

    {/if} +
    Address Line 2: + + {if $memberInfo.fieldFail.addr2}

    {$memberInfo.fieldFail.addr2}

    {/if} +
    City + +
    Add a new City
    +
    + + + + + +
    City Name: + +
    +
    +

    * Required

    + Cancel + +
    + + + +
    State: + + {if $memberInfo.fieldFail.state}

    {$memberInfo.fieldFail.state}

    {/if} +
    ZIP / Postal Code: + + {if $memberInfo.fieldFail.zip}

    {$memberInfo.fieldFail.zip}

    {/if} +
    Country: + + {if $memberInfo.fieldFail.country}

    {$memberInfo.fieldFail.country}

    {/if} +
    Region: + + {if $memberInfo.fieldFail.region}

    {$memberInfo.fieldFail.region}

    {/if} +
    {else}{/if}Location: +
    Map Location Using Above Address
    +

    + MAP USE: Drag the pointer to the desired location for this {$terms.term_member}. + Use + and - buttons or the mouse wheel to zoom in or out. + Click and drag anywhere else on the map to move to another area. +

    +
    (map loads here)
    +

    + Selected Position: +   Latitude +   Longitude +   Update pointer with new lat/lon postion. +

    +
    diff --git a/views/admin/member/memberInfo/editStatus.html b/views/admin/member/memberInfo/editStatus.html new file mode 100644 index 00000000..d72bd460 --- /dev/null +++ b/views/admin/member/memberInfo/editStatus.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + +
    Profile Name: + + {if $memberInfo.fieldFail.reference_name}

    {$memberInfo.fieldFail.reference_name}

    {/if}
    + The "Profile Name" field is used to help identify this particular {$terms.term_member} profile. {$terms.term_member_plur_cap} may have multiple profiles, + only one of which can be active at a time. Multiple profiles make it easy to manage separate sets of information that may be + used at different times, for example seasons of the year or for special events (i.e. "Winter Profile"). +
    Profile Status: + + {if $memberInfo.fieldFail.status}

    {$memberInfo.fieldFail.status}

    {/if} +
    Description: + {php} + wp_editor('{$memberInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( + 'media_buttons' => false, + // 'quicktags' => false, + // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. + 'textarea_name' => 'descr', + 'editor_height' => 200, // Height in px, overrides editor_rows + // 'textarea_rows' => 8 + )); + {/php} + {if $memberInfo.fieldFail.descr}

    {$memberInfo.fieldFail.descr}

    {/if} +
    Short Description: + +
    + {if $memberInfo.fieldFail.short_descr}

    {$memberInfo.fieldFail.short_descr}

    {/if} +
    Notes: + + {if $memberInfo.fieldFail.notes} +

    {$memberInfo.fieldFail.notes}

    {/if}
    This + "Notes" field is not displayed anywhere else. It is + strictly for making and keeping notes related to this + {$terms.term_member} profile. +
    + diff --git a/views/admin/member/memberInfo/editVideo.html b/views/admin/member/memberInfo/editVideo.html new file mode 100644 index 00000000..301171a6 --- /dev/null +++ b/views/admin/member/memberInfo/editVideo.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + +
    Video Type: + + {if $memberInfo.fieldFail.video_type}

    {$memberInfo.fieldFail.video_type}

    {/if} +
    Video URL: + + {if $memberInfo.fieldFail.video_url}

    {$memberInfo.fieldFail.video_url}

    {/if} + Only YouTube and Vimeo links are supported +
    Video File: + {if $memberInfo.fieldData.video_file} + File Name: {$memberInfo.fieldData.video_file}
    + Replace this video file: + Delete Video File
    + {else} + New file: + {/if} +
    Video Title: + + {if $memberInfo.fieldFail.video_title}

    {$memberInfo.fieldFail.video_title}

    {/if}
    + +
    Video Description: + {php} + wp_editor('{$memberInfo.fieldData.video_descr|escape:quotes}', 'glm_video_descr', array( + 'media_buttons' => false, + // 'quicktags' => false, + // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. + 'textarea_name' => 'video_descr', + 'editor_height' => 200, // Height in px, overrides editor_rows + // 'textarea_rows' => 8 + )); + {/php} + {if $memberInfo.fieldFail.video_descr}

    {$memberInfo.fieldFail.video_descr}

    {/if} +
    diff --git a/views/front/members/detail.html b/views/front/members/detail.html index 6eedd8e2..abfe3188 100644 --- a/views/front/members/detail.html +++ b/views/front/members/detail.html @@ -117,6 +117,7 @@ {apply_filters('glm-member-db-front-members-detail-linksTop', '', $member.id)} {if $member.email && $settings.detail_show_email}Email{/if} {if $settings.detail_show_coupons && $coupons}Coupons{/if} + {if $member.live_cam_type.value==1 && $member.live_cam_url && $settings.detail_show_live_cam}{$terms.term_webcam_cap}{/if} {apply_filters('glm-member-db-front-members-detail-linksBottom', '', $member.id)} @@ -290,14 +291,16 @@ {/if} {apply_filters('glm-member-db-front-members-detail-videoAfter', '', $member.id)} - + {apply_filters('glm-member-db-front-members-detail-liveCamBefore', '', $member.id)} - {if $member.live_cam_url && $settings.detail_show_live_cam} -
    Live Cam
    + {if $member.live_cam_type.value!=1 && $member.live_cam_url && $settings.detail_show_live_cam} +
    {$terms.term_webcam_cap}

    {$member.live_cam_title}

    -
    {$member.live_cam_embed}
    + {if $member.live_cam_type.value == 2} + + {/if}

    {$member.live_cam_descr}

    -- 2.17.1