well i was try to add on the right a 5 Best Players on exp
here is a pic of it
test.png - Speedy Share - upload your files here
i did it but i cant mange it in a right way, such as the style look, also when i click on the player name dosent go to the character information page, also the name of players looks like a big size it needs 2 lines. finally as well the background a dark so i've tried to put colors to makes it appear.
here is my layout.php
here is a pic of it
test.png - Speedy Share - upload your files here
i did it but i cant mange it in a right way, such as the style look, also when i click on the player name dosent go to the character information page, also the name of players looks like a big size it needs 2 lines. finally as well the background a dark so i've tried to put colors to makes it appear.
here is my layout.php
PHP:
<div id="cnt-box4">
<div id='menu'>
<div class='nav-top'>
<div class='text'>
Best Players
</div>
</div>
<div class='bg'>
<center> <?php
$world_id = 0;
$skills = $SQL->query('SELECT * FROM players WHERE players.world_id = '.$world_id.' AND players.deleted = 0 AND players.group_id < 2 ORDER BY level DESC, experience DESC LIMIT 5');
$i = 1;
echo('<table id="besty" cellpadding="1"><tr><td style="text-align: left;"><b><font color="yellow">Rank</b></font></td><td style="text-align: center;"><b><font color="yellow">Name</b></font></td><td style="text-align: center;"><b><font color="yellow">Level</b></font></td></tr>');
foreach($skills as $skill)
{
echo('<tr><td style="text-align: center;">'.$i.'.</td><td style="width:85px; text-align: center;">'.($skill['online']>0 ? "<font color=\"green\">".$skill['name']."</font>" : "<font color=\"red\">".$skill['name']."</font>").'</td><td style="text-align: center;"><font color="yellow">'.$skill['level'].'</font></td></tr>');
$i++;
}
echo('</table>');
?>
</center>
</div>