• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior Top level box

Sotomayor

New Member
Joined
Jan 28, 2012
Messages
77
Reaction score
4
Hello all i need a help on my top level i put a some medal of gold , on side of the Name and level i do it, but my problem is the 5 top have all the same medals i have one medal different for every top example level top have gold medal, second top level, silver medal, and third have bronze but i dont know how to change that because its one script for all. i hope can help me please i put more details on and pick and i put the script greetings.



PHP:
<?php
$skills = $SQL->query('SELECT * FROM players WHERE deleted = 0 AND group_id < '.$config['site']['players_group_id_block'].' AND account_id != 1 ORDER BY level DESC LIMIT 5');
?>
<style type="text/css" media="all">
 .Toplevelbox {
   top: -4px;
   position: relative;
   margin-bottom: 10px;
   width: 180px;
   height: 200px;
 }
 .top_level {
   position: absolute;
   top: 29px;
   left: 6px;
   height: 170px;
   width: 168px;
   z-index: 20;
   text-align: center;
   padding-top: 6px;
   font-family: Tahoma, Geneva, sans-serif;
   font-size: 11px;
   color: #CAFF70;
   font-weight: bold;
   text-align: right;
   text-decoration: inherit;
   text-shadow: 0.1em 0.1em #000
 }

 #Topbar a {
 text-decoration: none;
 cursor: auto;
 }
 a.topfont {
   font-family: Verdana, Arial, Helvetica;
   font-size: 11px;
       color: #CAFF70;
   text-decoration: none
 }
 a:hover.topfont {
   font-family: Verdana, Arial, Helvetica;
   font-size: 11px;
   color: #8B8B7A;
   text-decoration:none
 }
</style>

<div id="Topbar" class="Toplevelbox" style="background-image:url(<?PHP echo $layout_name; ?>/images/top_level.gif);">
 <div class="top_level" style="background:url(<?PHP echo $layout_name; ?>/images/bg_top.png)" align=" ">
   <?php
   $a = 1;
   foreach($skills as $skill) {
     echo '<div align="center"><a href="?subtopic=characters&name='.$skill['name'].'" class="topfont">
     <font color="#CCC">    '.$a.' - </font>'.$skill['name'].'<img style="position: absolute;align="center" padding: 0px 0px 0px 9px;" src="example.png">
       <br>
       <small><font color="white">      Level: ('.$skill['level'].')</font></small>
       <br>
     </a>
     </div>';
     $a++;
   }
   ?>
 
Last edited by a moderator:
Back
Top