There are a few that come up when I search for them, but none work for me :S Does anyone know how to do it?
Edited by Catzsy (Forum Super Moderator): Bumped thread over 8 months old. Thread closed.

There are a few that come up when I search for them, but none work for me :S Does anyone know how to do it?
Edited by Catzsy (Forum Super Moderator): Bumped thread over 8 months old. Thread closed.
Last edited by Catzsy; 30-04-2010 at 04:56 PM.
I know I get the same problem, theres a certain way like, like the Twisted Values and Twisted Polls.
like that?PHP Code:<?php
$page = file_get_contents('http://www.habbo.co.uk/index.php');
eregi('<div id="habbos-online"><div class="rounded"><span>(.*) Habbos online now</span></div></div>
', $page, $result);
echo ("$result[1] Habbos online now");
?>
Gosh YAY One That Works!!!! Can You Make One For Habbo AU??
Edited by Catzsy (Forum Super Moderator): Please do not bump threads over 8 months old. Thread closed.
Last edited by Catzsy; 30-04-2010 at 04:56 PM.
Umm..?Code:<?php $page = file_get_contents('http://www.habbo.com.au/index.php'); eregi('<div id="habbos-online"><div class="rounded"><span>(.*) Habbos online now</span></div></div> ', $page, $result); echo ("$result[1] Habbos online now"); ?>
"RETIRED" FROM HABBO(X)
:¬:
TOMSPIT / COWLY05
Nope D: That Working Work And USA Dont Work :S With That Way . .
This works, although it probably isn't the best method ever.. (i just modified the code from the tutorial sub-forum)
I chose habbo.com.au/community because the main page (habbo.com.au) doesn't show the amount of users online.
PHP Code:<?php
$page = file_get_contents("http://www.habbo.com.au/community"); // Change the URL to the hotel you would like
$start = explode('<div id="habbos-online"><div class="rounded"><span>', $page, 2);
$end = explode(' members online</span></div></div>', $start[1], 2);
$amount = trim($end[0]);
echo "There are $amount Habbos online!"; // Set the message you want to be displayed (Leave in the $amount)
?>
Lol thats the crappest most unefficent piece of code ever. Use the above regular expression method for better results.This works, although it probably isn't the best method ever.. (i just modified the code from the tutorial sub-forum)
I chose habbo.com.au/community because the main page (habbo.com.au) doesn't show the amount of users online.
PHP Code:<?php
$page = file_get_contents("http://www.habbo.com.au/community"); // Change the URL to the hotel you would like
$start = explode('<div id="habbos-online"><div class="rounded"><span>', $page, 2);
$end = explode(' members online</span></div></div>', $start[1], 2);
$amount = trim($end[0]);
echo "There are $amount Habbos online!"; // Set the message you want to be displayed (Leave in the $amount)
?>
we're smiling but we're close to tears, even after all these years
Meh, I didn't write it. As I said I edited the code from a tutorial. Why don't YOU show us the working code..?
Nip I tryed it it doesn't work D;
Want to hide these adverts? Register an account for free!