Page 3 of 6 FirstFirst 123456 LastLast
Results 21 to 30 of 54
  1. #21
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Right I have it working.
    Simple.

    http://www.rksoftware.swainhosting.c...bo1.php?name=r

    You need to use this as habbo1.php

    PHP Code:

    <img src="<?include ("habbo.php"); ?>" alt="" />
    There you go. Not hard at all.


    You don't like me
    Chances are I don't like you.

  2. #22
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

    Default

    lol

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

    Latest Awards:

    Default

    Everything working now Panther?

  4. #24
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    My gosh. The difficulty. Sorry if im offensive but it was one line of freakin code.


    You don't like me
    Chances are I don't like you.

  5. #25
    Join Date
    Apr 2006
    Location
    England
    Posts
    1,159
    Tokens
    0

    Latest Awards:

    Default

    lol

    If you're going to use it on a staff page it could take a while to load.

  6. #26
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

    Default

    Lol Im crap at php :p

  7. #27
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Just looked at the code again. There is a way to do it on one page. Very simplely.

    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(
    "<img src=\"$url\">");
    ?>
    All you needed to do was to change the echo so it outputs the image instead of the url =/


    You don't like me
    Chances are I don't like you.

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

    Latest Awards:

    Default

    Quote Originally Posted by Halting View Post
    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.
    There is. I mentioned that earlier in this thread .

    EDIT: You can remove the variable $name if you like. It has no use whatsoever.
    Last edited by Halting; 17-11-2006 at 09:29 PM.

  9. #29
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Ah crud. Never saw it. Sorry.


    You don't like me
    Chances are I don't like you.

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

    Latest Awards:

    Default

    I just came up with another idea.
    Using the $url variable, you could easily find out whether a Habbo is banned or not.

    For instance, this might be a good feature for a profile:
    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);
    $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif";
    if ($url != '') { // if the $url variable is empty, then the image couldn't be found. Meaning that Habbo Hotel is under maintenance or they have been banned from using Habbo Hotel.
    echo('Normal profile contents go here.');
    } else {
    echo('This Habbo has been banned.');
    }
    ?>
    Just an idea
    Last edited by Halting; 17-11-2006 at 09:37 PM.

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