Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 54
  1. #31
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    No because theres no way, or one that i can see of telling php if the habbo is wearing a scarf when your using the url Delatory used.
    You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.

    Can you not use php so if there is a scarf ect, the PHP GD picks up on the data id and makes the image longer in height?
    You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

    But this would take a bit of time as you'd have to log EVERY accessory id.
    Last edited by Invent; 24-08-2008 at 03:15 PM.

  2. #32
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.

    You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

    But this would take a bit of time as you'd have to log EVERY accessory id.
    Arh I would never of thought of that, but going through all that would make the load time very long.

  3. #33
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Arh I would never of thought of that, but going through all that would make the load time very long.
    It wouldn't take ages (depends on the server really), but it would make the loading time longer, yeah.

  4. #34
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    LOL.
    http://www.habbo.co.uk/habbo-imaging...-0.d-2.h-2.a-0

    Sorry, had to post

    EDIT; Ew someone bet me to stripping jack :{
    Last edited by MrCraig; 24-08-2008 at 03:34 PM.
    Coming and going...
    Highers are getting the better of me

  5. #35
    Join Date
    Jul 2008
    Location
    Leeds, UK
    Posts
    47
    Tokens
    0

    Default

    Well i suggest that we start at where the tallest hat ends so then there hair and hat is not a problem.

    hd-180-29.ch-215-62.lg-285-62.sh-290-62.ca-1803-84.hr-679-42.ha-1014-62.he-1605-62,s-0.g-0.d-4.h-4.a-0,0c55fb3e4754fa0655a07d346a3b3a9a.gif
    That's my figure data without any Facial Accessories.

    hd-180-29.ch-215-62.lg-285-62.sh-290-62.ca-1803-84.hr-679-42.ha-1014-62.he-1605-62.fa-1202-72,s-0.g-0.d-4.h-4.a-0,fdcc0389f080a94ff338c5c21f0f0c8f.gif
    That's my figure data with a Button Nose on.

    If you look you see there is extra code when i have a Facial Accessory on, we could use this to add the extra height on depending on which facial accessory it is. Also with a button nose you don't have to add anything on.

    I'm going to start writing the code for it to work now

  6. #36
    Join Date
    Jul 2008
    Location
    Leeds, UK
    Posts
    47
    Tokens
    0

    Default

    Sorry for Double Post but I can't edit my last post so...

    Try this:
    PHP Code:
    <?
    $height
    =43;

    $page=file_get_contents("http://www.habbo.".$_GET['hotel']."/home/".$_GET['habbo']);
    $imagingurl=split("<div class=\"profile-figure\">"$page);
    $imagingurl=split("</div>"$imagingurl[1]);
    $imagingurl=split("src=\"/habbo-imaging/avatar/"$imagingurl[0]);
    $imagingurl=split("\" />"$imagingurl[1]);
    $search=stripos($imagingurl[0], ".fa-");
    if (
    $search !== false) {
        
    $fa=split(".fa-"$imagingurl[0]);
        
    $fa=split("-"$fa[1]);
        
    $fa=$fa[0];
        if(
    $fa=="1208" || $fa=="1201"){
            
    $height=$height+1;
        } else if(
    $fa=="1210"){
            
    $height=$height+4;
        } else if(
    $fa=="1204"){
            
    $height=$height+5;
        } else if(
    $fa=="1205"){
            
    $height=$height+11;
        }
    }

    header("Content-type: image/png"); 
    $src_im=imagecreatefrompng("http://www.habbo.co.uk/habbo-imaging/avatarimage?user=".$_GET['habbo']."&direction=3&head_direction=3&size=l");
    $des_im=imagecreate(35$height); 
    imagecopyresized($des_im$src_im001514"35"$height"35"$height); 
    imagepng($des_im); 
    imagedestroy($src_im);
    imagedestroy($des_im); 
    ?>

  7. #37
    Join Date
    Mar 2007
    Location
    Kent
    Posts
    11,415
    Tokens
    787

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    You'd have to go on their home and get their regular figure data and then use the 'figure' variable on the imager instead of 'user'.

    You'd just have to split the ID to find the accesories variable(s) and see if the id is a beard/scarf/etc.

    But this would take a bit of time as you'd have to log EVERY accessory id.
    Better then nothing, would make it unique to the site.

  8. #38
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Eeek!

  9. #39
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Delatory View Post
    <- Wait for picture to load...
    You are able to do that using GD.
    http://del.jjr-servers.net/habbohead...ser=*USERNAME* [UK Hotel Only]
    PHP Code:
    <?
    header
    ("Content-type: image/png");
    $src_im=imagecreatefrompng("http://www.habbo.co.uk/habbo-imaging/avatarimage?user=".$_GET['user']."&direction=3&head_direction=3&size=l");
    $des_im=imagecreate(3543);
    imagefill($des_im00imagecolorallocate($des_im000));
    imagecopyresized($des_im$src_im001514"35""43""35""43");
    imagepng($des_im);
    imagedestroy($src_im);
    imagedestroy($des_im);
    ?>
    It doesn't have the best loading time but it only gets there head and shoulders.

    And it does work with everyone because habbo did the imager by there feet being in the same location every time.

    Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/deljj/public_html/habbohead.php on line 4

    Warning: file_get_contents(http://www.habbo./home/) [function.file-get-contents]: failed to open stream: Permission denied in /home/deljj/public_html/habbohead.php on line 4

    Warning: Cannot modify header information - headers already sent by (output started at /home/deljj/public_html/habbohead.php:4) in /home/deljj/public_html/habbohead.php on line 25

    Warning: imagecreatefrompng(http://www.habbo.co.uk/habbo-imaging...ction=3&size=l) [function.imagecreatefrompng]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/deljj/public_html/habbohead.php on line 26

    Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/deljj/public_html/habbohead.php on line 28
    ‰PNG  ��� IHDR���#���+���ÈD£w
    Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: Invalid number of colors in palette in /home/deljj/public_html/habbohead.php on line 29

    Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /home/deljj/public_html/habbohead.php on line 29

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/deljj/public_html/habbohead.php on line 30
    Wonderful.

  10. #40
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Edit: Correct Denta, he's missing the hotel & user on the imager (strange as it was working before).
    Last edited by Invent; 24-08-2008 at 07:12 PM.

Page 4 of 6 FirstFirst 123456 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
  •