Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 54
  1. #11
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    @Lost
    Save the following PHP into a document named habbo.php.

    Code:
    <?PHP
    $page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]");
    eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result);
    $name = $_GET[name];
    $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif";
    echo("$url");
    ?>
    OK. Now visit /habbo.php?name=Your Habbo username goes here. For instance, /habbo.php?name=Halting.

    You will see a URL. Something like http://www.habbo.co.uk/habbo-imaging...f494d626d7.gif.

    This is the URL you want to use for your image source.

    If you want to know how to make this your image source, just ask.

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

    Latest Awards:


  3. #13
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    You need to put ?name=huddle
    Like so:
    http://www.morningsunshine.net/habbo2.php?name=huddle

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

    Latest Awards:

    Default

    YAY TY +REP!

    how do i insert that into an image tag?

  5. #15
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

  6. #16
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    Yes. That's what you're after.
    Now make another page and, where you want the image to appear, insert this code:

    Code:
    <img src="<?PHP include("http://www.morningsunshine.net/habbo2.php?name=huddle"); ?>" />

  7. #17
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

    Default

    Last edited by Panther; 17-11-2006 at 09:14 PM.

  8. #18
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    Code:
    <?PHP
    $page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]");
    eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result);
    $name = $_GET[name];
    $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif";
    echo("<img src=\"$url\">");
    ?>
    Replace what you've got inside habbo.php so far with the code above.

  9. #19
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

  10. #20
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    Last edited by Halting; 17-11-2006 at 09:17 PM.

Page 2 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
  •