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 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 58

Thread: HabboxForum API

  1. #31
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Thanks, will come in handy.

  2. #32
    Join Date
    Jul 2005
    Location
    North-East Scotland
    Posts
    4,885
    Tokens
    282

    Latest Awards:

    Default

    Doesnt work for my name
    I'm an alcoholic student, I troll naked with a parrot on my shoulder call Jeff.



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

    Latest Awards:

    Default

    Because it has // in it

  4. #34
    Join Date
    Jul 2005
    Location
    North-East Scotland
    Posts
    4,885
    Tokens
    282

    Latest Awards:

    Default

    Quote Originally Posted by JH View Post
    Because it has // in it
    there's a challenge for someone lol
    I'm an alcoholic student, I troll naked with a parrot on my shoulder call Jeff.



  5. #35
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Do I make it an XML file or a PHP file?

  6. #36
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    what???

  7. #37
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by loserWILL View Post
    Do I make it an XML file or a PHP file?
    If your reffering to Simon's code, by the looks of it yeah.

  8. #38
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    So here is my XML file code:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <?php
    
    $curl = curl_init(  );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/login.php?do=login' );
    curl_setopt( $curl, CURLOPT_POST, 1 );
    curl_setopt( $curl, CURLOPT_POSTFIELDS, 'login post data' );
    curl_setopt( $curl, CURLOPT_COOKIEJAR, 'cookie' );
    curl_setopt( $curl, CURLOPT_COOKIEFILE, 'cookie' );
    curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
    
    $store = curl_exec( $curl );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/ajax.php?do=usersearch' );
    curl_setopt( $curl, CURLOPT_POSTFIELDS, 'securitytoken=1213389717-511b74fba4f58d0a451b18e3c4cc913038c2bc77&do=usersearch&fragment='. $_GET[ "user"] );
    
    $store = curl_exec( $curl );
    
    $ex = explode( "<user userid=\"", $store );
    $ex = explode( "\">", $ex[1] );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/member.php?u='. $ex[0] );
    $content = curl_exec( $curl );
    
    curl_close( $curl );
    
    echo $content;
    
    ?>
    And then I get the following error:
    XML Parsing Error: no element found
    Location: http://kolzy.com/hapi/habbos.xml?use...rofluorocarbon
    Line Number 30, Column 4:?>
    ---^

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

    Latest Awards:

    Default

    Quote Originally Posted by loserWILL View Post
    So here is my XML file code:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <?php
    
    $curl = curl_init(  );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/login.php?do=login' );
    curl_setopt( $curl, CURLOPT_POST, 1 );
    curl_setopt( $curl, CURLOPT_POSTFIELDS, 'login post data' );
    curl_setopt( $curl, CURLOPT_COOKIEJAR, 'cookie' );
    curl_setopt( $curl, CURLOPT_COOKIEFILE, 'cookie' );
    curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
    
    $store = curl_exec( $curl );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/ajax.php?do=usersearch' );
    curl_setopt( $curl, CURLOPT_POSTFIELDS, 'securitytoken=1213389717-511b74fba4f58d0a451b18e3c4cc913038c2bc77&do=usersearch&fragment='. $_GET[ "user"] );
    
    $store = curl_exec( $curl );
    
    $ex = explode( "<user userid=\"", $store );
    $ex = explode( "\">", $ex[1] );
    
    curl_setopt( $curl, CURLOPT_URL, 'http://www.habbos.net/member.php?u='. $ex[0] );
    $content = curl_exec( $curl );
    
    curl_close( $curl );
    
    echo $content;
    
    ?>
    And then I get the following error:
    XML Parsing Error: no element found
    Location: http://kolzy.com/hapi/habbos.xml?use...rofluorocarbon
    Line Number 30, Column 4:?>
    ---^
    I've bolded a part of your code which I hope will help you fix the problem.

  10. #40
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    PHP Code:
    echo '<?xml version="1.0" encoding="utf-8"?>';
    It isn't returning any XML, it is returning an assload of HTML.

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