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!


Results 1 to 7 of 7

Thread: This Possible?

  1. #1
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Wink This Possible?

    I'm renovating my homepage and I was wondering, if it'd be possible to add a piece of code to say whether or not I'm online on MSN?

    I've gogoled, but links are either dead or don't work.

    Many Thanks
    Luke

  2. #2
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    http://www.checkmsnstatus.com/msn-st...k=Check+Status

    However, it will only work if you have your privacy settings set in MSN to have "All Others" in your "Allow list" (Default its in your "Block list")
    Hi, names James. I am a web developer.

  3. #3
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    http://www.checkmsnstatus.com/msn-st...k=Check+Status

    However, it will only work if you have your privacy settings set in MSN to have "All Others" in your "Allow list" (Default its in your "Block list")
    That works, but they aint got an API or anything, so can't just have the "Online, Offline" bit on my site.

    Thanks though
    +rep gotta spread, soz

  4. #4
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    This should work, pretty basic to grab your status. There is most likely another (better) method to do this.

    If it was me, Id just make a MSN Plus script to hit a url stating my current status (Online, Away, Busy, Offline) or Id set this script to run every 15-30 minutes and update a text file.

    PHP Code:
    <?php

    $msnAddress 
    '[email protected]';
    $checkAddress 'http://www.checkmsnstatus.com/status.php?of=msn';

    $curlSession curl_init$checkAddress );

    curl_setopt$curlSessionCURLOPT_POST);
    curl_setopt$curlSessionCURLOPT_POSTFIELDS'c=' $msnAddress );
    curl_setopt$curlSessionCURLOPT_FOLLOWLOCATION);
    curl_setopt$curlSessionCURLOPT_RETURNTRANSFER);

    $curlResponse curl_exec$curlSession );

    curl_close$curlSession );

    if( 
    strstr$curlResponse'Online' ) )
    {
        echo 
    $msnAddress ' is online.';
    }
    else
    {
        echo 
    $msnAddress ' is offline';
    }

    ?>
    Last edited by Protege; 29-11-2009 at 01:29 AM.
    Hi, names James. I am a web developer.

  5. #5
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    This should work, pretty basic to grab your status. There is most likely another (better) method to do this.

    If it was me, Id just make a MSN Plus script to hit a url stating my current status (Online, Away, Busy, Offline) or Id set this script to run every 15-30 minutes and update a text file.

    PHP Code:
    <?php

    $msnAddress 
    '[email protected]';
    $checkAddress 'http://www.checkmsnstatus.com/status.php?of=msn';

    $curlSession curl_init$checkAddress );

    curl_setopt$curlSessionCURLOPT_POST);
    curl_setopt$curlSessionCURLOPT_POSTFIELDS'c=' $msnAddress );
    curl_setopt$curlSessionCURLOPT_FOLLOWLOCATION);
    curl_setopt$curlSessionCURLOPT_RETURNTRANSFER);

    $curlResponse curl_exec$curlSession );

    curl_close$curlSession );

    if( 
    strstr$curlResponse'Online' ) )
    {
        echo 
    $msnAddress ' is online.';
    }
    else
    {
        echo 
    $msnAddress ' is offline';
    }

    ?>
    That worked perfectly!
    Just for reference how would I go about the msn+ script?

    Luke

  6. #6
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by YabbereR View Post
    That worked perfectly!
    Just for reference how would I go about the msn+ script?

    Luke
    Dear dear, It didnt post it...

    On MSN Status update, hit a call like this... (I updated status/psm/name)


    Code:
    var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp.open( 'GET', 'http://www.domainname.co.uk/status/update.php?cmd=process&name=' + name + '&status=' + status + '&pm=' + personalMsg, true );
    xmlHttp.send();
    Grab it straight off my MSG Plus script.
    Hi, names James. I am a web developer.

  7. #7
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Hmm, looks complicated, Ill try figure it out

    Thanks for all your help!
    +rep if i can

Posting Permissions

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