[PHP] Statistics Box [Phoenix]

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Apprentice killerrichard is offline
    MemberRank
    Nov 2009 Join Date
    17Posts

    [PHP] Statistics Box [Phoenix]

    Hi, I want to give you a statistics box, i have maked for my Habbo rétro website :)

    PHP Code:
    <?php
    $userq 
    mysql_query("SELECT * FROM user_stats WHERE id = '".$user['id']."' LIMIT 1") or die(mysql_error());
                while(
    $stats mysql_fetch_array($userq))
                {
                    
    ?>
                    <div class="StatsBox">
                        
                        <div class="UserStats"><strong>Time Online:</strong> <?php echo $stats['OnlineTime']; ?></div>
                        <div class="UserStats"><strong>Room Visits:</strong> <?php echo $stats['RoomVisits']; ?></div>
                        <div class="UserStats"><strong>Respects:</strong> <?php echo $stats['RespectGiven']; ?></div>
                        <div class="UserStats"><strong>Gifts Given:</strong> <?php echo $stats['GiftsGiven']; ?></div>
                        <div class="UserStats"><strong>Gifts Recieved:</strong> <?php echo $stats['GiftsReceived']; ?></div>
                        <div class="UserStats"><strong>Achievement Score:</strong> <?php echo $stats['AchievementScore']; ?></div>
                       
                        
                    </div>
                <?php
                
    }
                
    ?>
    </div>
    For you :) / 100 % Working.

    ---------- Post added at 07:39 AM ---------- Previous post was at 07:36 AM ----------

    For French user : I can translate this in french, if you want ^^


  2. #2
    Apprentice killerrichard is offline
    MemberRank
    Nov 2009 Join Date
    17Posts

    Re: [PHP] Statistics Box [Phoenix]

    Thanks :)

  3. #3
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: [PHP] Statistics Box [Phoenix]

    Maybe you should give these code to proper person who coded it in PHP in the first place look at these codes there the same from HobbaPHP (Me).

    PHP Code:

    <?php 

                $userq 
    mysql_query("SELECT * FROM user_stats WHERE id = '".$users->UserID($username)."'");

                while(
    $user mysql_fetch_array($userq))

    {

    ?>



    <div class="UsersMotto">

    <b>Time Online:</b> <?php echo intval(($user['OnlineTime'] / 3600)); ?> Hours <br />


    <b>Pixels:</b> <?php echo $users->UserInfo($username'activity_points'); ?> <br />

    <b>Respect:</b>   <?php echo $user['RespectGiven']; ?>    <br />

    <b>Room Visits:</b> <?php echo $user['RoomVisits']; ?>  <br />

    <b>Gifts Given:</b> <?php echo $user['GiftsGiven']; ?>  <br />

    <b>Gifts Received:</b> <?php echo $user['GiftsReceived']; ?>   <br />

    <b>Achievement Score:</b>   <?php echo $user['AchievementScore']; ?>  <br />

    <?php

    }

    ?>

  4. #4
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: [PHP] Statistics Box [Phoenix]

    Quote Originally Posted by cooldude159 View Post
    Maybe you should give these code to proper person who coded it in PHP in the first place look at these codes there the same from HobbaPHP (Me).

    PHP Code:

    <?php 

                $userq 
    mysql_query("SELECT * FROM user_stats WHERE id = '".$users->UserID($username)."'");

                while(
    $user mysql_fetch_array($userq))

    {

    ?>



    <div class="UsersMotto">

    <b>Time Online:</b> <?php echo intval(($user['OnlineTime'] / 3600)); ?> Hours <br />


    <b>Pixels:</b> <?php echo $users->UserInfo($username'activity_points'); ?> <br />

    <b>Respect:</b>   <?php echo $user['RespectGiven']; ?>    <br />

    <b>Room Visits:</b> <?php echo $user['RoomVisits']; ?>  <br />

    <b>Gifts Given:</b> <?php echo $user['GiftsGiven']; ?>  <br />

    <b>Gifts Received:</b> <?php echo $user['GiftsReceived']; ?>   <br />

    <b>Achievement Score:</b>   <?php echo $user['AchievementScore']; ?>  <br />

    <?php

    }

    ?>
    Yhee, We all know you got epic php skills.

  5. #5
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: [PHP] Statistics Box [Phoenix]

    lol i will take that as a compliment ;)

  6. #6
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: [PHP] Statistics Box [Phoenix]

    Quote Originally Posted by cooldude159 View Post
    lol i will take that as a compliment ;)
    No, It was sarcasm didn't you see the `` smile?

  7. #7
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: [PHP] Statistics Box [Phoenix]

    Quote Originally Posted by SuperNoob View Post
    All do respect, his is a lot shorter and cleaner. Although, what the hell do I know... lol. I do SWFs... the most that takes is basic MySQL knowledge, how to type and how to count.
    It's the same codes how can his be cleaner

  8. #8
    Enthusiast lRZliAdamlRZl is offline
    MemberRank
    Jun 2011 Join Date
    45Posts

    Re: [PHP] Statistics Box [Phoenix]

    Quote Originally Posted by SuperNoob View Post
    Smaller and less spaced out easier to read to the eye. For example:

    Mithex/SuperNoob/Jack is amazing great and incredible

    or

    Mithex &slash& SuperNoob &slash& Jack
    is
    amazing great
    and
    incredible
    LOL, I do agree, its easier for the eye to see/look at.

  9. #9
    Apprentice killerrichard is offline
    MemberRank
    Nov 2009 Join Date
    17Posts

    Re: [PHP] Statistics Box [Phoenix]

    Sorry, but cooldude159 look at my code and look at your code.
    Not the same, and your code is not phoenix compatible and not clean.

    Sorry for my bad English.

    Edit : I don't know (HobbaPHP).

    Sorry i have maked a mistake in the code (lol).

    Replace this
    PHP Code:
    <?php echo $stats['OnlineTime']; ?>
    with this
    PHP Code:
    <? echo date("H:i:s"$stats['OnlineTime']) ?> hours
    Work too and more clean . (4846561254 to 11:15:24 hours).
    Last edited by killerrichard; 26-09-11 at 02:14 AM.

  10. #10
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: [PHP] Statistics Box [Phoenix]

    Wow lol

  11. #11
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: [PHP] Statistics Box [Phoenix]

    Im sorry but this was already on my phoenixphp homes pages..... But thanks for releasing i guess<3

  12. #12
    Apprentice killerrichard is offline
    MemberRank
    Nov 2009 Join Date
    17Posts

    Re: [PHP] Statistics Box [Phoenix]

    Thanks for your comments :) <3

  13. #13
    Enthusiast ReHabbo is offline
    MemberRank
    Sep 2011 Join Date
    39Posts

    Re: [PHP] Statistics Box [Phoenix]

    What is the point of releasing this, IMO..?

  14. #14
    Alpha Member zMagenta is offline
    MemberRank
    Jun 2011 Join Date
    1,860Posts

    Re: [PHP] Statistics Box [Phoenix]

    Tbh, it's useful. If you've never seen coding before.

  15. #15
    Enthusiast ReHabbo is offline
    MemberRank
    Sep 2011 Join Date
    39Posts

    Re: [PHP] Statistics Box [Phoenix]

    If someone's never seen coding?... Pfft, If you own a retro, or even if you're in the Habbo section, code is everywhere.



Page 1 of 2 12 LastLast

Advertisement