From 6ca40653e93c5e544911b8c53348f9a7dd0b9771 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 5 Jun 2003 00:53:39 +0000 Subject: A few minor updates git-svn-id: file:///svn/phpbb/trunk@4080 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/memberlist.php | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'phpBB/memberlist.php') diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 254cd88625..e28daa9aef 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -718,7 +718,8 @@ function show_profile($data) { if ((empty($rank['rank_special']) && empty($data['user_rank']) && $data['user_posts'] >= $rank['rank_min']) || (!empty($rank['rank_special']) && $data['user_rank'] == $rank['rank_id'])) { - $rank_img = (!empty($rank['rank_image'])) ? '' . $rank['rank_title'] . '
' : ''; + $rank_title = (!empty($rank['rank_title'])) ? $rank['rank_title'] : ''; + $rank_img = (!empty($rank['rank_image'])) ? '' .$rank_title . '
' : ''; break; } } @@ -785,28 +786,29 @@ function show_profile($data) 'ONLINE_IMG' => (intval($data['session_time']) >= time() - ($config['load_online_time'] * 60)) ? $user->img('btn_online', $user->lang['USER_ONLINE']) : $user->img('btn_offline', $user->lang['USER_ONLINE']), 'RANK_IMG' => $rank_img, - - 'JOINED' => $user->format_date($data['user_regdate'], $user->lang['DATE_FORMAT']), - 'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit, $user->lang['DATE_FORMAT']), - 'POSTS' => ($data['user_posts']) ? $data['user_posts'] : 0, - 'PM_IMG' => $pm_img, - 'PM' => $pm, 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, 'WWW_IMG' => $www_img, - 'WWW' => $www, 'ICQ_STATUS_IMG'=> $icq_status_img, 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, 'AIM_IMG' => $aim_img, - 'AIM' => $aim, 'MSN_IMG' => $msn_img, - 'MSN' => $msn, 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - 'S_ONLINE' => (intval($data['session_time']) >= time() - 300) ? true : false + 'JOINED' => $user->format_date($data['user_regdate'], $user->lang['DATE_FORMAT']), + 'VISITED' => (empty($last_visit)) ? ' - ' : $user->format_date($last_visit, $user->lang['DATE_FORMAT']), + 'POSTS' => ($data['user_posts']) ? $data['user_posts'] : 0, + + 'RANK' => $rank_title, + 'PM' => $pm, + 'EMAIL' => $email, + 'WWW' => $www, + 'ICQ' => $icq, + 'AIM' => $aim, + 'MSN' => $msn, + 'YIM' => $yim, + + 'S_ONLINE' => (intval($data['session_time']) >= time() - 300) ? true : false ); return $template_vars; -- cgit v1.2.1