Domanda Come aggiungere rank nel db e nel cms

Riferimento: Come aggiungere rank nel db e nel cms

Ovviamente ricordati di modificare i permessi dal: permission_ranks che si trova nel phpmyadmin ;)
 
Riferimento: Come aggiungere rank nel db e nel cms


Non riesco a metterlo nel cms se ti posto la pagina staff.php me lo modifichi e me lo dai??? Eccola sotto comunque:


<?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 = true;

include('core.php');
include('includes/session.php');

$tmp = getContent('mod_staff-enabled');
if($tmp !== "1"){
header("Location: index.php"); exit;
}

$pagename = "Staff Team";
$pageid = "8";

include('templates/community/subheader.php');
include('templates/community/header.php');

?>

<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">

<h2 class="title">
Lista Staff</h2>
<div id="notfound-looking-for" class="box-content">
</div>
<div class="habblet box-content">
<h2 class="title">Founder
</h2>
<?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 "No staff to display yet.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 7 || $row[2] > 7){ // = 7 or higher - Founder
$row[2] = "Founder";
}

if(empty($row[1])){
$row[1] = "";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
<br>
<h2 class="title">Amministratori
</h2>
<?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 "Non ci sono staff in questa sezione.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 6 || $row[2] > 6){ // = 6 - Admin
$row[2] = "Admin";
}

if(empty($row[1])){
$row[1] = "";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
<br>
<h2 class="title">Moderatori
</h2>
<?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 "Non ci sono staff in questa sezione.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 5 || $row[2] > 5){ // = 5 - Arbitri
$row[2] = "Moderatore";
}

if(empty($row[1])){
$row[1] = "";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
<?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 "Non ci sono staff in questa sezione.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[4] == 4 || $row[4] > 4){ // = 4 - Arbitri e Mod In Prova
$row[4] = "Arbitri e Mod in prova";
}

if(empty($row[1])){
$row[1] = "No motto";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Rank: %s<br />
Last Visit: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
<br>
<h2 class="title">Arbitri e Mod In Prova
</h2>
<?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 "Non ci sono staff in questa sezione.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 3 || $row[2] > 3){ // = 3 - Arbitri & eXpert
$row[2] = "Arbitro / eXpert";
}

if(empty($row[1])){
$row[1] = "";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Ruolo: %s<br />
Ultima visita: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$row[4],$row[0],$row[0],$row[0],$online_img,$online_caption,$online_caption,stripslashes($row[1]),$row[2],$row[3], $badge, $gbadge);
}
}
?>
<?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 "Non ci sono staff in questa sezione.";
} else {
while ($row = mysql_fetch_array($getem, MYSQL_NUM)) {

if($row[2] == 4 || $row[2] > 4){ // = 4 - Moderatori in Prova
$row[2] = "Moderatore In Prova";
}

if(empty($row[1])){
$row[1] = "No motto";
}

$badge = GetUserBadge($row[0]);
if($badge !== false){
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badge.".gif\" /></a>";
} else {
$badge= "";
}

$groupbadge = GetUserGroupBadge($row[6]);
if($groupbadge !== false){
$gbadge = "<a href='group_profile.php?id=".GetUserGroup($row[6])."'><img src='./habbo-imaging/badge.php?badge=".$groupbadge."'></a>";
} else {
$gbadge = "";
}

if(IsUserOnline($row[6])){
$online_img = "online_anim";
$online_caption = "Online now!";
} else {
$online_img = "offline";
$online_caption = "Offline";
}

printf("<p><img src='http://www.habbo.com/habbo-imaging/avatarimage?figure=%s&size=b&action=wlk&direction=4&head_direction=3&gesture=sml&size=s' alt='%s' align='left' />
<b><a href='user_profile.php?name=%s'>%s</a></b>&nbsp;<img src='./web-gallery/v2/images/habbo_%s.gif' title='%s' alt='%s' border='0'><br />
<i>%s</i><br />
<br />
Rank: %s<br />
Last Visit: %s<br />
<br />%s&nbsp;%s<br /><br /></p>
",$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>
</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 <?php echo stripslashes(getContent('staff1-color')); ?> ">

<h2 class="title"><?php echo stripslashes(getContent('staff1-heading')); ?>
</h2>
<div id="notfound-looking-for" class="box-content">
<p><?php echo stripslashes(getContent('staff1')); ?></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 <?php echo stripslashes(getContent('staff2-color')); ?> ">

<h2 class="title"><?php echo stripslashes(getContent('staff2-heading')); ?>
</h2>
<div id="notfound-looking-for" class="box-content">
<p><?php echo stripslashes(getContent('staff2')); ?></p>
</div>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


</div>

<?php

include('templates/community/footer.php');

?>
 
Riferimento: Come aggiungere rank nel db e nel cms

Ecco a te:
Codice:
Perfavore, Entra oppure Registrati per vedere i codici!

Rank 8: Founders
Rank 7: Amministratori
Rank 6 Amministratori in prova e così via fino al 2 lol