[HELP] RevCMS PHP coding[HELP]

alex194568

Member
Sep 4, 2015
50
3
I need some help with some PHP coding on my staff page if anyone can help me please? I am pretty new to coding so still learning with trial and error but i cant seem to get the manager box in line with the first founder box. Look at the image blow!



THANKS
 

alex194568

Member
Sep 4, 2015
50
3
post your staff.php code please
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - Staff</title>

<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 = " ";
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 include ("includes/header.php"); ?>
<ul id="navi">
<li class="metab"><a href="{url}/me">{username}</a><span></span></li>
<li class="selected"><strong>Community</strong><span></span></li>
<li id="tab-register-now"><a href="{url}/shop">Shop</a><span></span></li>

</ul>
<div id="habbos-online" style="background-color:#FFF;border-radius:6px;"><div class="rounded"><span>{online}<br> members online!</span></div></div>
</div>
</div>
<div id="content-container">
<div id="navi2-container" class="pngbg">
<div id="navi2" class="pngbg clearfix">
<ul>
<li class=""><a href="{url}/community">Community</a></li>
<li class=""><a href="{url}/news">Articles</a></li>
<li class=" selected">Staff Team</li>
<li><a href="{url}/community/leaderboards">Leaderboards</a></li>
<li class=" last"><a href="{url}/community/online">Online Players</a></li>
</ul>
</div>
</div>
<div id="container">
<div id="content">
<div id="column2" class="column">


<?php
error_reporting(0);
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 5 ORDER BY id DESC");
$Bans = mysql_query("SELECT * FROM `bans` WHERE `username` = '" . $Users['username'] . "'");
$BanCount = mysql_num_rows($Bans);
echo $BanCount;


while ($Ranks = mysql_fetch_assoc($getRanks))

{
echo '<div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title"><span style="float: left;">Founder</span><span style="float: right; font-weight: normal; font-size: 75%;">Hotel Creators</span></h2> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';

$getMembers = mysql_query("SELECT username,motto,rank,last_online,online,look 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%" height="50px" 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=" ' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
<br>Last online: <i>' . date('D, d F Y H:i (P)', $member['last_online']) . '</i>
<hr>
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</i>';
}

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

?>
</div>

<div id="container">
<div id="content">
<div id="column2" class="column">


<?php
error_reporting(0);
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 5 ORDER BY id DESC");
$Bans = mysql_query("SELECT * FROM `bans` WHERE `username` = '" . $Users['username'] . "'");
$BanCount = mysql_num_rows($Bans);
echo $BanCount;


while ($Ranks = mysql_fetch_assoc($getRanks))

{
echo '<div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title"><span style="float: left;">Founder</span><span style="float: right; font-weight: normal; font-size: 75%;">Hotel Creators</span></h2> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';

$getMembers = mysql_query("SELECT username,motto,rank,last_online,online,look 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%" height="50px" 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=" ' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
<br>Last online: <i>' . date('D, d F Y H:i (P)', $member['last_online']) . '</i>
<hr>
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</i>';
}

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

?>
</div>






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

<div id="column2" class="column"><div class="habblet-container ">
<?php

$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 6 ORDER BY id DESC");

while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix settings ">
<h2 class="title"><span style="float: left;">Manager</span><span style="float: right; font-weight: normal; font-size: 75%;">Administrative Staff</span></h2> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';

$getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age 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;
}
$Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");
$BanCount = mysql_num_rows($Bans);
echo '<table width="107%" height="50px" 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=" ' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Last online: <i>' . date('d M, Y', $member['last_online']) . '</i><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
<hr>
Role: <b>' . $member['role'] . '</b><br>
Age: ' . $member['age'] . '</br>
Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br>
Bans: <b>'; echo $BanCount;








echo '<p style="margin-top: 0px;"><img src=" "></p>

</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</i>';
}

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

?>
<div id="column2" class="column"><div class="habblet-container ">
<?php

$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 500 ORDER BY id DESC");

while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title"><span style="float: left;">Administrator</span> <span style="float: right; font-weight: normal; font-size: 75%;"></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;
}
$Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $member['username'] . "'");
$BanCount = mysql_num_rows($Bans);
echo '<table width="107%" height="50px" 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=" ' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Motto: ' . $member['motto'] . '' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></p><p style="margin-top: -8px;"><img src=" "></p>
';



echo '</td>

</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</i>';
}

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

?>
</div></div></div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column"><div class="habblet-container ">
<?php

$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 5 ORDER BY id DESC");

while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">Player Support</span><span style="float: right; font-weight: normal; font-size: 75%;">Community Support</span></h2> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';

$getMembers = mysql_query("SELECT id,username,motto,look,account_created,online,last_online,role,age 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%" height="50px" 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=" ' .$member['look'] . '&size=m&direction=2&head_direction=3&gesture=sml">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Last online: <i>' . date('d M, Y', $member['last_online']) . '</i><br>Motto: "<i>' . $member['motto'] . '</i>"<br>' . (($member['online'] == "1") ? '<font color="darkgreen"><p style="margin-left: 165px; margin-top: -37px;"><strong>Online</stromg>': '<font color="darkred"><strong><p style="margin-left: 165px; margin-top: -37px;">Offline</stromg>') . '</p></font></font></strong>
<hr>
Role: <b>' . $member['role'] . '</b><br>
Age: ' . $member['age'] . '</br>
Registered on: <b>' . date('d M, Y', $member['account_created']) . '</b></br>
Bans: <b>'; echo $BanCount;








echo '<p style="margin-top: 0px;"><img src=" "></p>

</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</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>

<script type="text/javascript">
HabboView.run();
</script>

<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
</div></div>

<div id="footer" >
<?php include('includes/footer.php'); ?>
<?php include('includes/checktheban.php'); ?>
</div>
</body>
</html>
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
This staff.php is useless, because it doesn't contain the CSS. Can you inspect element and show me the CSS? Here is an example on how to do this
661b98540e321acb03d08fe71335066b.gif


So you right click -> Inspect (Element) -> Then there on the right is your css and find the tag
habblet-container

Because that is the parent DIV which is the div that controls where the parent is, my guess is we need to add just a display in the CSS to allow it to wrap.
 

Users who are viewing this thread

Top