PDA

View Full Version : Need code total users online on habbo



Bob3k
09-09-2007, 07:30 PM
I need a code that tells total users online on habbo i have seen this code before :)

Eccentric
09-09-2007, 07:37 PM
http://www.habboxforum.com/showthread.php?t=172975&highlight=habbos

Bob3k
09-09-2007, 07:41 PM
Thanks you for the fast answear !

You are nice!

Bob3k
09-09-2007, 07:41 PM
Or this dosent work..

look

http://habbohome.dk/online.php

Eccentric
09-09-2007, 07:41 PM
Lol Anything else?

Bob3k
09-09-2007, 07:43 PM
:S ?

When i change .co.uk

its shows this

http://habbohome.dk/online.php

That under users online..

How i remove?

Eccentric
09-09-2007, 07:45 PM
you would have to do that manually, eg.
if ($username = 'lost_witness' && $online = 'yes')
{
echo("lost witness online");
}

Etc.

EDIT: post the coding.


<?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!");
?>

Bob3k
09-09-2007, 07:51 PM
Dosent work..

its just say

There are currently Habbos on the UK Hotel!

Bob3k
09-09-2007, 07:54 PM
cant you find the error ?

Bob3k
09-09-2007, 07:54 PM
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

Eccentric
09-09-2007, 07:55 PM
Things may have changed via the habbo client since the olden days of this script.
edit: remove; $start = explode('<td id="topbar-count">', $page, 2); i think :S
actually im not sure about that O.o

Bob3k
09-09-2007, 08:01 PM
dosent work

its just say

There are habbo's online

Want to hide these adverts? Register an account for free!