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
7eb0331b
authored
2011-05-05 16:37:39 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added user_login and work extesion to the profile
1 parent
875115ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
com/UserManager/UserManager.php
com/UserManager/views/edit_user_overview.php
com/UserManager/views/edit_user_profile.php
com/UserManager/UserManager.php
View file @
7eb0331
...
...
@@ -275,6 +275,10 @@ class ProfileValidation extends Common\Validation {
update_user_meta
(
$_POST
[
'uid'
],
__FUNCTION__
,
$val
);
}
public
function
work_extension
(
$val
)
{
update_user_meta
(
$_POST
[
'uid'
],
__FUNCTION__
,
$val
);
}
public
function
work_mobile
(
$val
)
{
update_user_meta
(
$_POST
[
'uid'
],
__FUNCTION__
,
$val
);
...
...
com/UserManager/views/edit_user_overview.php
View file @
7eb0331
...
...
@@ -65,6 +65,10 @@ use WP_User, WP_Roles;
<table
cellspacing=
"0"
class=
"widefat post fixed"
style=
"border:none;"
>
<tbody>
<tr>
<th>
User Login:
</th>
<td>
<?php
echo
$account
->
user_login
;
?>
</td>
</tr>
<?php
if
(
!
empty
(
$first_name
))
:
?>
<tr>
<th>
First Name:
</th>
...
...
com/UserManager/views/edit_user_profile.php
View file @
7eb0331
...
...
@@ -209,7 +209,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
<tr>
<th>
Phone:
</th>
<td><input
type=
"text"
name=
"work_phone"
value=
"
<?php
echo
get_user_meta
(
$_GET
[
'uid'
],
'work_phone'
,
true
);
?>
"
rel=
"mask-phone"
/></td>
<td><input
type=
"text"
name=
"work_phone"
value=
"
<?php
echo
get_user_meta
(
$_GET
[
'uid'
],
'work_phone'
,
true
);
?>
"
rel=
"mask-phone"
/>
Ext.
<input
style=
"width:40px;"
type=
"text"
name=
"work_extension"
value=
"
<?php
echo
get_user_meta
(
$_GET
[
'uid'
],
'work_extension'
,
true
);
?>
"
rel=
"mask-phone"
/></td>
</tr>
<tr>
<th>
Fax:
</th>
...
...
Please
register
or
sign in
to post a comment