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 12
  1. #1
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default Need code total users online on habbo

    I need a code that tells total users online on habbo i have seen this code before

  2. #2
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

  3. #3
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    Thanks you for the fast answear !

    You are nice!

  4. #4
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    Or this dosent work..

    look

    http://habbohome.dk/online.php

  5. #5
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    Lol Anything else?

  6. #6
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    :S ?

    When i change .co.uk

    its shows this

    http://habbohome.dk/online.php

    That under users online..

    How i remove?
    Last edited by Bob3k; 09-09-2007 at 07:46 PM.

  7. #7
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    you would have to do that manually, eg.
    if ($username = 'lost_witness' && $online = 'yes')
    {
    echo("lost witness online");
    }

    Etc.

    EDIT: post the coding.

    Code:
     <?php
    $page = file_get_contents('http://www.habbohotel.dk/'); // I have set the default as .co.uk. If you would like to display the amount of Habbos Online for other hotels then just change .co.uk to .com for example.
    
    eregi('<div id="toolbar-habbocount">(.*) Habbos online</div>', $page, $result);
    echo ("There are currently $result[1] Habbos on the UK Hotel!");
    ?>
    Last edited by Eccentric; 09-09-2007 at 07:48 PM.

  8. #8
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    Dosent work..

    its just say

    There are currently Habbos on the UK Hotel!

  9. #9
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    cant you find the error ?

  10. #10
    Join Date
    Sep 2007
    Posts
    31
    Tokens
    0

    Default

    if i use this code

    <?php
    $page = file_get_contents("http://www.habbo.co.uk");
    $start = explode('<td id="topbar-count">', $page, 2);
    $end = explode(' members online</td>', $start[1], 2);
    $amount = trim($end[0]);
    echo "There are $amount Habbos online!";
    ?>


    its shows the site page information too also from habbo.dk

    :S

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
  •