[random] Too much staff??

Results 1 to 16 of 16
  1. #1
    Apprentice Jdude is offline
    MemberRank
    Mar 2011 Join Date
    in my houseLocation
    13Posts

    [random] Too much staff??

    here is a little thing i call hiding staff
    open comp-staff.tpl

    find
    PHP Code:
        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;">&nbsp;'
                        } 
                             
                        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 Code:
                $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;">&nbsp;'
                        } 
                             
                        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 by Jdude; 02-03-11 at 02:32 AM.


  2. #2
    Proficient Member HabsHotel is offline
    MemberRank
    Jan 2011 Join Date
    CanadaLocation
    167Posts

    Re: [random] Too much staff??

    Any Screenies, First Post!

  3. #3
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [random] Too much staff??

    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 by leenster; 02-03-11 at 03:21 AM.

  4. #4
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    696Posts

    Re: [random] Too much staff??

    1) Can you PLEASE upload a screenshot and show that it works.
    2) Did you code this?
    3) Good release!

  5. #5
    Account Upgraded | Title Enabled! Raz0rDot is offline
    MemberRank
    Jun 2010 Join Date
    NorwayLocation
    489Posts

    Re: [random] Too much staff??

    Quote Originally Posted by iPixelHotel View Post
    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..
    Last edited by Raz0rDot; 02-03-11 at 02:29 PM.

  6. #6
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: [random] Too much staff??

    Thanks

  7. #7
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [random] Too much staff??

    Thank you.

  8. #8
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [random] Too much staff??

    Quote Originally Posted by iPixelHotel View Post
    1) Can you PLEASE upload a screenshot and show that it works.
    if you know even a little PHP you can see by the code that this works fine.

  9. #9
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: [random] Too much staff??

    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...

  10. #10
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: [random] Too much staff??

    nice advert^

  11. #11
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: [random] Too much staff??

    Oh and if you want to Hide more or less Members just remove or add some...

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

    or

    PHP Code:
     $hide = array("**name1**","**name2**","**name3**","**name4**","**name5**","**name6**",,"**name7**",,"**name8**","**name9**",,"**name10**"); 

  12. #12
    Apprentice Iridescent is offline
    MemberRank
    Mar 2011 Join Date
    17Posts

    Re: [random] Too much staff??

    Nice That's cool! ;D

  13. #13
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: [random] Too much staff??

    this works! its cool dude, nice release ;D

  14. #14
    Member Im Legend is offline
    MemberRank
    Mar 2009 Join Date
    93Posts

    Re: [random] Too much staff??

    I don't get the point of this release? Why should a retro hide staff members?

  15. #15
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [random] Too much staff??

    If you read the title you'd understand.

  16. #16
    Account Upgraded | Title Enabled! Raz0rDot is offline
    MemberRank
    Jun 2010 Join Date
    NorwayLocation
    489Posts

    Re: [random] Too much staff??

    Quote Originally Posted by PowahAlert View Post
    Quote Originally Posted by Im Legend View Post
    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 by Raz0rDot; 04-03-11 at 12:38 AM.



Advertisement