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

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
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.
That works, but they aint got an API or anything, so can't just have the "Online, Offline" bit on my site.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")
Thanks though
+rep gotta spread, soz
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( $curlSession, CURLOPT_POST, 1 );
curl_setopt( $curlSession, CURLOPT_POSTFIELDS, 'c=' . $msnAddress );
curl_setopt( $curlSession, CURLOPT_FOLLOWLOCATION, 1 );
curl_setopt( $curlSession, CURLOPT_RETURNTRANSFER, 1 );
$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.
That worked perfectly!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( $curlSession, CURLOPT_POST, 1 );
curl_setopt( $curlSession, CURLOPT_POSTFIELDS, 'c=' . $msnAddress );
curl_setopt( $curlSession, CURLOPT_FOLLOWLOCATION, 1 );
curl_setopt( $curlSession, CURLOPT_RETURNTRANSFER, 1 );
$curlResponse = curl_exec( $curlSession );
curl_close( $curlSession );
if( strstr( $curlResponse, 'Online' ) )
{
echo $msnAddress . ' is online.';
}
else
{
echo $msnAddress . ' is offline';
}
?>
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)
Grab it straight off my MSG Plus script.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();
Hi, names James. I am a web developer.
Hmm, looks complicated, Ill try figure it out
Thanks for all your help!
+rep if i can
Want to hide these adverts? Register an account for free!