|
From: Paul S. O. <ps...@us...> - 2002-01-01 21:39:56
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv30191
Modified Files:
profile.php
Log Message:
Added alt and title tags to rank image as per viewtopic
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -r1.162 -r1.163
*** profile.php 2001/12/28 15:43:33 1.162
--- profile.php 2002/01/01 21:39:53 1.163
***************
*** 291,303 ****
$poster_rank = "";
$rank_image = "";
-
if( $profiledata['user_rank'] )
{
! for($j = 0; $j < count($ranksrow); $j++)
{
! if( $profiledata['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
{
! $poster_rank = $ranksrow[$j]['rank_title'];
! $rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : "";
}
}
--- 291,302 ----
$poster_rank = "";
$rank_image = "";
if( $profiledata['user_rank'] )
{
! for($i = 0; $i < count($ranksrow); $i++)
{
! if( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
{
! $poster_rank = $ranksrow[$i]['rank_title'];
! $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : "";
}
}
***************
*** 305,318 ****
else
{
! for($j = 0; $j < count($ranksrow); $j++)
{
! if( $profiledata['user_posts'] > $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
{
! $poster_rank = $ranksrow[$j]['rank_title'];
! $rank_image = ( $ranksrow[$j]['rank_image'] ) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : "";
}
}
}
-
if( !empty($profiledata['user_icq']) )
--- 304,316 ----
else
{
! for($i = 0; $i < count($ranksrow); $i++)
{
! if( $profiledata['user_posts'] > $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
{
! $poster_rank = $ranksrow[$i]['rank_title'];
! $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : "";
}
}
}
if( !empty($profiledata['user_icq']) )
|