Can someone add badges to my staff page also Min-max rank.

Nikeeey

Member
Jul 30, 2014
82
1
What I am wanting is how to add or if so can someone add it for me
"fetch min rank 3 and max rank 5" you'll understand if look in the spoiler
it's just so only rank 3 to 5 ranks show visible
also add badges to the staff page so users badges are visible
i'll add your credits to the bottom for helping too.

Code:
<!DOCTYPE html>[/SIZE][/CENTER]
[SIZE=4]
[CENTER]<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Community</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 = "http://www.habbo.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>
        <div id="header-container">
            <div id="header" class="clearfix">
                <h1><a href="{url}/"></a></h1>
                <div id="subnavi">
                    <div id="subnavi-user">
                        <div style="margin-top:7px"><b>Did you know:</b> -</div>
                    </div>
                    <div id="subnavi-search">
                        <div id="subnavi-search-upper">
                            <ul id="subnavi-search-links">
                                <li><a href="{url}/logout" style="color:#000">Sign Out</a></li>
                            </ul>
                        </div>
                    </div>
                    <div id="to-hotel">
                        <a href="{url}/api.php" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName}</b><i></i></a>
                   
                    {housekeeping}
                   
                    </div>
                </div>
             <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 class="metab"><a href="{url}/shopabout">Shop</a><span></span></li>
                </ul>
                <div id="habbos-online"><div class="rounded"><span>{online} 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">News</a></li>
                        <li class=" selected ">Staff</li>
                    </ul>
                </div>
            </div>


<div id="container">
                <div id="content" style="position: relative" class="clearfix">
                    <div id="column1" class="column">
                        <?php
                            $i = 1;
                            $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 pixeldarkblue \"><h2 class=\"title\">{$Ranks['name']}</h2><div style='padding-top:5px'>";
                                $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']}");
                               
                                if(mysql_num_rows($GetUsers) == 0)
                                    echo '<div style="padding:5px"><i>There are currently no users in this staff group.</i></div>';
                                else
                                {
                                while($Users = mysql_fetch_assoc($GetUsers))
                                {
                                    if($Users['online'] == 1){ $OnlineStatus = "<img src='{url}/app/tpl/skins/Habbo/images/onlinenew.gif'>"; } else { $OnlineStatus = "<img src='{url}/app/tpl/skins/Habbo/images/offlinenew.png'>"; }
                                    if($i == 1)
                                    {
                                    echo '<table width="100%" style="padding: 2px; background-color: #fff;">
                                            <tbody>
                                                <tr>
                                                    <td valign="middle" width="25">
                                                        <div style="width: 64px; height: 81px; margin-top:-22px; float: left; background: url(https://www.habbo.com.tr/habbo-imaging/avatarimage?figure=' . $Users['look'] . '&amp;action=wav&amp;direction=3&amp;head_direction=3&amp;gesture=sml&amp;size=m);"></div>
                                                    </td>
                                                    <td valign="top">
                                                        <b style="font-size: 110%;"><a href="#">' . $Users['username'] . '</a></b> <font size="1"><b></a>' . $Users['staff_rank'] . '</b></font>
                                                        <br>
                                                        <i>' . htmlspecialchars($Users['motto']) . '</i><br>                   
                                                    </td>
                                                    <td valign="top" style="float: right;">
                                                        ' . $OnlineStatus . '
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>';
                                       
                                        $i = 0;
                                }
                                else
                                {
                                    echo '<table width="100%" style="padding: 2px; background-color: #F5F5F5;">
                                            <tbody>
                                                <tr>
                                                    <td valign="middle" width="25">
                                                        <div style="width: 64px; height: 81px; margin-top:-22px; float: left; background: url(https://www.habbo.com.tr/habbo-imaging/avatarimage?figure=' . $Users['look'] . '&amp;action=wav&amp;direction=3&amp;head_direction=3&amp;gesture=sml&amp;size=m);"></div>
                                                    </td>
                                                    <td valign="top">
                                                        <b style="font-size: 110%;"><a href="#">' . $Users['username'] . '</a></b> <font size="1"><b></a>' . $Users['staff_rank'] . '</b></font>
                                                        <br>
                                                        <i>' . htmlspecialchars($Users['motto']) . '</i><br>                   
                                                    </td>
                                                    <td valign="top" style="float: right;">
                                                        ' . $OnlineStatus . '
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>';
                                       
                                        $i = 1;
                                }
                            }
                            }
                                                            echo "</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 green">
                                <h2 class="title">How to join the team?</h2>
                                <div style="padding:7px">
                                          We are <b>ALWAYS</b> looking for people to join the team. Applications can be submitted to our forums (<i>babboboards.com</i>). Please never ask for staff in-game. When we're looking for staff we will review the applications listed on the forum.
                                </div>
                            </div>
                            <div class="habblet-container ">
                            <div class="cbb clearfix green">
                                <h2 class="title">Who owns {hotelName}?</h2>
                                <div style="padding:7px">
                                   <b><font color="darkblue">Sky</b></font> is the founder of {hotelName}. Sky's role is to manage the server and develop new features
                                   for the hotel, alongside a lot more heavy duty tasks Without Sky {hotelName} wouldn't have a developer/content creator.
                                <br><br>
                               
                                  </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

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



</body>
</html>
 

JayC

Always Learning
Aug 8, 2013
5,495
1,398
<!DOCTYPE html>[/SIZE][/CENTER]

<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - Community</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>
<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="{url}/"></a></h1>
<div id="subnavi">
<div id="subnavi-user">
<div style="margin-top:7px"><b>Did you know:</b> -</div>
</div>
<div id="subnavi-search">
<div id="subnavi-search-upper">
<ul id="subnavi-search-links">
<li><a href="{url}/logout" style="color:#000">Sign Out</a></li>
</ul>
</div>
</div>
<div id="to-hotel">
<a href="{url}/api.php" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName}</b><i></i></a>

{housekeeping}

</div>
</div>
<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 class="metab"><a href="{url}/shopabout">Shop</a><span></span></li>
</ul>
<div id="habbos-online"><div class="rounded"><span>{online} 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">News</a></li>
<li class=" selected ">Staff</li>
</ul>
</div>
</div>


<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<?php
$i = 1;
$GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id >= 3 AND id < 6 ORDER BY id DESC");
while($Ranks = mysql_fetch_assoc($GetRanks))
{
echo "<div class=\"habblet-container \"><div class=\"cbb clearfix pixeldarkblue \"><h2 class=\"title\">{$Ranks['name']}</h2><div style='padding-top:5px'>";
$GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']}");

if(mysql_num_rows($GetUsers) == 0)
echo '<div style="padding:5px"><i>There are currently no users in this staff group.</i></div>';
else
{
while($Users = mysql_fetch_assoc($GetUsers))
{
if($Users['online'] == 1){ $OnlineStatus = "<img src='{url}/app/tpl/skins/Habbo/images/onlinenew.gif'>"; } else { $OnlineStatus = "<img src='{url}/app/tpl/skins/Habbo/images/offlinenew.png'>"; }
if($i == 1)
{
echo '<table width="100%" style="padding: 2px; background-color: #fff;">
<tbody>
<tr>
<td valign="middle" width="25">
<div style="width: 64px; height: 81px; margin-top:-22px; float: left; background: url( ' . $Users['look'] . '&amp;action=wav&amp;direction=3&amp;head_direction=3&amp;gesture=sml&amp;size=m);"></div>
</td>
<td valign="top">
<b style="font-size: 110%;"><a href="#">' . $Users['username'] . '</a></b> <font size="1"><b></a>' . $Users['staff_rank'] . '</b></font>
<br>
<i>' . htmlspecialchars($Users['motto']) . '</i><br>
</td>
<td valign="top" style="float: right;">
' . $OnlineStatus . '
</td>
</tr>
</tbody>
</table>';

$i = 0;
}
else
{
echo '<table width="100%" style="padding: 2px; background-color: #F5F5F5;">
<tbody>
<tr>
<td valign="middle" width="25">
<div style="width: 64px; height: 81px; margin-top:-22px; float: left; background: url( ' . $Users['look'] . '&amp;action=wav&amp;direction=3&amp;head_direction=3&amp;gesture=sml&amp;size=m);"></div>
</td>
<td valign="top">
<b style="font-size: 110%;"><a href="#">' . $Users['username'] . '</a></b> <font size="1"><b></a>' . $Users['staff_rank'] . '</b></font>
<br>
<i>' . htmlspecialchars($Users['motto']) . '</i><br>
</td>
<td valign="top" style="float: right;">
' . $OnlineStatus . '
</td>
</tr>
</tbody>
</table>';

$i = 1;
}
}
}
echo "</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 green">
<h2 class="title">How to join the team?</h2>
<div style="padding:7px">
We are <b>ALWAYS</b> looking for people to join the team. Applications can be submitted to our forums (<i>babboboards.com</i>). Please never ask for staff in-game. When we're looking for staff we will review the applications listed on the forum.
</div>
</div>
<div class="habblet-container ">
<div class="cbb clearfix green">
<h2 class="title">Who owns {hotelName}?</h2>
<div style="padding:7px">
<b><font color="darkblue">Sky</b></font> is the founder of {hotelName}. Sky's role is to manage the server and develop new features
for the hotel, alongside a lot more heavy duty tasks Without Sky {hotelName} wouldn't have a developer/content creator.
<br><br>

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

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



</body>
</html>
 

Users who are viewing this thread

Top