mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge pull request #2137 from geetakshi/ticket/8309
[ticket/8309] Rename "Last visited" to "Last activity" on memberlist/viewprofile
This commit is contained in:
commit
7f5d8becad
8 changed files with 11 additions and 12 deletions
|
@ -1019,7 +1019,7 @@ class acp_users
|
|||
$s_action_options .= '<option value="' . $value . '">' . $user->lang['USER_ADMIN_' . $lang] . '</option>';
|
||||
}
|
||||
|
||||
$last_visit = (!empty($user_row['session_time'])) ? $user_row['session_time'] : $user_row['user_lastvisit'];
|
||||
$last_active = (!empty($user_row['session_time'])) ? $user_row['session_time'] : $user_row['user_lastvisit'];
|
||||
|
||||
$inactive_reason = '';
|
||||
if ($user_row['user_type'] == USER_INACTIVE)
|
||||
|
@ -1085,7 +1085,7 @@ class acp_users
|
|||
'USER' => $user_row['username'],
|
||||
'USER_REGISTERED' => $user->format_date($user_row['user_regdate']),
|
||||
'REGISTERED_IP' => ($ip == 'hostname') ? gethostbyaddr($user_row['user_ip']) : $user_row['user_ip'],
|
||||
'USER_LASTACTIVE' => ($last_visit) ? $user->format_date($last_visit) : ' - ',
|
||||
'USER_LASTACTIVE' => ($last_active) ? $user->format_date($last_active) : ' - ',
|
||||
'USER_EMAIL' => $user_row['user_email'],
|
||||
'USER_WARNINGS' => $user_row['user_warnings'],
|
||||
'USER_POSTS' => $user_row['user_posts'],
|
||||
|
|
|
@ -189,7 +189,7 @@ class ucp_main
|
|||
$template->assign_vars(array(
|
||||
'USER_COLOR' => (!empty($user->data['user_colour'])) ? $user->data['user_colour'] : '',
|
||||
'JOINED' => $user->format_date($user->data['user_regdate']),
|
||||
'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
|
||||
'LAST_ACTIVE' => (empty($last_active)) ? ' - ' : $user->format_date($last_active),
|
||||
'WARNINGS' => ($user->data['user_warnings']) ? $user->data['user_warnings'] : 0,
|
||||
'POSTS' => ($user->data['user_posts']) ? $user->data['user_posts'] : 0,
|
||||
'POSTS_DAY' => $user->lang('POST_DAY', $posts_per_day),
|
||||
|
|
|
@ -135,5 +135,4 @@ $lang = array_merge($lang, array(
|
|||
'USERS_PER_PAGE' => 'Users per page',
|
||||
|
||||
'VIEWING_PROFILE' => 'Viewing profile - %s',
|
||||
'VISITED' => 'Last visited',
|
||||
));
|
||||
|
|
|
@ -1666,11 +1666,11 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
|||
|
||||
if ($data['user_allow_viewonline'] || $auth->acl_get('u_viewonline'))
|
||||
{
|
||||
$last_visit = (!empty($data['session_time'])) ? $data['session_time'] : $data['user_lastvisit'];
|
||||
$last_active = (!empty($data['session_time'])) ? $data['session_time'] : $data['user_lastvisit'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$last_visit = '';
|
||||
$last_active = '';
|
||||
}
|
||||
|
||||
$age = '';
|
||||
|
@ -1703,7 +1703,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
|
|||
'AGE' => $age,
|
||||
'RANK_TITLE' => $rank_title,
|
||||
'JOINED' => $user->format_date($data['user_regdate']),
|
||||
'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit),
|
||||
'LAST_ACTIVE' => (empty($last_active)) ? ' - ' : $user->format_date($last_active),
|
||||
'POSTS' => ($data['user_posts']) ? $data['user_posts'] : 0,
|
||||
'WARNINGS' => isset($data['user_warnings']) ? $data['user_warnings'] : 0,
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
<td class="posts"><!-- IF memberrow.POSTS and S_DISPLAY_SEARCH --><a href="{memberrow.U_SEARCH_USER}" title="{L_SEARCH_USER_POSTS}">{memberrow.POSTS}</a><!-- ELSE -->{memberrow.POSTS}<!-- ENDIF --></td>
|
||||
<td class="info"><!-- BEGIN custom_fields --><div>{memberrow.custom_fields.PROFILE_FIELD_VALUE}</div><!-- BEGINELSE --> <!-- END custom_fields --></td>
|
||||
<td>{memberrow.JOINED}</td>
|
||||
<!-- IF S_VIEWONLINE --><td>{memberrow.VISITED} </td><!-- ENDIF -->
|
||||
<!-- IF S_VIEWONLINE --><td>{memberrow.LAST_ACTIVE} </td><!-- ENDIF -->
|
||||
</tr>
|
||||
<!-- BEGINELSE -->
|
||||
<tr class="bg1">
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
<dl class="details">
|
||||
<!-- EVENT memberlist_view_user_statistics_before -->
|
||||
<dt>{L_JOINED}{L_COLON}</dt> <dd>{JOINED}</dd>
|
||||
<dt>{L_VISITED}{L_COLON}</dt> <dd>{VISITED}</dd>
|
||||
<dt>{L_LAST_ACTIVE}{L_COLON}</dt> <dd>{LAST_ACTIVE}</dd>
|
||||
<!-- IF S_WARNINGS -->
|
||||
<dt>{L_WARNINGS}{L_COLON} </dt>
|
||||
<dd><strong>{WARNINGS}</strong><!-- IF U_NOTES or U_WARN --> [ <!-- IF U_NOTES --><a href="{U_NOTES}">{L_VIEW_NOTES}</a><!-- ENDIF --> <!-- IF U_WARN --><!-- IF U_NOTES --> | <!-- ENDIF --><a href="{U_WARN}">{L_WARN_USER}</a><!-- ENDIF --> ]<!-- ENDIF --></dd>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
<dl class="details">
|
||||
<dt>{L_JOINED}{L_COLON}</dt> <dd>{JOINED}</dd>
|
||||
<dt>{L_VISITED}{L_COLON}</dt> <dd>{LAST_VISIT_YOU}</dd>
|
||||
<dt>{L_LAST_ACTIVE}{L_COLON}</dt> <dd>{LAST_VISIT_YOU}</dd>
|
||||
<dt>{L_TOTAL_POSTS}{L_COLON}</dt> <dd><!-- IF POSTS_PCT -->{POSTS}<!-- IF S_DISPLAY_SEARCH --> | <strong><a href="{U_SEARCH_USER}">{L_SEARCH_YOUR_POSTS}</a></strong><!-- ENDIF --><br />({POSTS_DAY} / {POSTS_PCT})<!-- ELSE -->{POSTS}<!-- ENDIF --></dd>
|
||||
<!-- IF ACTIVE_FORUM != '' --><dt>{L_ACTIVE_IN_FORUM}{L_COLON}</dt> <dd><strong><a href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></strong><br />({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT})</dd><!-- ENDIF -->
|
||||
<!-- IF ACTIVE_TOPIC != '' --><dt>{L_ACTIVE_IN_TOPIC}{L_COLON}</dt> <dd><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})</dd><!-- ENDIF -->
|
||||
|
|
|
@ -72,8 +72,8 @@
|
|||
<td width="100%"><b class="gen">{JOINED}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_VISITED}{L_COLON} </td>
|
||||
<td width="100%"><b class="gen">{VISITED}</b></td>
|
||||
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_LAST_ACTIVE}{L_COLON} </td>
|
||||
<td width="100%"><b class="gen">{LAST_ACTIVE}</b></td>
|
||||
</tr>
|
||||
<!-- IF S_WARNINGS -->
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue