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 3 of 6 FirstFirst 123456 LastLast
Results 21 to 30 of 58

Thread: HabboxForum API

  1. #21
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I'm caching it to the database now.

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

    Latest Awards:

    Default

    OK. Here is the code to do like ?user=Invent on the php file.

    PHP Code:
    <?php

    $curl 
    curl_init(  );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/login.php?do=login' );
    curl_setopt$curlCURLOPT_POST);
    curl_setopt$curlCURLOPT_POSTFIELDS'login post data' );
    curl_setopt$curlCURLOPT_COOKIEJAR'cookie' );
    curl_setopt$curlCURLOPT_COOKIEFILE'cookie' );
    curl_setopt$curlCURLOPT_RETURNTRANSFER);

    $store curl_exec$curl );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/ajax.php?do=usersearch' );
    curl_setopt$curlCURLOPT_POSTFIELDS'securitytoken=1213389717-511b74fba4f58d0a451b18e3c4cc913038c2bc77&do=usersearch&fragment='$_GET"user"] );

    $store curl_exec$curl );

    $ex explode"<user userid=\""$store );
    $ex explode"\">"$ex[1] );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/member.php?u='$ex[0] );
    $content curl_exec$curl );

    curl_close$curl );

    echo 
    $content;

    ?>
    There's probably an easier/better way to do it, but I cba finding out if there is.

    --

    Also, Caleb, if you cache it won't that just mean the data is innacurate?

  3. #23
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    OK. Here is the code to do like ?user=Invent on the php file.

    PHP Code:
    <?php

    $curl 
    curl_init(  );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/login.php?do=login' );
    curl_setopt$curlCURLOPT_POST);
    curl_setopt$curlCURLOPT_POSTFIELDS'login post data' );
    curl_setopt$curlCURLOPT_COOKIEJAR'cookie' );
    curl_setopt$curlCURLOPT_COOKIEFILE'cookie' );
    curl_setopt$curlCURLOPT_RETURNTRANSFER);

    $store curl_exec$curl );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/ajax.php?do=usersearch' );
    curl_setopt$curlCURLOPT_POSTFIELDS'securitytoken=1213389717-511b74fba4f58d0a451b18e3c4cc913038c2bc77&do=usersearch&fragment='$_GET"user"] );

    $store curl_exec$curl );

    $ex explode"<user userid=\""$store );
    $ex explode"\">"$ex[1] );

    curl_setopt$curlCURLOPT_URL'http://www.habboxforum.com/member.php?u='$ex[0] );
    $content curl_exec$curl );

    curl_close$curl );

    echo 
    $content;

    ?>
    There's probably an easier/better way to do it, but I cba finding out if there is.

    --

    Also, Caleb, if you cache it won't that just mean the data is innacurate?
    Update the cache every so often.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  4. #24
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    Also, Caleb, if you cache it won't that just mean the data is innacurate?
    Could make it so it updates all records every day/12 or 24 hours ?
    Oo & simon, if possible, come on msn pls

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

    Latest Awards:

    Default

    Yeah, I know it'll be updated but I thought the point of the API was to offer real-time information.

    Also, I'm on MSN

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

    Latest Awards:

    Default

    It is updated every five minutes. That saves the strain on mine and Habbox's server.

  7. #27
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Its running at least 50% faster due to this. Any ideas?

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

    Latest Awards:

    Default

    My signature script uses exactly the same type of code.

    It also updates every 5 mins.

  9. #29
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by JH View Post
    My signature script uses exactly the same type of code.

    It also updates every 5 mins.
    It doesn't handle spaces.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

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

    Latest Awards:

    Default

    Yet.

    Sorry Caleb for crashing on your thread.

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
  •