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 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Question PHP - Display a habbos motto

    I would like a script that will display a habbos motto. I have the one that displays the habbos picture

    PHP Code:
    <?php
    header
    ("Content-type: image/gif");
    $habbo $_GET['name'];
    $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);
    ?>
    and the "habbos online" counter too

    PHP Code:
    <?php
    $page 
    file_get_contents("http://www.habbo.co.uk");
    $start explode('<div class="profile-motto">'$page2);
    $end explode('<div class="clear"></div></div>'$start[1], 2);
    $amount trim($end[0]);
    echo 
    "Motto: <b>$amount</b>";
    ?>
    Can anybody help please?
    Last edited by Florx; 21-12-2006 at 12:53 PM.

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    dm found it ty

  3. #3
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    could you share it with us please?

  4. #4
    Join Date
    Sep 2006
    Location
    Wakefield, West Yorkshire
    Posts
    162
    Tokens
    0

    Default

    I coded these a while ago


    Motto
    PHP Code:
    <?php
    $habbo 
    $_GET['name'];
    $home file_get_contents("http://www.habbohotel.co.uk/home/".$habbo);
    $start explode('<div class="profile-motto">'$home);
    $end explode('</div>'$start[1]);
    $motto1 trim($end[0]);
    $motto str_replace('        <div class="clear">','',$motto1);
    echo 
    $motto;
    ?>
    D.O.B
    PHP Code:
    <?php
    $habbo 
    $_GET['name'];
    $home file_get_contents("http://www.habbohotel.co.uk/home/".$habbo);
    $start explode('<div class="birthday date">'$home);
    $end explode('</div>'$start[1]);
    $date1 trim($end[0]);
    echo 
    $date1;
    ?>
    Left. Or have I?

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

    Latest Awards:

    Default

    I coded those lonnnngggg before you did.

  6. #6
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Sorry for the nub question but how do you put these codes into am inage if you know what I mean. There is a certain programme I persume? :rolleyes:

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

    Latest Awards:

    Default

    Like GD Image?

  8. #8
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    I think he means like -1. 's signature

  9. #9
    Join Date
    Nov 2006
    Location
    West Yorkshire
    Posts
    2,557
    Tokens
    0

    Latest Awards:

    Default

    Yeah, I would like to know as well, (for when i get new comp)
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  10. #10
    Join Date
    Dec 2006
    Posts
    3
    Tokens
    0

    Default

    have someone code a PHP script to see the Badges from a User?

    i think its a good idea

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
  •