Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default Easy way to pull a habbo motto

    Hi,

    Is there a easy way to pull a Habbo motto, e.g to pull a habbo character its this;
    http://www.habbo.com/habbo-imaging/a...img_format=gif
    Ross

  2. #2
    Join Date
    Nov 2007
    Posts
    2,709
    Tokens
    89
    Habbo
    -Danube-

    Latest Awards:

    Default

    Quote Originally Posted by GoldenMerc. View Post
    Hi,

    Is there a easy way to pull a Habbo motto, e.g to pull a habbo character its this;
    http://www.habbo.com/habbo-imaging/a...img_format=gif
    Ross
    I don't think there is a way to do it in url form or anything like that.

    Although there is a very easy way to do it by using a small PHP script. Just do a file_get_contents() on their habbo home page (using the username as a variable in the link) and then just explode() everything appropriately and you should easily get the motto in a few lines of code.
    I've left. I'm back.
    ~Dan

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

    Latest Awards:

    Default

    Plenty of easier ways to do this, regex, etc:

    PHP Code:
    $habbo_name = @$_GET["habbo_name"];
    if(empty(
    $habbo_name)) {    exit("No name specified.");}
    $file = @file_get_contents("http://www.habbo.com/home/{$habbo_name}");
    if(!
    $file) {    exit("Cannot get motto at this time.");}
    $motto explode('motto">'$file);$motto explode('<div'$motto[1]);$motto trim($motto[0];
    echo 
    $motto
    ---------- Post added 30-09-2011 at 02:45 AM ----------

    Habbox really messes the PHP up.. gay.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •