PDA

View Full Version : The Official Habbo Imager Thread



Kymux
31-10-2006, 09:11 PM
Yeah, I checked. It's been posted about 40 times. But i'm re-opening the debate.

What is the Habbo Imager?

It's a simple url that gives any internet accessed user to see a live image of any Habbo in the hotel. It can display the Habbo doing a varitey of different options including sit, wave and stand.

Preview me!

http://morningsunshine.net/form.html < A very simple Habbo Imager but this is the stage what a lot o you have got. I forgot the person I got this off but credit to him/her for making it.

Now, Dentafrice seemed to crack it, before releasing the code Just-One came and said he shoudln't so it was never released. Guys, lets do this! Can we all just have a bash at the cropping thing and all get it together? It's worth another go. Yeah, 40 threads and nothing. Some people have advanced a little.

So Far

form.html




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>What does your Habbo look like?</title>
</head>
<body>
<form action="habbo.php" method="post">
Enter Habbo Name: <input type="text" name="name" /><br />
Enter Hex Code: <input type="text" name="hex" value="000000" /><br />
Enter Habbo Rotation: <input type="text" name="habbo" />
<br /><input type="submit" name="submit" value="Submit" />
<br /><br />
If you don't know what a hex code is, leave the form as 000000
<br />For rotation enter a number from 1 to 9.
</body>
</html>


habbo.php (the php file what shows the habbo)



<?php
$name = $_POST['name'];
$hex = $_POST['hex'];
$habbo = $_POST['habbo'];
$br = "<br>";
if ($name == null|$hex == null|$habbo == null){
echo "You missed a field!";
} else {
echo "$name looks like this: $br <img src=\"http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=$habbo&h_2_name=0&h_2_frame=0&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=50&name_1_txt=$name&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=$habbo&h_1_name=$name&h_1_frame=0&h_1_gesture=nrm&h_1_action=std&h_1_y=0&h_1_x=0&overlay=0&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=0&bkgY=-95&bkgX=-39&bkgColor=$hex&picH=300&picW=65&quality=5&img-format=png&xml-template=imageCreator_1_name\"> $br If no image of a Habbo shows, the Habbo doesn't exist.";
}
?>

Recursion
31-10-2006, 09:13 PM
you need PHP crop :P

Kymux
31-10-2006, 09:15 PM
I know, is it a program you need to install onto the server? I had a go with 12cropimage but no luck. Turns out it uploads then crops. You can't do it from an url.

Recursion
31-10-2006, 09:16 PM
its no program. There is a PHP Code that crops the image...

Im not good at PHP i can really do basic PHP and probably not much of that rofl. so i cant help ya there.

uber
31-10-2006, 09:19 PM
Can't you just position a div over the habbo with css?

Kymux
31-10-2006, 09:22 PM
That's what I was thinking, I tried it but no luck. Have a go!

+reps for anything substantial.

Jargit
31-10-2006, 09:31 PM
VERY GOOD

U DESERVE REPPY


EDIT: Sorry Goota Spread

George Morgan
31-10-2006, 09:45 PM
<?
header("Content-Type: image/gif");
$thumbWidth = "60";
$thumbHeight = "120";
$name = $_GET[name];
$url = "http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=2&h_2_name=0&h_2_frame=0&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=0&name_1_txt=No%20Such%20User!&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=3&h_1_name=$name&h_1_frame=0&h_1_gesture=sml&h_1_action=wav&h_1_y=1&h_1_x=0&overlay=0&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=0&bkgY=-95&bkgX=-38&bkgColor=ffffff&picH=320&picW=61&quality5&img-format=png&xml-template=imageCreator_1_name";
$srcImg = imagecreatefrompng($url);
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$thumbImg = imagecreate($thumbWidth, $thumbHeight);
imagecopyresized($thumbImg, $srcImg, 0, 0, 0, 0, $thumbWidth, $thumbHeight, imagesx($thumbImg), imagesy($thumbImg));
$ImgWhite = imagecolorallocate($thumbImg, 255, 255, 255);
imagefill($thumbImg, 0, 0, $ImgWhite);
imagecolortransparent($thumbImg, $ImgWhite);
imagegif($thumbImg);
imagedestroy($thumbImg);
?>

Cropped. Go to like habbos.php?name=George.Morgan

SimplyTech
31-10-2006, 09:56 PM
isnt this illegal though as its stealing bandwith

George Morgan
31-10-2006, 09:58 PM
Erm, don't think it is? Anyway, everybody happy now Ive posted code to crop?

CHTom
31-10-2006, 10:05 PM
isnt this illegal though as its stealing bandwith

Alot of fansites link to the habbohotel homepages images anyway.

I should think that Sulake wouldnt mind anyway, lol.

George Morgan
31-10-2006, 10:08 PM
Sulake probably have like 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 9999999999999999999999999999999GB Bandwidth anyway.

SimplyTech
31-10-2006, 10:11 PM
Yeh they might not but the point is you do go and steal from a shop then go oh it doesnt matter they have several thousand anyway, The point is its illegal, I think lol.

alexxxxx
31-10-2006, 10:13 PM
It's not illegal really. It's not you that's stealing the bandwidth really, it's the people reading the webpage. You can set it all up to remove remote access, so I don't see the problem.

Kymux
31-10-2006, 10:23 PM
Yeah, I checked. It's been posted about 40 times. But i'm re-opening the debate.

form.html




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>What does your Habbo look like?</title>
</head>
<body>
<form action="habbo.php" method="post">
Enter Habbo Name: <input type="text" name="name" /><br />
Enter Hex Code: <input type="text" name="hex" value="000000" /><br />
Enter Habbo Rotation: <input type="text" name="habbo" />
<br /><input type="submit" name="submit" value="Submit" />
<br /><br />
If you don't know what a hex code is, leave the form as 000000
<br />For rotation enter a number from 1 to 9.
</body>
</html>






<?
header("Content-Type: image/gif");
$thumbWidth = "60";
$thumbHeight = "120";
$name = $_GET[name];
$url = "http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=2&h_2_name=0&h_2_frame=0&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=0&name_1_txt=No%20Such%20User!&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=3&h_1_name=$name&h_1_frame=0&h_1_gesture=sml&h_1_action=wav&h_1_y=1&h_1_x=0&overlay=0&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=0&bkgY=-95&bkgX=-38&bkgColor=ffffff&picH=320&picW=61&quality5&img-format=png&xml-template=imageCreator_1_name";
$srcImg = imagecreatefrompng($url);
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$thumbImg = imagecreate($thumbWidth, $thumbHeight);
imagecopyresized($thumbImg, $srcImg, 0, 0, 0, 0, $thumbWidth, $thumbHeight, imagesx($thumbImg), imagesy($thumbImg));
$ImgWhite = imagecolorallocate($thumbImg, 255, 255, 255);
imagefill($thumbImg, 0, 0, $ImgWhite);
imagecolortransparent($thumbImg, $ImgWhite);
imagegif($thumbImg);
imagedestroy($thumbImg);
?>



Can anybody edit the html file so it does what George created?

Verrou
01-11-2006, 04:02 AM
Can someone make a code for the Australian Habbo?

uber
01-11-2006, 07:46 AM
Just put the code george gave in habbo.php

Zaub
01-11-2006, 08:29 AM
Can someone make a code for the Australian Habbo?

done and done


<?
header("Content-Type: image/gif");
$thumbWidth = "60";
$thumbHeight = "120";
$name = $_GET[name];
$url = "http://www.habbo.com.au/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=2&h_2_name=0&h_2_frame=0&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=0&name_1_txt=No%20Such%20User!&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=3&h_1_name=$name&h_1_frame=0&h_1_gesture=sml&h_1_action=wav&h_1_y=1&h_1_x=0&overlay=0&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=0&bkgY=-95&bkgX=-38&bkgColor=ffffff&picH=320&picW=61&quality5&img-format=png&xml-template=imageCreator_1_name";
$srcImg = imagecreatefrompng($url);
$origWidth = imagesx($srcImg);
$origHeight = imagesy($srcImg);
$thumbImg = imagecreate($thumbWidth, $thumbHeight);
imagecopyresized($thumbImg, $srcImg, 0, 0, 0, 0, $thumbWidth, $thumbHeight, imagesx($thumbImg), imagesy($thumbImg));
$ImgWhite = imagecolorallocate($thumbImg, 255, 255, 255);
imagefill($thumbImg, 0, 0, $ImgWhite);
imagecolortransparent($thumbImg, $ImgWhite);
imagegif($thumbImg);
imagedestroy($thumbImg);
?>

Kymux
01-11-2006, 05:07 PM
I love you Catastrophical!

Kymux
01-11-2006, 05:07 PM
Just put the code george gave in habbo.php

Tried, no luck.

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