mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Added alt and title tags to rank image as per viewtopic
git-svn-id: file:///svn/phpbb/trunk@1770 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e98a323f63
commit
16af530e96
1 changed files with 8 additions and 10 deletions
|
@ -290,31 +290,29 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
|
|
||||||
$poster_rank = "";
|
$poster_rank = "";
|
||||||
$rank_image = "";
|
$rank_image = "";
|
||||||
|
|
||||||
if( $profiledata['user_rank'] )
|
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'];
|
$poster_rank = $ranksrow[$i]['rank_title'];
|
||||||
$rank_image = ($ranksrow[$j]['rank_image']) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : "";
|
$rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' . $ranksrow[$i]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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'];
|
$poster_rank = $ranksrow[$i]['rank_title'];
|
||||||
$rank_image = ( $ranksrow[$j]['rank_image'] ) ? "<img src=\"" . $ranksrow[$j]['rank_image'] . "\"><br />" : "";
|
$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']) )
|
if( !empty($profiledata['user_icq']) )
|
||||||
{
|
{
|
||||||
$icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
|
$icq_status_img = '<a href="http://wwp.icq.com/' . $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
|
||||||
|
|
Loading…
Add table
Reference in a new issue