diff options
author | PayBas <contact@paybas.com> | 2014-10-14 10:59:03 +0200 |
---|---|---|
committer | PayBas <contact@paybas.com> | 2014-10-14 10:59:03 +0200 |
commit | 253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4 (patch) | |
tree | fe80d8766197a1d0c2cb689b3ff526edccdda510 /phpBB | |
parent | 29b54d12ccece3ad0120089c17b0886e3b77f3d1 (diff) | |
download | forums-253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4.tar forums-253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4.tar.gz forums-253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4.tar.bz2 forums-253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4.tar.xz forums-253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4.zip |
[ticket/12796] Add view own profile to UCP (and vice versa)
PHPBB3-12796
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/memberlist.php | 1 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/memberlist_view.html | 1 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/ucp_profile_profile_info.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 919036a85c..872114905e 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -681,6 +681,7 @@ switch ($mode) 'U_MCP_QUEUE' => ($auth->acl_getf_global('m_approve')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue', true, $user->session_id) : '', 'U_SWITCH_PERMISSIONS' => ($auth->acl_get('a_switchperm') && $user->data['user_id'] != $user_id) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=switch_perm&u={$user_id}&hash=" . generate_link_hash('switchperm')) : '', + 'U_EDIT_SELF' => ($user_id == $user->data['user_id']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_profile&mode=profile_info') : '', 'S_USER_NOTES' => ($user_notes_enabled) ? true : false, 'S_WARN_USER' => ($warn_user_enabled) ? true : false, diff --git a/phpBB/styles/prosilver/template/memberlist_view.html b/phpBB/styles/prosilver/template/memberlist_view.html index eb151af8df..86f4d8787a 100644 --- a/phpBB/styles/prosilver/template/memberlist_view.html +++ b/phpBB/styles/prosilver/template/memberlist_view.html @@ -20,6 +20,7 @@ <dt>{L_USERNAME}{L_COLON}</dt> <dd> <!-- IF USER_COLOR --><span style="color: {USER_COLOR}; font-weight: bold;"><!-- ELSE --><span><!-- ENDIF -->{USERNAME}</span> + <!-- IF U_EDIT_SELF --> [ <a href="{U_EDIT_SELF}">{L_BUTTON_EDIT}</a> ]<!-- ENDIF --> <!-- IF U_USER_ADMIN --> [ <a href="{U_USER_ADMIN}">{L_USER_ADMIN}</a> ]<!-- ENDIF --> <!-- IF U_USER_BAN --> [ <a href="{U_USER_BAN}">{L_USER_BAN}</a> ]<!-- ENDIF --> <!-- IF U_SWITCH_PERMISSIONS --> [ <a href="{U_SWITCH_PERMISSIONS}">{L_USE_PERMISSIONS}</a> ]<!-- ENDIF --> diff --git a/phpBB/styles/prosilver/template/ucp_profile_profile_info.html b/phpBB/styles/prosilver/template/ucp_profile_profile_info.html index 986bc92298..ff6aa0b3f4 100644 --- a/phpBB/styles/prosilver/template/ucp_profile_profile_info.html +++ b/phpBB/styles/prosilver/template/ucp_profile_profile_info.html @@ -2,7 +2,7 @@ <form id="ucp" method="post" action="{S_UCP_ACTION}"{S_FORM_ENCTYPE}> -<h2>{L_TITLE}</h2> +<h2>{L_TITLE} <span class="small">[<a href="{U_USER_PROFILE}" title="{L_READ_PROFILE}">{L_READ_PROFILE}</a>]</span></h2> <div class="panel"> <div class="inner"> |