Staff Page

MarleyRetroo

Active Member
Oct 25, 2014
170
23
Hi,

I'd like a hidden rank on my staff page. My staff page can be seen down bellow, can anybody please change that so rank 10 is hidden?
Thank you! ;')

PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Staff</title>
        <link rel="shortcut icon" type="image/ico" href="../app/tpl/skins/{skin}/images/favicon.ico" />
        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/common.css" type="text/css">
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/libs2.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/visual.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/libs.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/common.js"></script>
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/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.tr/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:6px">
                                    <p> Fact: Purchasing {hotelname} VIP will help pay for the monthly bills.</p>
                        </div>
                    </div>
                   
                    <div id="to-hotel">       
                        <a href="{url}/client" class="new-button white-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName}!</b><i></i></a>
                        <a href="{url}/logout" class="new-button white-button" style="margin-right:5px;margin-left:5px;"><b>Logout</b><i></i></a>
                    </div>

                </div>
                <ul id="navi">
                    <ul id="navi"><li id="tab-register-now" class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/{skin}/images/id.png" style="vertical-align: middle;"> ( {id} )</a><span></span></li>
                    <li class="selected"><strong>Community <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li>
                    <li id="tab-register-now" class="tab-register-now"><a href="{url}/shop">{hotelname} Shop! <img src="{url}/app/tpl/skins/{skin}/images/shop.png" style="vertical-align: middle;"></a><span></span></li>
                    <?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 6)
                    { ?>
                    <li class="tab-register-now"><a href="{url}/ase/login">Admin Panel <img src="{url}/app/tpl/skins/{skin}/images/locked.gif" style="vertical-align: middle;"></a><span></span></li>
                    <?php
                    } ?>
                </ul>
<div id="habbos-online">
    <div id="content">
        <div class="cbb ">
<span>{online} members online<br><br>User Peak <b>(<?php
$req = "SELECT * FROM `system_stats`";
$query = mysql_query($req);
$nb_inscrit = mysql_fetch_array($query);
echo $nb_inscrit['users'];
?>)</b></span></div>
    </div></div></div></div></div></div></div></div></div></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}/me">Home</a></li>
                        <li class=""><a href="{url}/community">Community</li>
                        <li class=""><a href="{url}/news">News</a></li>
                         <li class="selected">Staff</a></li>
                         <li class=""><span lang="en-gb"><a href="{url}/djs">
                         Radio DJs</a></span></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 > 4 ORDER BY id DESC");
                            while($Ranks = mysql_fetch_assoc($GetRanks))
                            {
                                echo "<div class=\"habblet-container \"><div class=\"cbb clearfix pixellightblue \"><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>Nobody has this staff rank yet.. Keep a lookout!</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 pixellightblue">
                                <h2 class="title">How to join the team?</h2>
                                <div style="padding:7px">
                                          <span lang="en-gb">Never ask to be
                                          staff, this will lower your chances.
                                          We open applications every month. When
                                          the time comes, we post more
                                          information on how to apply!</span></div>
                            </div>
                            <div class="habblet-container ">
                            <div class="cbb clearfix pixellightblue">
                                <h2 class="title"><span lang="en-gb">Senior
                                Leadership?</span></h2>
                                <div style="padding:7px">
                                   <b>King</b> is a<span lang="en-gb"> Developer</span> of {hotelName}.
                                    King's role is to manage the server and develop new features
                                   for the hotel. Without King {hotelName} wouldn't have a developer/content creator.
                                <br><br>
                                <b>God</b> is a founder of {hotelName}. God's role is to manage the community-wise aspect of {hotelName},
                                managing the staff team and taking God into exciting unique directions is his main focus.
                                Without God the community would lose it's direction.
                                  </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>

        <!--[if lt IE 7]>
            <script type="text/javascript">
                Pngfix.doPngImageFix();
            </script>
        <![endif]-->
       
        <div id="footer" >
           <?php include('footer.php'); ?>
           <?php include('checktheban.php'); ?>
        </div>
   
    </body>
</html>
 

Supernumber

New Member
Jul 15, 2012
28
1
Put yourself at a rank that your staff.php doesn't request. Put your rank to like 15, you'll be hidden and with all the commands.

Could you try going to your DB, and go to ranks, and see if rank 10 is on there, it's not meant to be
 

MarleyRetroo

Active Member
Oct 25, 2014
170
23
You could just remove the whole table for rank 10, in that case it's hidden.facepalm.jpg
But I Want a staff there..
 
Put yourself at a rank that your staff.php doesn't request. Put your rank to like 15, you'll be hidden and with all the commands.

Could you try going to your DB, and go to ranks, and see if rank 10 is on there, it's not meant to be

It requests all from 4+ though.. :/
 

Supernumber

New Member
Jul 15, 2012
28
1
okay edit
SELECT id,name FROM ranks WHERE id > 4 ORDER BY id DESC
to
SELECT id,name FROM ranks WHERE id < 9 ORDER BY id DESC
If this doesn't work, pm me your teamviewer details
 

JayC

Well-Known Member
Aug 8, 2013
5,505
1,401
Okay change it to,
SELECT id,name FROM ranks WHERE id = 4 OR id = 5 OR id = 6 OR id = 7 OR id = 8 OR id = 9 ORDER BY id DESC
NO. NO. NO. ARE YOU FUCKING KIDDING ME? I SEEN THIS AN I WANT TO SHOOT SOMEONE. PLEASE STOP.
Select id,name FROM ranks WHERE id > 4 AND WHERE id < 9 ORDER BY id DESC
 
Is there also a way just to certain staff member from the page? Like habboon does?
Certain Staff Members change my code here:
Select id,name FROM ranks WHERE id > 4 AND WHERE id < 9 ORDER BY id DESC
to just display the range
For example if your ranks are:
1. User
2. VIP
3. Super VIP
4. Trial
5. Mod
6. Admin
7. Manager
8. Owner
9. Hidden
and you want to display only Admin , Manager, Owner
Select id,name FROM ranks WHERE id > 5 AND WHERE id < 9 ORDER BY id DESC
 

Users who are viewing this thread

Top