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 11
  1. #1
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default [NEW] Habbo Mottor Grabber

    Hello,

    As some of you are probably aware Habbo recently changed their systems so that mottos couldn't be grabbed using the normal method from the homepages.

    Below is a new PHP function I've written to successfully grab peoples mottos

    PHP Code:
    <?php

    function mottoGrab($username) {        
        
    $url 'http://www.habbo.com/home/'.$username;

        
    $ch curl_init();  
        
    curl_setopt($chCURLOPT_URL$url);  
        
    curl_setopt($chCURLOPT_HEADER1); 
        
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)');
        
    curl_setopt($chCURLOPT_COOKIE"YPF8827340282Jdskjhfiw_928937459182JAX666=".$_SERVER['SERVER_ADDR']); //saved cookies
        
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
           
        
    $string curl_exec ($ch);  
        
    curl_close ($ch);  
     
        
    $regex '#\<div class="profile-motto"\>(.+?)\<\/div\>#s';
        
    preg_match($regex$string$matches);
        
    $match $matches[0];
        echo 
    $match;
    }

    mottoGrab(xxMattGxx);

    ?>
    That should work just straight off. If not it will be to do with the Server IP address. If this is the case, simply replace the

    PHP Code:
    curl_setopt($chCURLOPT_COOKIE"YPF8827340282Jdskjhfiw_928937459182JAX666=".$_SERVER['SERVER_ADDR']); //saved cookies 
    line with:

    PHP Code:
    curl_setopt($chCURLOPT_COOKIE"YPF8827340282Jdskjhfiw_928937459182JAX666=YOURSERVERIP"); //saved cookies 

  2. #2
    Join Date
    May 2011
    Location
    LANDAN
    Posts
    2,758
    Tokens
    4,036
    Habbo
    CrazyLemurs

    Latest Awards:

    Default

    LOL I don't get half of that, but if it does what we need for registration to reopen on the main site, we should definitely use it!

    people know me because of that shower thing one time and I do not regret anything

    upon further review I feel a rather mild regret is warranted

  3. #3
    Join Date
    Mar 2005
    Location
    London
    Posts
    4,402
    Tokens
    3,894
    Habbo
    Intricat

    Latest Awards:

    Default

    Quote Originally Posted by CrazyLemurs View Post
    LOL I don't get half of that, but if it does what we need for registration to reopen on the main site, we should definitely use it!
    The motto part of the registration now works. Unfortunately David's Captcha code is broken so people still can't register

  4. #4
    Join Date
    Dec 2012
    Posts
    2
    Tokens
    0

    Default

    Works on habbo.com.br?

  5. #5
    Join Date
    Mar 2010
    Location
    Cornwall (UK)
    Posts
    2,329
    Tokens
    6,755
    Habbo
    -Nick

    Latest Awards:

    Default

    Quote Originally Posted by MatheeusXD View Post
    Works on habbo.com.br?
    just change the URL in coding ?dunno if that will work
    Last edited by -Nick; 25-12-2012 at 11:57 AM.


    Quote Originally Posted by xxMATTGxx View Post
    Nick is harmless and he's not a bad person after you have spoken to him a few times.
    Last +REP from: Kardan


  6. #6
    Join Date
    Dec 2012
    Posts
    2
    Tokens
    0

    Default

    Quote Originally Posted by Grumke View Post
    just change the URL in coding ?dunno if that will work
    it is the Brazilian has habbo servers in the United States is the same habbo.com

  7. #7
    Join Date
    Jan 2013
    Location
    localhost
    Posts
    63
    Tokens
    412
    Habbo
    AaidenX

    Latest Awards:

    Default

    It doesnt work, undefined offset[0]

  8. #8
    Join Date
    Oct 2011
    Location
    Melbourne
    Posts
    637
    Tokens
    1,376

    Default

    Quote Originally Posted by AaidenX View Post
    It doesnt work, undefined offset[0]
    Works for me. Your moto is "HTML, CSS, PHP, Java, C# and Pascal."

  9. #9
    Join Date
    Jan 2013
    Location
    localhost
    Posts
    63
    Tokens
    412
    Habbo
    AaidenX

    Latest Awards:

    Default

    @Blinger it won work, I get "Notice: Undefined offset: 0 in C:\xampp\htdocs\motto.php on line 19"

  10. #10
    Join Date
    Nov 2008
    Posts
    217
    Tokens
    1,822
    Habbo
    eLv

    Latest Awards:

    Default

    You guys can use the following URL to find out mission of habbos who have their homepage hidden: http://www.habbo.com/habblet/habbose...String=AaidenX






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
  •