Problema Non riesco a mettere i rari in cata agli admin

peppemazara7

Utente Normale
Autore del topic
22 Febbraio 2011
58
0
Miglior risposta
0
Anche se modifico il min rank nel db agli admin mod e arb non appare il catalogo staff!!!! Aiutatemi please!!!

Uso il db di gammino itekko cms e phoenix emu 3.7.0
 
Riferimento: Non riesco a mettere i rari in cata agli admin

Il mio db ha questo problema..
Per risolverlo basta mettere il rank founder all'8
e il rank 7 farlo admin, così facendo puoi risolvere..
 
Riferimento: Non riesco a mettere i rari in cata agli admin

Sennò la sezione 'Rari' per gli utenti con il rank 1 la trasformi in rank 6.
 
Riferimento: Non riesco a mettere i rari in cata agli admin

Il mio db ha questo problema..
Per risolverlo basta mettere il rank founder all'8
e il rank 7 farlo admin, così facendo puoi risolvere..

Il problema è che poi non so aggiungere il rank al file staff.php
 
Riferimento: Non riesco a mettere i rari in cata agli admin


Scusa e per inserirlo nel db???
--------------- AGGIUNTA AL POST ---------------

Se ti posto il mio staff.php Puoi modificarmelo e me lo posti modificato???
 
Ultima modifica:
Riferimento: Non riesco a mettere i rari in cata agli admin

Scusa e per inserirlo nel db???
--------------- AGGIUNTA AL POST ---------------


Se ti posto il mio staff.php Puoi modificarmelo e me lo posti modificato???

Posta pure, comunque se segui il mio consiglio risolvi ugualmente ;)
 
Riferimento: Non riesco a mettere i rari in cata agli admin

Posta pure, comunque se segui il mio consiglio risolvi ugualmente ;)

Eccolo!!! ;)


<?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');

?>