per creare un rank basta andare sul tuo database, andare nella tabella ranks, e cliccare su inserisci, ti comparirà un modulo da compilare dove dovrai inserire un id (casuale), Name (nome del rank), badgeid (il badge predefinito per questo rank), per renderlo ufficiale ti basterà modificare la pagina staff.php ;)Ciao, nella lista Staff del cms c'è solo Admin, mod ecc. ma nn c'è Founder come lo metto?
che id hai dato al nuovo rank?<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright ? 2008 Meth0d. All rights reserved.
|| #Perfavore, Entra oppure Registrati per vedere i Link!
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/
$allow_guests = false;
include('core.php');
include('includes/session.php');
$pagename = "Team dell'Hotel";
$pageid = "8";
include('templates/community/subheader.php');
include('templates/community/header.php');
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column"><div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title"><span style="float: left;">Amministratori</span> <span style="float: right; font-weight: normal; font-size: 75%;">Gestori dell'hotel</span></h2><div class="box-content"><table width="107%" style="padding: 5px; margin-left: -15px; background-color: #fff;">
<tbody>
<tr>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id FROM users WHERE rank = 7 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 7){
echo "Non C'e Staff .";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if($row[2] == 7 || $row[2] > 7){ // = 7 or higher - Admin
$row[2] = "Founder";
}
if(empty($row[1])){
$row[1] = "Nessuna Missione";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "online ora";
} else {
$online_img = "offline";
$online_caption = "Offline";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a rel='nofollow' href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=s&direction=2&head_direction=2&gesture=sml&size=l' alt='%s' align='left' />
<b><a rel='nofollow' href='user_profile.php?name=%s'>%s</a></b>*<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br /><i>%s</i><br /><br />
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
</td>
</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 green ">
<h2 class="title"><span style="float: left;">Moderatori</span> <span style="float: right; font-weight: normal; font-size: 75%;">Sicurezza in hotel </span></h2><div class="box-content"><table width="107%" style="padding: 5px; margin-left: -15px; background-color: #fff;">
<tbody>
<tr>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id FROM users WHERE rank = 6 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 6){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if($row[2] == 6 || $row[2] > 6){ // = 6
$row[2] = "Moderatori";
}
if(empty($row[1])){
$row[1] = "Nessuna Missione";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online Ora!";
} else {
$online_img = "offline";
$online_caption = " Offline! ";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a rel='nofollow' href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=s&direction=2&head_direction=2&gesture=sml&size=l' alt='%s' align='left' />
<b><a rel='nofollow' href='user_profile.php?name=%s'>%s</a></b>*<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br /><i>%s</i><br /><br />
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
</td>
</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 blue ">
<h2 class="title"><span style="float: left;">Xabbo Gold</span> <span style="float: right; font-weight: normal; font-size: 75%;">Moderatori in prova</span></h2><div class="box-content"><i></i></div>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id FROM users WHERE rank = 5 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 5){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if($row[2] == 5 || $row[2] > 5){ // = 5
$row[2] = "Test moderator";
}
if(empty($row[1])){
$row[1] = "Nessuna Missione";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online ora!";
} else {
$online_img = "offline";
$online_caption = " Offline! ";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a rel='nofollow' href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=s&direction=2&head_direction=2&gesture=sml&size=l' alt='%s' align='left' />
<b><a rel='nofollow' href='user_profile.php?name=%s'>%s</a></b>*<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br /><i>%s</i><br /><br />
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> <div class="habblet-container ">
<div class="cbb clearfix brown ">
<h2 class="title"><span style="float: left;">Xabbo Silver</span> <span style="float: right; font-weight: normal; font-size: 75%;">Aspiranti Hobba </span></h2><div class="box-content"><table width="107%" style="padding: 5px; margin-left: -15px; background-color: #fff;">
<tbody>
<tr>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id FROM users WHERE rank = 4 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 4){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if($row[2] == 4 || $row[2] > 4){ // = 4
$row[2] = "Hobba";
}
if(empty($row[1])){
$row[1] = "Nessuna Missione";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online ora!";
} else {
$online_img = "offline";
$online_caption = " Offline! ";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a rel='nofollow' href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=s&direction=2&head_direction=2&gesture=sml&size=l' alt='%s' align='left' />
<b><a rel='nofollow' href='user_profile.php?name=%s'>%s</a></b>*<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br /><i>%s</i><br /><br />
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
</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 orange ">
<h2 class="title"><span style="float: left;">Xabbo X</span> <span style="float: right; font-weight: normal; font-size: 75%;">Aiuta i Nuovi Xabbo</span></h2><div class="box-content"><i></i></div>
<?php
$getem = mysql_query("SELECT username,motto,rank,lastvisit,look,gender,id FROM users WHERE rank = 3 ORDER BY username") or die(mysql_error());
$staff_members = mysql_num_rows($getem);
if($staff_members == 3){
echo "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {
if($row[2] == 3 || $row[2] > 3){ // = 3
$row[2] = "Moderator";
}
if(empty($row[1])){
$row[1] = "Nessuna Missione";
}
if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online ora!";
} else {
$online_img = "offline";
$online_caption = " Offline! ";
}
$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a rel='nofollow' href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}
$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}
printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=s&direction=2&head_direction=2&gesture=sml&size=l' alt='%s' align='left' />
<b><a rel='nofollow' href='user_profile.php?name=%s'>%s</a></b>*<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br /><i>%s</i><br /><br />
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div><div id="column2" class="column"><div class="habblet-container ">
<div class="cbb clearfix white ">
<h2 class="title">Serve aiuto?
</h2>
<div id="notfound-looking-for" class="box-content">
<p>Se hai un emergenza puoi contattarci attraverso il <b><font color="orange" size="2">? arancione</font></b> che trovi in alto a sinistra in hotel oppure se hai una domanda sull'hotel e non trovi la risposta, puoi contattarci attraverso l'<a href="/iot/" target="blank">help tool</a> in home.</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script><div class="habblet-container ">
<div class="cbb clearfix lightbrown ">
<h2 class="title">Entra Nel Team
</h2>
<div id="notfound-looking-for" class="box-content">
Al momento non cerchiamo staff.
Quando ci serviranno nuovi membri dello staff lo comunicheremo attraverso una news, quindi rimani sempre su <b>Xabbo</b> per essere aggiornato!
</div>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></div>
<div id="column3" class="column">
</div>
<?php
include('templates/community/footer.php');
?>
@DarkPako
ecco a te
rinomino per problema risolto e sposto ;)Graziesei un mito
Noi e terze parti selezionate utilizziamo cookie o tecnologie simili per finalità tecniche e, con il tuo consenso, anche per altre finalità come specificato nella cookie policy. Usa il pulsante “Accetta” per acconsentire l'utilizzo di tutti i cookies. In alternativa puoi fare clic sul pulsante “Continua senza accettare” per negare il consenso o su "Gestisci le tue preferenze" per accedere a informazioni più dettagliate e modificare le tue preferenze prima di acconsentire.