Bran
habcrush.pw
hey devbest, so i got a new staff page from here and it has the badges underneath the names and stuff, but i've put the code of my badge into the code of the staff.php and they arn't loading? they are coming up like broken images? but the one on the right works fine?? can somebody maybe help me? thanks in advance
Staff.php code
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Habcrush: Staff Team</title>
<style type="text/css">hr{border-top:1px solid #e3e3db;border-left:none;border-bottom:none;bottom-right:none;width:90%;}</style>
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script>
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script>
<script type="text/javascript">
document.habboLoggedIn = true;
var habboName = "{username}";
var habboId = {userid};
var habboReqPath = "";
var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
var habboImagerUrl = "https://avatar-retro.com/habbo-imaging/";
var habboPartner = "";
var habboDefaultClientPopupUrl = "{url}/client";
window.name = "habboMain";
if (typeof HabboClient != "undefined") {
HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
HabboClient.maximizeWindow = true;
}
</script>
<!--[if IE 8]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
</style>
<![endif]-->
</head>
<body id="home">
<div id="overlay"></div>
<?php
$parentId = 3;
$childId = 16;
include ("includes/header.php");
?>
<div id="container">
<div id="content">
<div id="column1" class="column">
<?php
function GetDescr($level)
{
switch ($level)
{
case 9:
return 'Hotel Creators';
case 8:
return 'Hotel Constructors';
case 7:
return 'Administrative Staff';
case 6:
return 'Moderator Coordinators/Leaders';
case 5:
return 'Community Moderation Staff';
case 4:
return 'Head Moderators';
case 3:
return 'Trainee Moderators';
default:
default:
return '';
}
}
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id >= 3 ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix pixellightblue ">
<h2 class="title"><span style="float: left;">' . $Ranks['name'] . '</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($Ranks['id']) . '</span></h2>';
$getMembers = mysql_query("SELECT id,username,motto,look,online,last_online FROM users WHERE rank = '" . $Ranks['id'] . "'");
echo '<div class="box-content">';
if (mysql_num_rows($getMembers) > 0)
{
$oe = 1;
while ($member = mysql_fetch_assoc($getMembers))
{
if ($oe == 2)
{
$oe = 1;
}
else
{
$oe = 2;
}
echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';">
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="https://avatar-retro.com/habbo-imaging/avatarimage?figure=' .$member['look'] . '&size=m">
</td>
<td valign="top">
<p style="font-size: 90%;">Username: <strong>' .$member['username'] . '</strong><br>Motto: <strong>' . $member['motto'] . '</strong><br><i>Last Online: '. date("D, d F Y H:i (P)", $member['last_online']) .'</i></p>
<br />';
$getBadges = mysql_query("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 1");
while ($b = mysql_fetch_assoc($getBadges))
{
echo '<img src="/c_images/album1584/CRUSHSTAFF.gif' . $b['badge_id'] . 'CRUSHSTAFF.gif" style="float:left;"> ';
}
echo '</td>
<td valign="top" style="float: right;">
' . (($member['online'] == "1") ? '<img src="{url}/app/tpl/skins/Habbo/images/online.gif"/>': '<img src="{url}/app/tpl/skins/Habbo/images/offline.gif"/>') . '
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>There are no users in this staff group yet.</i>';
}
echo '</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
<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 pixeldarkblue ">
<h2 class="title">About the Staff!</h2>
<div class="box-content">
<img src="http://habcrush.co.uk/c_images/album1584/CRUSHSTAFF.gif" align="right">
<p>
Habcrush Staff develops, manages, and moderates the hotel. They make sure everything
is working smoothly and the users are safe. All Habcrush Staff are listed on this page,
and you can always recognize them by their staff badge in the hotel.
</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type="text/javascript">
HabboView.run();
</script>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
<?php include('includes/footer.php'); ?>
<?php include('includes/checktheban.php'); ?>
</body>