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 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default Retrieving Habbo Users Mission using PHP

    Hey,
    Was wondering if you could help me.

    Is there a way, and I know three must be, of retrieving a Habbo's Mission/Motto and displaying it using PHP?

    Ty
    Callum.
    Ive tried so many things and it just wont work!

  2. #2
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    BUMP! Need this urgently :L

  3. #3
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    I guess it'd be going to the habbos homepage and searching the code for the div or w/e and then use it ?

  4. #4
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    Hmm... I'll give it a try

  5. #5
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by BoyBetterKnow View Post
    I guess it'd be going to the habbos homepage and searching the code for the div or w/e and then use it ?
    That wouldnt work as php is server side, surely u knew that?

    And erm... there should be a link of some sort to select it from the db or sumit...
    All I could reccommend is looking at a status gen and looking for the motto

    I found this:
    PHP Code:
        function motto()
        {
            
    $motto explode('<div class="profile-motto">'$this->data);
            
    $motto explode('</div>'$motto[1]);
            
    $motto trim($motto[0]);
            
    $motto str_replace('        <div class="clear">'''$motto);
            return 
    $motto;
        } 
    Lew.

  6. #6
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    I saw that but its changed since that one was produced
    Ty anyway

  7. #7
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    check the name of the div then and change it...??

    Lew.

  8. #8
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Lewiie15 View Post
    That wouldnt work as php is server side, surely u knew that?

    I said "I guess it'd be going to the habbos homepage and searching the code for the div or w/e and then use it ?"

    Using a function of his choice he could request the page. And my dearest Lewiie, surely you knew that the habbo pages are displayed in client side code.

    www.habbo.co.uk/home/Callie

    Then do explode or w/e to extract the mission.

    Don't know where you got php being server side from me saying to go to a habbos homepage and searching the code for the div.

    A div is in html code, not php. Surely you knew that?

  9. #9
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    My bad, i thought you mean fetch the php code from within the div... lol

    Lew.

  10. #10
    Join Date
    Oct 2004
    Posts
    5,837
    Tokens
    2,203

    Latest Awards:

    Default

    Code:
    if (habbo.IsLoggedIn)
                {
                    String myMotto = habbo.Motto;
                    habbo.Motto = ("New motto"); // Sets motto to 'New motto'
                }
                else
                {
                    return; // If the user isnt logged in, then return
                }  
    This might help, no idea


    stop putting lew after each post its pretty annoying

Page 1 of 3 123 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
  •