PDA

View Full Version : This Possible?



Luke
28-11-2009, 11:46 PM
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

Protege
29-11-2009, 12:25 AM
http://www.checkmsnstatus.com/msn-status-checker.php?msn=noobs%40disasterpiece.co.uk&check=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")

Luke
29-11-2009, 12:51 AM
http://www.checkmsnstatus.com/msn-status-checker.php?msn=noobs%40disasterpiece.co.uk&check=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

Protege
29-11-2009, 01:24 AM
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

$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';
}

?>

Luke
29-11-2009, 06:31 PM
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

$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';
}

?>


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

Luke

Protege
29-11-2009, 08:46 PM
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)




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.

Luke
29-11-2009, 09:00 PM
Hmm, looks complicated, Ill try figure it out xD

Thanks for all your help!
+rep if i can

Want to hide these adverts? Register an account for free!