Can anybody find a form for that?
Type name, change url to the Habbo name..

Can anybody find a form for that?
Type name, change url to the Habbo name..
Theres the pic at the the top of the homepage once you're logged in if that helps?
Last edited by Flumples; 17-11-2006 at 09:39 PM.
I made this yesterday, got someone to help me fix bugs.
That is justPHP Code:<?php
header("Content-type: image/gif");
$habbo = $_GET['name'];
$domain = 'http://www.habbo.co.uk';
$content = file_get_contents($domain . '/home/'.$habbo);
$div_start = explode('<div class="profile-figure">', $content, 2);
$div_end = explode('</div>', $div_start[1], 2);
$img = trim($div_end[0]);
$img = preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/', '$2', $img);
$imag = $domain.$img;
header("Content-type: image/gif");
$im = imagecreatefromgif($imag);
imagegif($im);
imagedestroy($im);
?>
/page.php?name=Korma
or whatever
or if you're gonna use it as a signature or something:
Remove Line 2
Change the $habbo in line 5 to the habbo name, but make sure theres ''s around it.
Left. Or have I?
Nice to see yours works lol ;p
That's doing the same sort of thing, isn't it? Looks much better than mine though Tom![]()
Mine was a bit buggy before, wasnt working sometimes. Think it works now though.
I also created a code for an image to say if your habbo is online or not.
Same /page.php?name=KormaPHP Code:<?php
$habbo = $_GET['name'];
$home = file_get_contents("http://www.habbohotel.co.uk/home/".$habbo);
if (eregi("http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_online_anim.gif", $home)){
$img = "http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_online.gif";
}else{
$img = "http://images.habbohotel.co.uk/web/web-2.0.1_b21/images/myhabbo/profile/habbo_offline.gif";
}
header("Content-type: image/gif");
$im = imagecreatefromgif($img);
imagegif($im);
imagedestroy($im);
?>
thing. etc.
Examples in my signature are for the habbo called:
-1.
Last edited by -1.; 17-11-2006 at 10:00 PM.
Left. Or have I?
Here's another little script which would be ideal for a Habbo profile.
Perhaps you could customize it so that if your user is banned then their profile will not be shown, meanwhile, if they are not banned, their profile will display.Code:<?PHP $page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]"); eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result); $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif"; if ($result[1]) { echo('The username '.$_GET[name].' is not banned from using Habbo Hotel UK.'); } else { echo('This username '.$_GET[name].' is banned from using Habbo Hotel UK.'); } ?>
http://www.bobblefm.co.uk/banned?name=Callie
http://www.bobblefm.co.uk/banned?name=Halting
Last edited by Halting; 17-11-2006 at 10:07 PM.
That's clever. Bit boring, But clever!
Want to hide these adverts? Register an account for free!