Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[random] Too much staff??

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 1, 2011
Messages
13
Reaction score
3
here is a little thing i call hiding staff
open comp-staff.tpl

find
PHP:
    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="http://www.habbo.com/habbo-imaging/avatarimage?figure=' . $member['look'] . '&size=m"> 
                    </td> 
                    <td valign="top"> 
                        <b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br /> 
                        <i>' . clean($member['motto']) . '</i><br /> 
                        <br />'; 
                         
                    $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5"); 
                     
                    while ($b = mysql_fetch_assoc($getBadges)) 
                    { 
                        echo '<img src="http://images.habbo.com/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;"> '; 
                    } 
                         
                    echo '</td> 
                    <td valign="top" style="float: right;"> 
                        ' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . ' 
                    </td> 
                </tr> 
            </tbody> 
            </table>';

replace this with
PHP:
            $hide = array("**name1**","**name2**","**name3**","**name4**","**name5**","**name6**");
            if(!in_array($member['username'],$hide))
     		{
            
            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="http://www.habbo.com/habbo-imaging/avatarimage?figure=' . $member['look'] . '&size=m"> 
                    </td> 
                    <td valign="top"> 
                        <b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br /> 
                        <i>' . clean($member['motto']) . '</i><br /> 
                        <br />'; 
                         
                    $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5"); 
                     
                    while ($b = mysql_fetch_assoc($getBadges)) 
                    { 
                        echo '<img src="http://images.habbo.com/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;"> '; 
                    } 
                         
                    echo '</td> 
                    <td valign="top" style="float: right;"> 
                        ' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . ' 
                    </td> 
                </tr> 
            </tbody> 
            </table>'; }
 
Last edited:
[̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅]
Joined
May 4, 2008
Messages
831
Reaction score
741
This is to hide some staff members from the staff page....

there are a few reasons why one would want to do this.....



lol screenshot would not show the hidden staff members now would it?
 
Last edited:
Banned
Banned
Joined
Jan 20, 2011
Messages
531
Reaction score
36
1) Can you PLEASE upload a screenshot and show that it works.
2) Did you code this?
3) Good release!
 
Skilled Illusionist
Joined
Jun 30, 2010
Messages
321
Reaction score
48
1) Can you PLEASE upload a screenshot and show that it works.
2) Did you code this?
3) Good release!

1) how can he upload a screenshot of hidden staff members? It would show up as a regular staff page, but not all staffs will be shown.
2) I can't answer this as i yet haven't seen this anywhere (unfortunately)
3) Yes, it is!

Cheers.. :cool:
 
Last edited:
Software Engineer
Loyal Member
Joined
Feb 19, 2008
Messages
1,055
Reaction score
492
You can also do a hide_staff field, but I guess this is too much for the whole database, so I guess this is fine. :) Anyway, all you do (for the n00bs) is change the names in the array.

Code:
$hide = array("Moogly","LulzBoxDOTCOM","**name3**","**name4**","**name5**","**name6**");
            if(!in_array($member['username'],$hide))

lalala...
 
[̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅]
Joined
May 4, 2008
Messages
831
Reaction score
741
Oh and if you want to Hide more or less Members just remove or add some...

PHP:
$hide = array("**name1**","**name2**");


or

PHP:
 $hide = array("**name1**","**name2**","**name3**","**name4**","**name5**","**name6**",,"**name7**",,"**name8**","**name9**",,"**name10**");
 
Custom Title Activated
Loyal Member
Joined
Jan 25, 2009
Messages
1,539
Reaction score
4
this works! its cool dude, nice release ;D
 
Newbie Spellweaver
Joined
Mar 1, 2009
Messages
74
Reaction score
5
I don't get the point of this release? Why should a retro hide staff members?
 
Skilled Illusionist
Joined
Jun 30, 2010
Messages
321
Reaction score
48
I don't get the point of this release? Why should a retro hide staff members?

If you read the title you'd understand.

Just in case if he still doesn't get it, If a retro has TOO many staff's this would help them get "less" by hiding some. Or if the staff member doesn't want to be known as a staff member but yet wants to be one, then he can ask if the admins could hide him.
 
Last edited:
Status
Not open for further replies.
Back
Top