PDA

View Full Version : Habbos Online Script



Verrou
14-08-2009, 09:39 PM
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.

Mickword
14-08-2009, 09:47 PM
I know I get the same problem, theres a certain way like, like the Twisted Values and Twisted Polls.

Delatory
15-08-2009, 02:55 PM
<?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");
?>

like that?

jtheman
30-04-2010, 05:16 AM
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.

Jahova
30-04-2010, 05:21 AM
<?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");
?>


Umm..?

jtheman
30-04-2010, 05:47 AM
Nope D: That Working Work And USA Dont Work :S With That Way . .

Blinger$
30-04-2010, 06:23 AM
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
$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)
?>

MattFr
30-04-2010, 06:41 AM
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
$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.

Blinger$
30-04-2010, 06:51 AM
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..?

jtheman
30-04-2010, 08:44 AM
Nip I tryed it it doesn't work D;

Blinger$
30-04-2010, 09:04 AM
works for me.. i don't care how sloppy it is, you can clean the code up so it works ;)

http://freyta.net/habbosonline.php

jtheman
30-04-2010, 09:59 AM
Tyvm this will go good on my new fansite

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