ef173d5e by Kevin Burton

added member since into the admin user manager

1 parent 5222ae4d
......@@ -444,3 +444,4 @@ input.dp-applied {
.TzPaginateResults a { text-decoration: none; padding:1px 0px; border:1px solid transparent; }
.TzPaginateResults a.active { color:#000; font-weight: bold; border:1px solid #ccc;padding:1px 3px; }
.my-profile-table { margin-bottom:20px;}
......
......@@ -150,6 +150,10 @@ class ProfileValidation extends Common\Validation {
public function prefix($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function member_since($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function first_name($val) {
if(empty($val)) {
......
......@@ -166,6 +166,18 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
</tr>
</tbody>
</table>
<?php if ($role=="member") :?>
<h4>Membership</h4>
<table cellpadding="0" cellspacing="0" border="0" class="my-profile-table">
<tbody>
<tr>
<th width="150">Member Since:</th>
<td><input type="text" name="member_since" value="<?php echo get_user_meta($_GET['uid'], 'member_since', true);?>" /></td>
</tr>
</tbody>
</table>
<?php endif;?>
</div>
......