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 20

Thread: PHP... Hmm..

  1. #1
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default PHP... Hmm..

    This is mainly to anyone that can use explode (THOMAS OR NETS LOL)

    Anyway, is it possible, just like your MySpacePicture thing, to get the avatar, name and usertitle out of someones profile? And their VIP status

    Cos you could have

    function habbox($id){

    Then have

    echo habbox("ID FOR UR ACCOUNT HERE");

    thanks.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Indeed you could.

  3. #3
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Ok, i need to reprashe that:

    Can anyone write a code for it please?

  4. #4
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Do you mean from HabboxForum?

    If so I could try write one for you.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  5. #5
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Yes please

  6. #6
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    You can't do it though.

    Logout and go to:

    http://www.habboxforum.com/member.php?u=36091

    You'll get:

    You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
    You are not logged in. Fill in the form at the bottom of this page and try again.
    You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

  7. #7
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Thats preeeety dumb.

    Edit: But if you transfer it into GD, and put it in your sig, I suppose most members would be logged in looking at it..
    Last edited by Blob; 23-02-2007 at 04:28 PM.

  8. #8
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    I was just about to post that. I did code it though.

    PHP Code:
    <?php

    function getHabboxName($id){
    $data file_get_contents("http://www.habboxforum.com/member.php?u=".$id);
    $name explode('<td class="tcat">View Profile<span class="normal">: '$data);
    $name explode('</span></td>'$name[1]);
    $name trim($name[0]);
    return 
    $name;
    }
    //Example
    echo getHabboxName(36091)."<br><br>";

    function 
    getHabboxAvatar($id){
    $data file_get_contents("http://www.habboxforum.com/member.php?u=".$id);
    $avatar explode('<td><img src="image.php?u='$data);
    $avatar explode('"'$avatar[1]);
    $avatar trim($avatar[0]);
    $avatar "http://www.habboxforum.com/image.php?u=".$avatar;
    return 
    $avatar;
    }
    //Example
    echo '<img src="'.getHabboxAvatar(36091).'" /><br><br>';

    function 
    getHabboxUserTitle($id){
    $data file_get_contents("http://www.habboxforum.com/member.php?u=".$id);
    $usertitle explode('<div class="smallfont"><b><font size=1>'$data);
    $usertitle explode('</font></b></div>'$usertitle[1]);
    $usertitle trim($usertitle[0]);
    }

    //Example
    echo getHabboxUserTitle(36091)."<br><br>";

    function 
    isVIP($id){
    $data file_get_contents("http://www.habboxforum.com/member.php?u=".$id);
    if(
    eregi('<img src="images/ranks/VIP.gif" alt="" border="" />'$data)){
    return 
    true;
    }else{
    return 
    false;
    }
    }

    //Example
    if(isVIP(36091)){
    echo 
    "VIP";
    }else{
    echo 
    "Not VIP";
    }

    ?>
    Obviously it doesnt work and I dont know if theres errors
    Last edited by ZAG; 23-02-2007 at 04:29 PM.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  9. #9
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Th0m4s View Post
    I was just about to post that. I did code it though.
    Post please

  10. #10
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Its my post above

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

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
  •