Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default The Official Habbo Imager Thread

    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

    Code:
     
     
    <!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 Code:
    <?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.";
    }
    ?>

  2. #2
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    you need PHP crop
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #3
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    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.

  4. #4
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    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.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  5. #5
    Join Date
    May 2006
    Location
    Wakefield, West Yorkshire
    Posts
    1,118
    Tokens
    0

    Latest Awards:

    Default

    Can't you just position a div over the habbo with css?

  6. #6
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    That's what I was thinking, I tried it but no luck. Have a go!

    +reps for anything substantial.

  7. #7
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default

    VERY GOOD

    U DESERVE REPPY


    EDIT: Sorry Goota Spread
    Last edited by Jargit; 31-10-2006 at 09:32 PM.

  8. #8
    Join Date
    Oct 2006
    Location
    UK
    Posts
    166
    Tokens
    0

    Default

    PHP Code:
    <?
    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$srcImg0000$thumbWidth$thumbHeightimagesx($thumbImg), imagesy($thumbImg));
    $ImgWhite imagecolorallocate($thumbImg255255255);
    imagefill($thumbImg00$ImgWhite);
    imagecolortransparent($thumbImg$ImgWhite);
    imagegif($thumbImg);
    imagedestroy($thumbImg);
    ?>
    Cropped. Go to like habbos.php?name=George.Morgan
    Last edited by George Morgan; 31-10-2006 at 09:46 PM.

  9. #9
    Join Date
    Jun 2006
    Posts
    1,587
    Tokens
    0

    Latest Awards:

    Default

    isnt this illegal though as its stealing bandwith

  10. #10
    Join Date
    Oct 2006
    Location
    UK
    Posts
    166
    Tokens
    0

    Default

    Erm, don't think it is? Anyway, everybody happy now Ive posted code to crop?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •