From 16af530e96f7ba2d1c4ccf95f69cdefe7800d9a2 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 1 Jan 2002 21:39:53 +0000 Subject: Added alt and title tags to rank image as per viewtopic git-svn-id: file:///svn/phpbb/trunk@1770 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index 833fa08b3c..b62b288ae7 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -290,31 +290,29 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $poster_rank = ""; $rank_image = ""; - if( $profiledata['user_rank'] ) { - for($j = 0; $j < count($ranksrow); $j++) + for($i = 0; $i < count($ranksrow); $i++) { - if( $profiledata['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] ) + if( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] ) { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ($ranksrow[$j]['rank_image']) ? "
" : ""; + $poster_rank = $ranksrow[$i]['rank_title']; + $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
' : ""; } } } else { - for($j = 0; $j < count($ranksrow); $j++) + for($i = 0; $i < count($ranksrow); $i++) { - if( $profiledata['user_posts'] > $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] ) + if( $profiledata['user_posts'] > $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] ) { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? "
" : ""; + $poster_rank = $ranksrow[$i]['rank_title']; + $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
' : ""; } } } - if( !empty($profiledata['user_icq']) ) { $icq_status_img = ''; -- cgit v1.2.1