Riferimento: Aggiungere rank
Molto Strano, Caso Insolito, ti dico il procedimento che faccio da sempre. 1) Vai sul db E vai sulla Tabella ranks E fai inserisci, e metti quello che vuoi id nome rank ecc. poi vai permission rank E fai inserisci, metti id rank e metti i comandi che vuoi. Poi vai Su htdocs/ Staff.php
Dopo Metti questo Dentro la pagina staff e lo configuri Guarda!
<h2 class="title">Nome rank</h2>
<div class="box-content">
<?PHP
$sql = mysql_query("SELECT * FROM users WHERE rank = 'id rank'");
while($s = mysql_fetch_array($sql)) {
echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: #fff;">
<tbody>
<tr>
<td valign="middle" width="10">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width: 64px; height: 120px; margin-bottom:-8px; margin-top:-22px; margin-left:-10px; float: right; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure='.$s['look'].'&action=null&direction=2&head_direction=3&gesture=sml&size=b&img_format=gif);"></div>
</td>
<td valign="top">
<span style="color: #4682B4;"><b style="font-size: 110%;">'.$s['username'].'</b><br /> </span>
<i><b>'.utf8_decode($s['motto']).'</i></b></i></i><br />
<br>
Ruolo: <b>'.utf8_decode($s['role']).'</b></b>
<br>
Scadenza: <b>'.utf8_decode($s['expiry']).'</b></b>
<br>
Ultima connessione: <b>'.utf8_decode($s['lastvisit']).'</b>
<img src="http://25.124.4.173/r63/c_images/album1584/BR059.gif" align="right">
</td>
</tr>
</tbody>
</table>
</td>
<center>--------------------------</center>
<div>
</div>
</tr>
</tbody>
</table>';
}
?>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div class="habblet-container ">
<div class="cbb clearfix violet">
<h2 class="title">Expert e Lupetti [3]</h2>
<div class="box-content">
<?PHP
$sql = mysql_query("SELECT * FROM users WHERE rank = '3'");
while($s = mysql_fetch_array($sql)) {
echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: #fff;">
<tbody>
<tr>
<td valign="middle" width="25">
</td>
<td valign="top">
<tbody>
<tr>
<td valign="middle" width="10">
<div style="width: 64px; height: 120px; margin-bottom:-8px; margin-top:-22px; margin-left:-10px; float: right; background: url(http://www.habbo.it/habbo-imaging/avatarimage?figure='.$s['look'].'&action=null&direction=2&head_direction=3&gesture=sml&size=b&img_format=gif);"></div>
</td>
<td valign="top">
<span style="color: #4682B4;"><b style="font-size: 110%;">'.$s['username'].'</b><br /> </span>
<i><b>'.utf8_decode($s['motto']).'</i></b></i></i><br />
<br>
Ruolo: <b>'.utf8_decode($s['role']).'</b></b>
<br>
Scadenza: <b>'.utf8_decode($s['expiry']).'</b></b>
<br>
Ultima connessione: <b>'.utf8_decode($s['lastvisit']).'</b>
<img src="http://25.124.4.173/r63/c_images/album1584/HX3.gif" align="right">
</td>
</tr>
</tbody>
</table>
</td>
<center>--------------------------</center>
<div>
</div>
</tr>
</tbody>
</table>';
}
?>
</div>
</div>
</div>
<div class="habblet-container ">
<div class="cbb clearfix green">
spero di esserti stato di aiuto
