Damassa Damassa  • 14.10.16 16:56

Avatar Image não aparece no rank CEO. Empty Avatar Image não aparece no rank CEO. 14.10.16 16:56

Olá, tanto tempo que não crio um tópico aqui haushaushausha.
mas estou precisando de ajuda mesmo, bom vou explicar, o Rank CEO da página não aparece o avatar mais os outros rank's aparecem normalmente.
Print do erro: http://prntscr.com/ctwdd6

Página Equipe:

Código:
<?php
#####################################################################
#||||| hPCMS r1 - Desenvolvida por nadi0s                      |||||#
#||||| Criado por nadi0s - HTML, PHP, CSS                      |||||#
#||||| Based in RevCMS and UberCMS. @rTiago por HK.            |||||#
# ||| --------------------------------------------------------- ||| #
#||||| © Copyright 2012. UberCMS/LavvosCMS/UberCMS - Estrutura |||||#
#||||| © Copyright 2012. Sulake Corporation - HHabbo Arquivos  |||||#
#####################################################################

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

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

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

?>

<style>
div.bluea h2.title {
    background-color: #559EDC;
}

</style><div id="container">
<div id="content" style="position: relative; left: 0px; top: 0px;" class="clearfix">


<style>
#column6 {
width: 770px;
}
      
div.section.avatar {
position: relative;
float: right;
width: 64px;
height: 64px;
margin-top: -65px;
left: 370px;
}

div.section.avatar div.avatar {
margin-top: -8px;
height: 72px;
width: 64px;
overflow: hidden;
}

div.section.avatar div.onlinehHabbos {
position: absolute;
top: 82px;
right: 460px;
border: 5px solid #FFFFFF;
border: 5px solid rgba(0, 0, 0, 0.4);
border-radius: 6px;
background: #FFFFFF;
background: rgba(0, 0, 0, 0.1);
white-space: nowrap;
background-clip: padding-box;
}

div.section.avatar div.onlinehHabbos div.arrow_border {
position: absolute;
height: 0;
width: 0;
top: 5px;
right: -17px;
border-left: 12px solid rgba(0, 0, 0, 0.4);
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
}

div.section.avatar div.onlinehHabbos {
white-space: nowrap;
}

div.section.avatar div.onlinehHabbos div.arrow_border div.arrow {
position: absolute;
height: 0;
width: 0;
top: -12px;
right: 7px;
border-left: 12px solid #FFFFFF;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
}

div.section.avatar div.onlinehHabbos div.text {
position: relative;
background: #FFFFFF;
padding: 10px;
color: #454545;
border-radius: 3px;
}
      </style>
 




<?php

$i = 0;

$getem = mysql_query("SELECT * FROM ranks WHERE id < 9 ORDER BY id DESC LIMIT 3") or die(mysql_error());
while ($rank = mysql_fetch_assoc($getem)) {
$num = mysql_num_rows(mysql_query("SELECT * FROM players WHERE rank = '".$rank['id']."' ORDER BY id"));

?>

<div id="column1" class="column">
<div class="habblet-container ">       
<div class="cbb bluea">
<div class="habblife"> <?php echo $rank['name']; ?></div>



 

                     <?php
 
$userdata = mysql_query("SELECT * FROM players WHERE rank = '".$rank['id']."' ORDER BY last_online DESC");
while($row = mysql_fetch_assoc($userdata)){
 
$i++;
 
$badge = mysql_query("SELECT * FROM players_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$badge2 = mysql_query("SELECT * FROM players_badges WHERE user_id = '".$row['id']."' AND badge_slot = '2'");
$badge3 = mysql_query("SELECT * FROM players_badges WHERE user_id = '".$row['id']."' AND badge_slot = '3'");
$badge4 = mysql_query("SELECT * FROM players_badges WHERE user_id = '".$row['id']."' AND badge_slot = '4'");
$badge5 = mysql_query("SELECT * FROM players_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 = "online_anim_big";
} else {
        $image = "offline_big";
}
 
if(IsEven($i)){
        $even = "even";
} else {
        $even = "odd";
}
 
?><style>
.ssh {
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;
background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f1f1f1), color-stop(51%,#e1e1e1), color-stop(100%,#f6f6f6));
background: -webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: -o-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 );
}
#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);
}
#aviso-cont {
width: 61px;
height: 61px;
position: relative;
}
.avatarImageStaff {
float: left;
    height: 69px;
    margin: -26px 0px 0px 0px;
    width: 64px;   
}
.staffClearFix {
    border-bottom: 1px dashed #CCC;
    margin: 5px 0px 0px 14px;
}
</style>
<style>#aviso-cont{width:61px;height:61px;position:relative;}.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>


<li class="odd">
<p>
<div class="avatarImageStaff" style="background-image:url('<?php echo $avatar; echo $row['figure']; ?>&direction=2&action=stand&head_direction=3&gesture=sml')"></div>
<b><i><a href="./hall-user.php?user=<?php echo $row['username']; ?>"><?php echo $row['username']; ?></a></i></b></span>&nbsp
<img style="float: right;" src='./web-gallery/v2/images/<?php echo $image; ?>.gif' border='0'><br><br>
<img style="vertical-align:bottom;margin:0px 1px 0px 1px" src="http://i.imgur.com/LfNKAPI.png"> <span style="color: #7F7F7F;"> <?php echo $row['work']; ?></span><br>
</li>
<div class="staffClearFix"></div>
 
 <?php if($row['rank'] > 3){ ?>


<?php } ?>

</li>


<?php  }?>


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

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

<style>
.ssh {
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;
background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f1f1f1), color-stop(51%,#e1e1e1), color-stop(100%,#f6f6f6));
background: -webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: -o-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
background: linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 );
}
.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="column2" class="column">
<div class="habblet-container ">       
<div class="cbb bluea ">
<div class="habblife"> CEO/Fundador</div>
 <?php
$i = 0;

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


?>
   
<?php

$userdata = mysql_query("SELECT * FROM players WHERE rank = 9 ORDER BY last_online DESC");
while($row = mysql_fetch_assoc($userdata)){

$i++;

$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($row['online'] == "1"){
   $image = "online";
} else {
   $image = "offline";
}

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


?>
<li class="odd">
<p>
<div class="avatarImageStaff" style="background-image:url('<?php echo $avatar; echo $row['figure']; ?>&direction=2&action=stand&head_direction=3&gesture=sml')"></div>
<b><i><a href="./hall-user.php?user=<?php echo $row['username']; ?>"><?php echo $row['username']; ?></a></i></b></span>&nbsp
<img style="float: right;" src='./web-gallery/v2/images/<?php echo $image; ?>.gif' border='0'><br><br>
<img style="vertical-align:bottom;margin:0px 1px 0px 1px" src="http://i.imgur.com/LfNKAPI.png"> <span style="color: #7F7F7F;"> <?php echo $row['work']; ?></span><br>
</li>
<div class="staffClearFix"></div>
<?php } ?></div>


<?php } ?>

<div id="column2" class="column">
                                        <div class="habblet-container ">             
<div class="cbb bluea">
 
<div class="habblife"> Antrax Equipe </div>
 
                                                <div class="box-content">
 
        <img src="http://i.imgur.com/ovaZpgf.gif" align="right">
     
        <p>
                A Equipe Antrax está sempre disposta a te ajudar, promovendo entretenimento com notícias, atividades especiais e eventos, e é claro, mantendo a ordem e a segurança dentro do hotel.

Todos os membros legítimos da Equipe Habblife 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, okay?!      </p>
 
</div>
</div></div></div></div>


</div></div>




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


Última edição por Hahn em 14.10.16 16:59, editado 1 vez(es)

Unk Unk  • 14.10.16 16:59

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 16:59

Hahn troque os links dos avatares por esse http://avatar.devhabbos.com/avatar-imaging?figure=

Damassa Damassa  • 14.10.16 17:03

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 17:03

Unk escreveu:Hahn troque os links dos avatares por esse http://avatar.devhabbos.com/avatar-imaging?figure=
Bom, de uma olhada no código, como pode ver já tem link do php no avatar image, nos outros rank's funcionam.

Phytols Phytols  • 14.10.16 17:19

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 17:19

Acredito que é so você copiar o codigo do outro rank por exemplo: Moderador, e depois você cola no lugar do de fundador e muda o nome juntamente com o numero do rank!
[aviso=Avatar Image não aparece no rank CEO. H5W0zbq] O autor do tópico possui 24 horas para informar se a questão foi resolvida! [/aviso]

Damassa Damassa  • 14.10.16 17:20

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 17:20

Marshmello escreveu:
Acredito que é so você copiar o codigo do outro rank por exemplo: Moderador, e depois você cola no lugar do de fundador e muda o nome juntamente com o numero do rank!
[aviso=Avatar Image não aparece no rank CEO. H5W0zbq] O autor do tópico possui 24 horas para informar se a questão foi resolvida! [/aviso]
Cara, tipo os outros rank's é puxado não sei como, eu já tentei copiar e colar no lugar do CEO mais ainda da problema no php e a página não carrega.

Vong Vong  • 14.10.16 19:13

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 19:13

<div class="avatarImageStaff" style="background-image:url('<?php echo $avatar; echo $row['figure']; ?>&direction=2&action=stand&head_direction=3&gesture=sml')"></div>

o erro aparenta ser nessa div aqui. Creio que na parte "style="background-image:url('<?php echo $avatar; echo $row['figure']" tem um erro ai. Onde tem :url coloque o link da sua habbo-image, que no caso, deve ser esse aqui http://avatar.devhabbos.com/avatar-imaging?figure=.
Quando colocar remova essa parte: ('<?php echo $avatar; echo $row['figure']

Ficando assim:
<div class="avatarImageStaff" style="background-image:http://avatar.devhabbos.com/avatar-imaging?figure=; ?>&direction=2&action=stand&head_direction=3&gesture=sml')"></div>

Damassa Damassa  • 14.10.16 19:26

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 19:26

Podem fechar o tópico, consegui resolver.

Vedox Vedox  • 14.10.16 19:48

Avatar Image não aparece no rank CEO. Empty Re: Avatar Image não aparece no rank CEO. 14.10.16 19:48

TOPICO FECHADO PEDIDO DO AUTOR
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.