$newReferenceName = $cloneType . " - ".$memberInfo['reference_name'];
$sql = "
UPDATE ".$MemberInfo->table."
- SET create_time = '$t', modify_time = '$t', status = ".$this->config['status_numb']['Pending'].", reference_name = '".addslashes($newReferenceName)."'
+ SET create_time = '$t', modify_time = '$t', status = ".$this->config['status_numb']['Inactive'].", reference_name = '".addslashes($newReferenceName)."'
WHERE id = $newID
;";
$this->wpdb->query($sql);
;
; Main Configuration File
-; Gaslight Media Members Database Plugin
+; Gaslight Media Members Database Plugin
;
; 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.
-; Crop value:
+; Crop value:
; 1. If false (default), images will not be cropped.
-; 2. If true, images will be cropped to the specified width/height aspect ratio.
-
+; 2. If true, images will be cropped to the specified width/height aspect ratio.
+
[imageSizes]
large['width'] = 800
;
status[10] = 'Active'
status[20] = 'Pending Review'
-status[30] = 'Inactive'
+status[30] = 'Draft'
status[90] = 'Archived'
status_numb['Active'] = 10
</h2>
{if $lockedToMember && apply_filters( 'glm_user_is_moderated', $lockedToMember )}
+ <input class="updateMemberProfile button-secondary glm-right" type="submit" style="margin-left: 10px;"
+ value="Save as Draft">
<input class="updateMemberProfile button-primary glm-right" type="submit"
- value="{if $memberInfoID && $memberInfo}Save {$terms.term_member} profile as Draft{else}Save as Draft{/if}">
- <input class="updateMemberProfile button-primary glm-right" type="submit"
- value="{if $memberInfoID && $memberInfo}Request Update to {$terms.term_member} profile{else}Request Add new {$terms.term_member} profile{/if}">
+ value="Request Update">
{else}
<input class="updateMemberProfile button-primary glm-right" type="submit" value="{if $memberInfoID && $memberInfo}Update {$terms.term_member} profile{else}Add new {$terms.term_member} profile{/if}">
{/if}
<div class="glm-admin-table glm-admin-table-inner">
- {if !$lockedToMember}
+ {if $lockedToMember && apply_filters( 'glm_user_is_moderated', $lockedToMember )}
+ <input type="hidden" name="status" value="{$memberInfo.fieldData.status.value}" />
+ {else}
<div class="glm-row">
<h2>Profile Status:</h2>
<div class="glm-small-12">