Silver
Active Member
- Aug 17, 2016
- 152
- 28
I am quickly putting up Most Diamonds for the leaderboards it came with Most Credits, Duckets, Referral Points and GOTW Points. I changed referral points to diamonds and now I want to change diamonds with most respects if someone could help me out with sharing a similar code.
Code:
<div id="column" class="column" style="width:192px;">
<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title"><span style="float: left;">Most Diamonds</span></h2>
<div align='left'>
<?php
$mostdiamonds = mysql_query("SELECT username,vip_points,look FROM users WHERE rank < 2 ORDER BY vip_points DESC LIMIT 7");
while($diamonds = mysql_fetch_assoc($mostdiamonds))
{
echo'<table width="100%">
<tr>
<td width="25%">
<img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=' . $diamonds['look'] . '&headonly=1&gesture=sml"" align="left"></td>
<td width="75%"><a href="{url}/home/' . $diamonds['username'] . '"><b>' . $diamonds['username'] . '</b></a><br />' . bd_nice_number ($diamonds['vip_points']) . ' Diamonds</td>
</tr>
</table>
<hr>';
}
?>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>