Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default Habbo Imager Help.

    I was on habboforum.com and saw that someone has posted the code for a slate to go under your habbo.

    Do i add the two codes into the 1 PHP file?

    This is how i have done it but it does not work. The habbo shows but the slate does not.

    PHP Code:
    <?
    header
    ("Content-type: image/gif");
    $habbo $_GET[habbo];
    $domain 'http://www.habbo.co.uk';
    $content file_get_contents($domain '/home/'.$habbo);
    $div_start explode('<div class="profile-figure">'$content2);
    $div_end explode('</div>'$div_start[1], 2);
    $img trim($div_end[0]);
    $img preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/''$2'$img);
    $imag $domain.$img;
    $im imagecreatefromgif($imag);
    imagegif($im);
    imagedestroy($im);
    ?> 
    <?php
    header
    ("Content-type: image/gif");
    $habbo $_GET[habbo];
    $habbo_image 'http://thishabbo.net/habboimager/'.$habbo.'.gif';
    $background_image 'http://thishabbo.net/habboimager/slate.gif';
    $habbo imagecreatefromgif($habbo_image);
    $slate imagecreatefromgif($background_image);
    $habbo_width imagesx($habbo);
    $habbo_height imagesy($habbo);
    $gap 125-($habbo_height+10);
    $middle = (70/2)-($habbo_width/2)+3;
    imagecolortransparent($slate,imagecolorexact($slate,255,0,255)); 
    imagecopymerge($slate,$habbo,$middle,$gap,0,0,$habbo_width,$habbo_height,99);
    imagegif($slate);
    imagedestroy($slate);
    ?>
    http://www.thishabbo.net/habboimager...p?habbo=Lysine

    That is what it shows at the moment with them two files included in 1 PHP file.
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  2. #2
    Join Date
    Oct 2006
    Posts
    119
    Tokens
    0

    Default

    They should be two files

    and you're going to need to know how to use .htaccess if you're going to do it that way.

  3. #3
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    Anyone else help?
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  4. #4
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    EDIT ;

    I have found out that they have to be two files but how does the stand find the habbo?
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  5. #5
    Join Date
    Oct 2006
    Posts
    119
    Tokens
    0

    Default

    habbo.php
    PHP Code:
    <?
    header
    ("Content-type: image/gif");
    $habbo $_GET[habbo];
    $domain 'http://www.habbo.co.uk';
    $content file_get_contents($domain '/home/'.$habbo);
    $div_start explode('<div class="profile-figure">'$content2);
    $div_end explode('</div>'$div_start[1], 2);
    $img trim($div_end[0]);
    $img preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/''$2'$img);
    $imag $domain.$img;
    $im imagecreatefromgif($imag);
    imagegif($im);
    imagedestroy($im);
    ?>
    slate.php
    PHP Code:
    <?php
    header
    ("Content-type: image/gif");
    $habbo $_GET[habbo];
    $habbo_image 'http://www.thishabbo.net/habboimager/habbo.php?habbo=' $habbo;
    $background_image 'http://thishabbo.net/habboimager/slate.gif';
    $habbo imagecreatefromgif($habbo_image);
    $slate imagecreatefromgif($background_image);
    $habbo_width imagesx($habbo);
    $habbo_height imagesy($habbo);
    $gap 125-($habbo_height+10);
    $middle = (70/2)-($habbo_width/2)+3;
    imagecolortransparent($slate,imagecolorexact($slate,255,0,255)); 
    imagecopymerge($slate,$habbo,$middle,$gap,0,0,$habbo_width,$habbo_height,99);
    imagegif($slate);
    imagedestroy($slate);
    ?>

  6. #6
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    Thank you +Rep
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

Posting Permissions

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