added member since into the admin user manager
Showing
3 changed files
with
17 additions
and
0 deletions
| ... | @@ -444,3 +444,4 @@ input.dp-applied { | ... | @@ -444,3 +444,4 @@ input.dp-applied { |
| 444 | .TzPaginateResults a { text-decoration: none; padding:1px 0px; border:1px solid transparent; } | 444 | .TzPaginateResults a { text-decoration: none; padding:1px 0px; border:1px solid transparent; } |
| 445 | .TzPaginateResults a.active { color:#000; font-weight: bold; border:1px solid #ccc;padding:1px 3px; } | 445 | .TzPaginateResults a.active { color:#000; font-weight: bold; border:1px solid #ccc;padding:1px 3px; } |
| 446 | 446 | ||
| 447 | .my-profile-table { margin-bottom:20px;} | ... | ... |
| ... | @@ -150,6 +150,10 @@ class ProfileValidation extends Common\Validation { | ... | @@ -150,6 +150,10 @@ class ProfileValidation extends Common\Validation { |
| 150 | public function prefix($val) { | 150 | public function prefix($val) { |
| 151 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | 151 | update_user_meta($_POST['uid'], __FUNCTION__, $val); |
| 152 | } | 152 | } |
| 153 | |||
| 154 | public function member_since($val) { | ||
| 155 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | ||
| 156 | } | ||
| 153 | 157 | ||
| 154 | public function first_name($val) { | 158 | public function first_name($val) { |
| 155 | if(empty($val)) { | 159 | if(empty($val)) { | ... | ... |
| ... | @@ -166,6 +166,18 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); | ... | @@ -166,6 +166,18 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); |
| 166 | </tr> | 166 | </tr> |
| 167 | </tbody> | 167 | </tbody> |
| 168 | </table> | 168 | </table> |
| 169 | |||
| 170 | <?php if ($role=="member") :?> | ||
| 171 | <h4>Membership</h4> | ||
| 172 | <table cellpadding="0" cellspacing="0" border="0" class="my-profile-table"> | ||
| 173 | <tbody> | ||
| 174 | <tr> | ||
| 175 | <th width="150">Member Since:</th> | ||
| 176 | <td><input type="text" name="member_since" value="<?php echo get_user_meta($_GET['uid'], 'member_since', true);?>" /></td> | ||
| 177 | </tr> | ||
| 178 | </tbody> | ||
| 179 | </table> | ||
| 180 | <?php endif;?> | ||
| 169 | </div> | 181 | </div> |
| 170 | 182 | ||
| 171 | 183 | ... | ... |
-
Please register or sign in to post a comment