Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ef173d5e
authored
2010-12-15 21:58:41 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added member since into the admin user manager
1 parent
5222ae4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
com/Branding/css/tenzing.css
com/UserManager/UserManager.php
com/UserManager/views/edit_user_profile.php
com/Branding/css/tenzing.css
View file @
ef173d5
...
...
@@ -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
;}
...
...
com/UserManager/UserManager.php
View file @
ef173d5
...
...
@@ -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
))
{
...
...
com/UserManager/views/edit_user_profile.php
View file @
ef173d5
...
...
@@ -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>
...
...
Please
register
or
sign in
to post a comment