Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default Site stats script || Rep to all that help

    does anyone know the site stats script to see how many visitors you have had and ip addys and unique hits etc

    anyone who could put it on as a post or can send me the file or give a link to a website with the script i will give Rep to


    Also does anyone know the script for showing how many habbos are online

    Rep given to all that help
    Negative for those who spam or want to charge for it

  2. #2
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:


  3. #3
    Join Date
    Jan 2006
    Posts
    37
    Tokens
    0

    Default

    http://showip.net/show_ext.php Good tutorial for showing IP.


    I use this on my website though.
    HTML Code:
    <script language="javascript">
    function ipval() {
    document.myform.ipaddr.value=ip;
    }
    window.onload=ipval
    </script>
    <form method="post" action="" name="myform">
      <input type="text" name="ipaddr" readonly>
    </form>
    Last edited by 7e; 10-04-2006 at 07:40 PM.

  4. #4
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    Rep given to both

  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Just as an untested cheep 5 second grabber, this may work in getting the amount of habbo users of habbohotels site.

    for uk hotel
    PHP Code:
    <?php
    //get page
    $lines file('http://www.habbohotel.co.uk/');
    //Get line
    echo $lines['71']; // may be line 72
    ?>
    That theorticly should echo out "11,174 Habbos online"

    But with the correct amount of habbos online.
    COuld be made to just get number very simply as well.

  6. #6
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    awesome it echos currently 10.237 habbos online which is correct

    any chance of adding a lil text so it says
    Current Habbos Online:

  7. #7
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by 7e
    I use this on my website though.
    HTML Code:
    <script language="javascript">
    function ipval() {
    document.myform.ipaddr.value=ip;
    }
    window.onload=ipval
    </script>
    <form method="post" action="" name="myform">
      <input type="text" name="ipaddr" readonly>
    </form>
    Wth is that.
    kinda quit.

  8. #8
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    Can anyone write me a php script and post it so that it shows the same info as radiohabbo's stats

    the tutorial on thybags i dont understand to well

  9. #9
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Humm im to lazy to test but this may work..
    PHP Code:
    <?php
    //get page
    $lines file('http://www.habbohotel.co.uk/');

    //Get line
    $Ndata $lines['71']; // may be line 72

    //Remove what we dont want
    $Ndata str_replace('<div id="toolbar-habbocount">'''$Ndata);
    $Ndata str_replace("Habbos online</div>"""$Ndata);

    // Add text and output
    echo "Current Habbos Online: ".$Ndata;
    ?>
    Last edited by Mentor; 10-04-2006 at 08:47 PM.

  10. #10
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by 01101101entor
    Humm im to lazy to test but this may work..
    PHP Code:
    <?php
    //get page
    $lines file('http://www.habbohotel.co.uk/');
     
    //Get line
    $Ndata $lines['71']; // may be line 72
     
    //Remove what we dont want
    $Ndata str_replace('<div id="toolbar-habbocount">'''$Ndata);
    $Ndata str_replace("Habbos online</div>"""$Ndata);
     
    // Add text and output
    echo "Current Habbos Online: ".$Ndata;
    ?>
    you get this
    Parse error: syntax error, unexpected T_STRING in /home/habboatt/public_html/test/online2.php on line 9

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •