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!


Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2007
    Posts
    10
    Tokens
    0

    Default Need Habbo Imager Code

    I need the PHP code for a Habbo imager that looks like this:

    http://www.habbosite.com/page.php?na...ME&hotel=HOTEL

    Anyone help?

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Search the forum, theres a few been posted.

  3. #3
    Join Date
    Jul 2006
    Location
    Derbyshire
    Posts
    414
    Tokens
    0

    Default

    ~~~~~~~~~~
    (Happy To Help)
    ~~~~~~~~~~



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

    Latest Awards:

    Default

    *+*+*+*i coded dat m88!!1***+*+*+*
    Last edited by Invent; 09-05-2007 at 04:36 PM.

  5. #5
    Topps Guest

    Default

    Quote Originally Posted by Invent View Post
    *+*+*+*i coded dat m88!!1***+*+*+*
    Great coding then BTW!

  6. #6
    Join Date
    Jan 2007
    Posts
    10
    Tokens
    0

    Default

    Not particularly like that, no. I want the hotels all in one file so I can just do &hotel=.co.uk or something, etc.

  7. #7
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    No he didn't, he coded the first version.

    Reviewdude ask me to code this one As you can see it has more then 1 badge.

    Here is one I briefly coded up.

    edit $default to set the default hotel.

    imager.php?name=habboname will show habboname from your default hotel
    imager.php?name=habboname&hotel=com will show habboname from USA hotel.

    in the hotel do not put .com, .ca, .com.sg, just com, ca, com.sg

    PHP Code:
    <?
    // Multi Hotel Imager. 
    // Created by Dentafrice

    $default "co.uk"// Default hotel, no .  EX: ca, com, co.uk, com.sg
    $hotel $_GET[hotel];
    if(
    $hotel == "") {
    $hhotel $default;
    }else{
    $hhotel $hotel;
    }
    $habbo $_GET['name'];
    $domain "http://www.habbo.$hhotel";
    $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);
    header("Content-type: image/gif");
    @
    imagegif($im);
    @
    imagedestroy($im);
    ?>
    Last edited by Dentafrice1; 11-05-2007 at 03:13 AM.

  8. #8
    Join Date
    Apr 2005
    Posts
    4,478
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    No he didn't, he coded the first version.

    Reviewdude ask me to code this one As you can see it has more then 1 badge.

    Here is one I briefly coded up.

    edit $default to set the default hotel.

    imager.php?name=habboname will show habboname from your default hotel
    imager.php?name=habboname&hotel=com will show habboname from USA hotel.

    in the hotel do not put .com, .ca, .com.sg, just com, ca, com.sg

    PHP Code:
    <?
    // Multi Hotel Imager. 
    // Created by Dentafrice

    $default "co.uk"// Default hotel, no .  EX: ca, com, co.uk, com.sg
    $hotel $_GET[hotel];
    if(
    $hotel == "") {
    $hhotel $default;
    }else{
    $hhotel $hotel;
    }
    $habbo $_GET['name'];
    $domain "http://www.habbo.$hhotel";
    $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);
    header("Content-type: image/gif");
    @
    imagegif($im);
    @
    imagedestroy($im);
    ?>
    can i use that

  9. #9
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Yeah, or I would not have posted it.

Posting Permissions

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