Power Pixel
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.


Fechar janela

nubiabatista nubiabatista  • 10.08.15 14:36

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) 10.08.15 14:36

Print de meu erro: www.prntscr.com/831w3b

Qual é meu erro: Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos)

CMS Que estou utilizando: habbluz

SWF que estou utilizando: ....

Versão de meu hotel: NewCrypto

Se escolheu outros, especifique: Texto aqui

Comentários adicionais: Eu gostaria de colocar descrição em cada cargo na cms da pagina da equipe, olhem esse print www.prntscr.com/831w3b , alguem sabe como deixar a pagina da equipe assim bem bonita e com descrição nos cargos?

HelpHuxx HelpHuxx  • 10.08.15 16:26

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 10.08.15 16:26

(Moderação, da uma punição nesse cara ^^^ GustP, fez um comentário inútil.)

VERDADEIRO TUTORIAL:
- Você deve ir na sua DataBase
- Encontre a tabela "Users"
- Entre na tabela, vários usuários aparecerão, ai você procura o staff.
- Achou o Staff? Clique nele e as informações dele irão aparecer, e lá em baixo,
estará a "WORKING", você edita a WORKING do staff, pois a WORKING contém a função.

Qualquer dúvida, me pergunte.

nubiabatista nubiabatista  • 10.08.15 16:50

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 10.08.15 16:50

HelpHuxx, Não funcionou.. veja se configurei corretamente no print > www.prntscr.com/833meb e olha como ficou www.prntscr.com/833ly5




Só pra constar que eu executei a frase no working..

Saigon Saigon  • 11.08.15 9:56

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty Re: Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) 11.08.15 9:56

Você quer adicionar as funções na página staff não é?
É só você adicionar isso na página staff.php, caso não souber me envia e a página e uma foto de como quer que fica.

margaridabela margaridabela  • 11.08.15 21:52

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 11.08.15 21:52

Snoke, sou a mesma pessoa, dona do tópico, achei um bloco de notas dentro do meu htdocs com nome ''STAFF'', é isso? como configuro? 
Código:
<?php

require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');

$pagename = "Equipe";
$pageid = "11b";

require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');


?>
<style>
#emblemas {
   width: 61px;
   height: 61px;
   margin-right: 5px;
   margin-top: 5px;
   text-align: center;
   line-height: 60px;
   float: left;
   cursor: default;
   text-align: center;
   background-position: center center;
   background-repeat: no-repeat;
   background-color: rgba(0,0,0,0.1);
   -webkit-border-radius: 3px;
   border-radius: 3px;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
   box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

#person {
   
   width: 75px;
   height: 104px;
   margin-left: 10px;
   margin-top: 1px;
   text-align: center;
   line-height: 60px;
   float: left;
   cursor: default;
   text-align: center;
    margin-right:5px;
   background-position: 4px -10px;
   background-repeat: no-repeat;
   background-color: rgba(0,0,0,0.1);
   -webkit-border-radius: 3px;
   border-radius: 3px;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
   box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

#person:hover {
   background-color: rgba(0,0,0,0.3);
}
.aviso {
   line-height: 15px;
   margin: 0;
   color: rgba(255,255,255,1);
   font-size: 12px;
   background: rgba(0,0,0,1);
   opacity: 0;
   visibility: hidden;
   position: absolute;
   bottom: 5px;
   left: 50%;
   margin-left: -16px;
   boder:: 99;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   margin-bottom: 40px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
}
.aviso-dentro {
   font-family: Verdana;
   font-size: 11px;
   padding: 10px;
   letter-spacing: 0px;
   position: relative;
   boder:: 999;
}
.aviso-dentro-seta {
   width: 10px;
   height: 10px;
   bottom: 2px;
   margin-bottom: -5px;
   background: rgba(0,0,0,1);
   position: absolute;
   margin-left: 10px;
   -webkit-transform: rotate(-45deg);
   -moz-transform: rotate(-45deg);
   -ms-transform: rotate(-45deg);
   -o-transform: rotate(-45deg);
   filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

   .error {
      padding: 7px;
      background-color: #fff4f2;
      border: 1px solid #a63c29;
      color: #E2001A;
      margin-top: 5px;
   }

   .error > h3 {
      font-weight: bold;
      margin: 0px;
      padding: 0px;
      font-size: 13px;
   }
   div.goodmsg {
      padding: 7px;
      background-color: #d8f3d8;
      border: 1px solid #4da04d;
      color: #205220;
      margin-top: 5px;
   }

   div.goodmsg > h3 {
      font-weight: bold;
      margin: 0px;
      padding: 0px;
      font-size: 13px;
   }
   div.display_none {
      display: none;
   }
   </style>
   
<style>
.ssh2 {
float:left;
width:70px;
height: 100px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
margin-left:5px;
margin-right:5px;
border-radius:5px;
text-align:center;
border:3px solid #000;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f1f1f1), color-stop(51%,#e1e1e1), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* IE10+ */
background: linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
.ssh2:hover {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f3f3f3), color-stop(51%,#ededed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* IE10+ */
background: linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}
</style>


<div id="container">
<div id="content">
<?php

$i = 0;

$getem = mysql_query("SELECT * FROM ranks WHERE id = 9 ORDER BY id DESC LIMIT 4") or die(mysql_error());
while ($rank = mysql_fetch_assoc($getem)) {


?>

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




<h2 class="title"><?php echo $rank['name']; ?></h2>

<?php

$userdata = mysql_query("SELECT * FROM users WHERE rank = '".$rank['id']."' ORDER BY last_online  DESC");
while($row = mysql_fetch_assoc($userdata)){

$i++;

$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$badge2 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '2'");
$badge3 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '3'");
$badge4 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '4'");
$badge5 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '5'");

$get_groups = mysql_query("SELECT * FROM group_members WHERE id_user = '".$row['id']."' AND is_current = '1'");
$members_row = mysql_fetch_assoc($get_groups);


if(mysql_num_rows($badge) > 0){
   $badgerow = mysql_fetch_assoc($badge);
   $badge = "<img src=\"".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif\">";
}else{
   $badge = "<br>";
}

if(mysql_num_rows($badge2) > 0){
   $badgerow2 = mysql_fetch_assoc($badge2);
        $badge2 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif\">";
}else{
   $badge2 = "<br>";
}

if(mysql_num_rows($badge3) > 0){
   $badgerow3 = mysql_fetch_assoc($badge3);
        $badge3 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow3['badge_id'].".gif\">";
}else{
   $badge3 = "";
}


if(mysql_num_rows($badge4) > 0){
   $badgerow4 = mysql_fetch_assoc($badge4);
        $badge4 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow4['badge_id'].".gif\">";
}else{
   $badge4 = "";
}


if(mysql_num_rows($badge5) > 0){
   $badgerow5 = mysql_fetch_assoc($badge5);
        $badge5 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow5['badge_id'].".gif\">";
}else{
   $badge5 = "";
}


if(mysql_num_rows($get_groups) > 0){
   $grouprow = mysql_query("SELECT * FROM group_details WHERE id = '".$members_row['id_group']."' LIMIT 1");
   $group = mysql_fetch_assoc($grouprow);

   $groupbadge = "<a href=\"".$path."/groups/".$group['id']."\"><img src=\"".$path."/habbo-imaging/badge.php?badge=".$group['badge'].".gif\"></a>";
}else{
   $groupbadge = "<br>";
}

if($row['online'] == "1"){
   $image = "habbo_online_anim_big";
} else {
   $image = "habbo_offline_big";
}

if(IsEven($i)){
   $even = "even";
} else {
   $even = "odd";
}




?>


<li class="<?php echo $even; ?>">

</br>

<div id="person" style="background-image:url('http://habbo.co.uk/habbo-imaging/avatarimage?img_format=gif&figure=<?php echo $row['look']; ?>&direction=3&head_direction=3&gesture=sml&size=b&size=b&direction=3&head_direction=3&gesture=sml&action=wav');"><br/><br></div>
<td width="215" valign="top"><div style="padding-top:3px;"><b><?php echo $row['username']; ?></b><br /><b>Missão:</b> <?php echo $row['motto']; ?><br /><b>Último Login:</b> <?php echo date('d/m/Y', $row['account_created']); echo""; ?>

 <?php echo $row['country']; ?></div>

  </tr>
</tab[b][/b]le>
</li>

<?php } ?>

</div>
</div>

<?php } ?>

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

<div id="column2" class="column">
<div class="habblet-container ">       
<div class="cbb clearfix fdsf ">
<h2 class="title">Info</h2>
<div class="habblet box-content"><p><img style="float: right;" src="" alt="" />A Equipe <?php echo $sitename;?> é responsável por manter a ordem no hotel, incluindo fazer promoções, eventos e cuidar do monitoramento de todas denuncias. <br /><br />
Todos os membros legitimos da Equipe <?php echo $sitename;?> têm o emblema staff de identificação, o mesmo pode ser visto acima, então não se deixe enganar por pessoas se passando por membros da equipe.</p></div>
</div>
</div>
</div>

</div>

<?php

$i = 0;

$getem = mysql_query("SELECT * FROM ranks WHERE id < 9 ORDER BY id DESC LIMIT 5") or die(mysql_error());
while ($rank = mysql_fetch_assoc($getem)) {


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




<h2 class="title"><?php echo $rank['name']; ?></h2>


<?php

$userdata = mysql_query("SELECT * FROM users WHERE rank = '".$rank['id']."' ORDER BY last_online DESC");
while($row = mysql_fetch_assoc($userdata)){

$i++;

$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$badge2 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '2'");
$badge3 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '3'");
$badge4 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '4'");
$badge5 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '5'");

$get_groups = mysql_query("SELECT * FROM group_members WHERE id_user = '".$row['id']."' AND is_current = '1'");
$members_row = mysql_fetch_assoc($get_groups);


if(mysql_num_rows($badge) > 0){
   $badgerow = mysql_fetch_assoc($badge);
   $badge = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
   
   
}else{
   $badge = "<br>";
}

if(mysql_num_rows($badge2) > 0){
   $badgerow2 = mysql_fetch_assoc($badge2);
   $badge2 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow2['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge2 = "<br>";
}

if(mysql_num_rows($badge3) > 0){
   $badgerow3 = mysql_fetch_assoc($badge3);
   $badge3 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow3['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow3['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge3 = "";
}


if(mysql_num_rows($badge4) > 0){
   $badgerow4 = mysql_fetch_assoc($badge4);
   $badge4 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow4['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow4['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge4 = "";
}


if(mysql_num_rows($badge5) > 0){
   $badgerow5 = mysql_fetch_assoc($badge5);
   $badge5 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow5['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow5['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge5 = "";
}


if(mysql_num_rows($get_groups) > 0){
   $grouprow = mysql_query("SELECT * FROM group_details WHERE id = '".$members_row['id_group']."' LIMIT 1");
   $group = mysql_fetch_assoc($grouprow);

   $groupbadge = "<a href=\"".$path."/groups/".$group['id']."\"><img src=\"".$path."/habbo-imaging/badge.php?badge=".$group['badge'].".gif\"></a>";
}else{
   $groupbadge = "<br>";
}

if($row['online'] == "1"){
   $image = "habbo_online_anim_big";
} else {
   $image = "habbo_offline_big";
}

if(IsEven($i)){
   $even = "even";
} else {
   $even = "odd";
}

?>

<li class="<?php echo $even; ?>">
<p><div id="person" style="background-image:url('http://habbo.co.uk/habbo-imaging/avatarimage?img_format=gif&figure=<?php echo $row['look']; ?>&direction=3&head_direction=3&gesture=sml&size=b&size=b&direction=3&head_direction=3&gesture=sml&action=wav');"><br/><br></div>
<b><?php echo $row['username']; ?></b></span><span style="float: right;"><img src='./web-gallery/images/myhabbo/<?php echo $image; ?>.gif' style='margin-right:5px;' border='0'> </span><br>
<b>Missão: </b></b>  <?php echo $row['motto']; ?><br>


<?php echo $badge; ?>

<?php echo $badge2; ?>

<?php echo $badge3; ?>

<?php echo $badge4; ?>

<?php echo $badge5; ?>

<img src="http://i.imgur.com/i85iztI.png" width="100%" height="0" /></p>
</li>

<?php } ?>
</div>
</div>
<?php } ?>

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


</div>
</div></div>
</div>


<?php require_once('./templates/community_footer.php'); ?></div>

Saigon Saigon  • 11.08.15 21:55

HelpHuxx HelpHuxx  • 12.08.15 19:33

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 12.08.15 19:33

[quote=nubiabatista]

HelpHuxx, Não funcionou.. veja se configurei corretamente no print > www.prntscr.com/833meb e olha como ficou www.prntscr.com/833ly5




Só pra constar que eu executei a frase no working..[/quote]

Olá, eu verifiquei seu erro, foi simples,
você esqueceu de por a PHP na página staff!

AQUI ESTÁ A SUA PÁGINA COM O WORKING:
[codebox]<?php

require_once('./data_classes/server-data.php_data_classes-core.php.php');
require_once('./data_classes/server-data.php_data_classes-session.php.php');

$pagename = "Equipe";
$pageid = "11b";

require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');


?>
<style>
#emblemas {
   width: 61px;
   height: 61px;
   margin-right: 5px;
   margin-top: 5px;
   text-align: center;
   line-height: 60px;
   float: left;
   cursor: default;
   text-align: center;
   background-position: center center;
   background-repeat: no-repeat;
   background-color: rgba(0,0,0,0.1);
   -webkit-border-radius: 3px;
   border-radius: 3px;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
   box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

#person {
    
   width: 75px;
   height: 104px;
   margin-left: 10px;
   margin-top: 1px;
   text-align: center;
   line-height: 60px;
   float: left;
   cursor: default;
   text-align: center;
    margin-right:5px;
   background-position: 4px -10px;
   background-repeat: no-repeat;
   background-color: rgba(0,0,0,0.1);
   -webkit-border-radius: 3px;
   border-radius: 3px;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
   box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1), inset 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

#person:hover {
   background-color: rgba(0,0,0,0.3);
}
.aviso {
   line-height: 15px;
   margin: 0;
   color: rgba(255,255,255,1);
   font-size: 12px;
   background: rgba(0,0,0,1);
   opacity: 0;
   visibility: hidden;
   position: absolute;
   bottom: 5px;
   left: 50%;
   margin-left: -16px;
   boder:: 99;
   -webkit-transition: all 0.3s ease-in-out;
   -moz-transition: all 0.3s ease-in-out;
   -ms-transition: all 0.3s ease-in-out;
   -o-transition: all 0.3s ease-in-out;
   transition: all 0.3s ease-in-out;
   margin-bottom: 40px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
}
.aviso-dentro {
   font-family: Verdana;
   font-size: 11px;
   padding: 10px;
   letter-spacing: 0px;
   position: relative;
   boder:: 999;
}
.aviso-dentro-seta {
   width: 10px;
   height: 10px;
   bottom: 2px;
   margin-bottom: -5px;
   background: rgba(0,0,0,1);
   position: absolute;
   margin-left: 10px;
   -webkit-transform: rotate(-45deg);
   -moz-transform: rotate(-45deg);
   -ms-transform: rotate(-45deg);
   -o-transform: rotate(-45deg);
   filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

   .error {
      padding: 7px;
      background-color: #fff4f2;
      border: 1px solid #a63c29;
      color: #E2001A;
      margin-top: 5px;
   }

   .error > h3 {
      font-weight: bold;
      margin: 0px;
      padding: 0px;
      font-size: 13px;
   }
   div.goodmsg {
      padding: 7px;
      background-color: #d8f3d8;
      border: 1px solid #4da04d;
      color: #205220;
      margin-top: 5px;
   }

   div.goodmsg > h3 {
      font-weight: bold;
      margin: 0px;
      padding: 0px;
      font-size: 13px;
   }
   div.display_none {
      display: none;
   }
   </style>
   
<style>
.ssh2 {
float:left;
width:70px;
height: 100px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
margin-left:5px;
margin-right:5px;
border-radius:5px;
text-align:center;
border:3px solid #000;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f1f1f1), color-stop(51%,#e1e1e1), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* IE10+ */
background: linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
.ssh2:hover {
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f3f3f3), color-stop(51%,#ededed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* IE10+ */
background: linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}
</style>


<div id="container">
<div id="content">
<?php

$i = 0;

$getem = mysql_query("SELECT * FROM ranks WHERE id = 9 ORDER BY id DESC LIMIT 4") or die(mysql_error());
while ($rank = mysql_fetch_assoc($getem)) {


?>

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




<h2 class="title"><?php echo $rank['name']; ?></h2>

<?php 

$userdata = mysql_query("SELECT * FROM users WHERE rank = '".$rank['id']."' ORDER BY last_online  DESC");
while($row = mysql_fetch_assoc($userdata)){

$i++;

$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$badge2 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '2'");
$badge3 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '3'");
$badge4 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '4'");
$badge5 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '5'");

$get_groups = mysql_query("SELECT * FROM group_members WHERE id_user = '".$row['id']."' AND is_current = '1'");
$members_row = mysql_fetch_assoc($get_groups);


if(mysql_num_rows($badge) > 0){
   $badgerow = mysql_fetch_assoc($badge);
   $badge = "<img src=\"".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif\">";
}else{
   $badge = "<br>";
}

if(mysql_num_rows($badge2) > 0){
   $badgerow2 = mysql_fetch_assoc($badge2);
        $badge2 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif\">";
}else{
   $badge2 = "<br>";
}

if(mysql_num_rows($badge3) > 0){
   $badgerow3 = mysql_fetch_assoc($badge3);
        $badge3 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow3['badge_id'].".gif\">";
}else{
   $badge3 = "";
}


if(mysql_num_rows($badge4) > 0){
   $badgerow4 = mysql_fetch_assoc($badge4);
        $badge4 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow4['badge_id'].".gif\">";
}else{
   $badge4 = "";
}


if(mysql_num_rows($badge5) > 0){
   $badgerow5 = mysql_fetch_assoc($badge5);
        $badge5 = "<img src=\"".$cimagesurl.$badgesurl.$badgerow5['badge_id'].".gif\">";
}else{
   $badge5 = "";
}


if(mysql_num_rows($get_groups) > 0){
   $grouprow = mysql_query("SELECT * FROM group_details WHERE id = '".$members_row['id_group']."' LIMIT 1");
   $group = mysql_fetch_assoc($grouprow);

   $groupbadge = "<a href=\"".$path."/groups/".$group['id']."\"><img src=\"".$path."/habbo-imaging/badge.php?badge=".$group['badge'].".gif\"></a>";
}else{
   $groupbadge = "<br>";
}

if($row['online'] == "1"){
   $image = "habbo_online_anim_big";
} else {
   $image = "habbo_offline_big";
}

if(IsEven($i)){
   $even = "even";
} else {
   $even = "odd";
}




?>


<li class="<?php echo $even; ?>"> 

</br>

<div id="person" style="background-image:url('http://habbo.co.uk/habbo-imaging/avatarimage?img_format=gif&figure=<?php echo $row['look']; ?>&direction=3&head_direction=3&gesture=sml&size=b&size=b&direction=3&head_direction=3&gesture=sml&action=wav');"><br/><br></div>
<td width="215" valign="top"><div style="padding-top:3px;"><b><?php echo $row['username']; ?></b><br /><b>Missão:</b> <?php echo $row['motto']; ?><br /><b>Último Login:</b> <?php echo date('d/m/Y', $row['account_created']); echo""; ?>

 <?php echo $row['country']; ?></div>

  </tr>
</table>
</li>

<?php } ?>

</div>
</div>

<?php } ?>

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

<div id="column2" class="column">
<div class="habblet-container ">        
<div class="cbb clearfix fdsf ">
<h2 class="title">Info</h2>
<div class="habblet box-content"><p><img style="float: right;" src="" alt="" />A Equipe <?php echo $sitename;?> é responsável por manter a ordem no hotel, incluindo fazer promoções, eventos e cuidar do monitoramento de todas denuncias. <br /><br />
Todos os membros legitimos da Equipe <?php echo $sitename;?> têm o emblema staff de identificação, o mesmo pode ser visto acima, então não se deixe enganar por pessoas se passando por membros da equipe.</p></div>
</div>
</div>
</div>

</div>

<?php

$i = 0;

$getem = mysql_query("SELECT * FROM ranks WHERE id < 9 ORDER BY id DESC LIMIT 5") or die(mysql_error());
while ($rank = mysql_fetch_assoc($getem)) {


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




<h2 class="title"><?php echo $rank['name']; ?></h2>


<?php 

$userdata = mysql_query("SELECT * FROM users WHERE rank = '".$rank['id']."' ORDER BY last_online DESC");
while($row = mysql_fetch_assoc($userdata)){

$i++;

$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$badge2 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '2'");
$badge3 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '3'");
$badge4 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '4'");
$badge5 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '5'");

$get_groups = mysql_query("SELECT * FROM group_members WHERE id_user = '".$row['id']."' AND is_current = '1'");
$members_row = mysql_fetch_assoc($get_groups);


if(mysql_num_rows($badge) > 0){
   $badgerow = mysql_fetch_assoc($badge);
   $badge = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
   
   
}else{
   $badge = "<br>";
}

if(mysql_num_rows($badge2) > 0){
   $badgerow2 = mysql_fetch_assoc($badge2);
   $badge2 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow2['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow2['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge2 = "<br>";
}

if(mysql_num_rows($badge3) > 0){
   $badgerow3 = mysql_fetch_assoc($badge3);
   $badge3 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow3['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow3['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge3 = "";
}


if(mysql_num_rows($badge4) > 0){
   $badgerow4 = mysql_fetch_assoc($badge4);
   $badge4 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow4['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow4['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge4 = "";
}


if(mysql_num_rows($badge5) > 0){
   $badgerow5 = mysql_fetch_assoc($badge5);
   $badge5 = "<div id=\"emblemas\" style=\"background-image:url('".$cimagesurl.$badgesurl.$badgerow5['badge_id'].".gif')\"><div id=\"aviso-cont\"><div class=\"aviso\"><div class=\"aviso-dentro\">".$badgerow5['badge_id']."</div><div class=\"aviso-dentro-seta\"></div></div></div></div>";
}else{
   $badge5 = "";
}


if(mysql_num_rows($get_groups) > 0){
   $grouprow = mysql_query("SELECT * FROM group_details WHERE id = '".$members_row['id_group']."' LIMIT 1");
   $group = mysql_fetch_assoc($grouprow);

   $groupbadge = "<a href=\"".$path."/groups/".$group['id']."\"><img src=\"".$path."/habbo-imaging/badge.php?badge=".$group['badge'].".gif\"></a>";
}else{
   $groupbadge = "<br>";
}

if($row['online'] == "1"){
   $image = "habbo_online_anim_big";
} else {
   $image = "habbo_offline_big";
}

if(IsEven($i)){
   $even = "even";
} else {
   $even = "odd";
}

?>

<li class="<?php echo $even; ?>">
<p><div id="person" style="background-image:url('http://habbo.co.uk/habbo-imaging/avatarimage?img_format=gif&figure=<?php echo $row['look']; ?>&direction=3&head_direction=3&gesture=sml&size=b&size=b&direction=3&head_direction=3&gesture=sml&action=wav');"><br/><br></div>
<b><?php echo $row['username']; ?></b></span><span style="float: right;"><img src='./web-gallery/images/myhabbo/<?php echo $image; ?>.gif' style='margin-right:5px;' border='0'> </span><br>
<b>Missão: </b></b>  <?php echo $row['motto']; ?><br>
<b>Função:</b> <?php echo $row['working']; ?><br />

 


<?php echo $badge; ?>

<?php echo $badge2; ?>

<?php echo $badge3; ?>

<?php echo $badge4; ?>

<?php echo $badge5; ?>

<img src="https://i.imgur.com/i85iztI.png" width="100%" height="0" /></p>
</li>

<?php } ?>
</div>
</div>
<?php } ?>

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


</div>
</div></div>
</div>


<?php require_once('./templates/community_footer.php'); ?></div>[/codebox]

SE AJUDEI, DA UM "+" !

nubiabatista nubiabatista  • 12.08.15 20:01

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 12.08.15 20:01

HelpHuxx, fico muito grata, ajudou super 100%, funcionou mesmo, Deus abençoe! Podem fechar.




Uma pequena dúvida antes que fechem, é possível habilitar os emblemas dos users para que mostre aqui? www.prntscr.com/83yu2s

HelpHuxx HelpHuxx  • 13.08.15 2:23

Como colocar descrição em cada rank? (Moderador: Responsável por entreter os usuários com eventos) Empty teste 13.08.15 2:23

Sim é possível, ai você vai ter que usar um outro código, seria mais fácil se você nos desse o Link do Hotel.

Saigon Saigon  • 13.08.15 9:03

Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.