Status online yahoo messenger with different image
Dipublikasi oleh medon
Thursday, 22 January 2009
Now, you can display different image from online status of yahoo messenger, Yahoo messenger its free software for chatt, and you can place the status online on your web with different image status, just place this code where you want to display on you’re site
<?php
//set of initial configuration
$id = "YAHOO_ID"; //Change to your Yahoo ID
$online = "/wp-content/uploads/2009/04/online-smile.png"; //URL to online image
$offline = "/wp-content/uploads/2009/04/offline-smile.png"; //URL to offline image
$buka = fopen("http://opi.yahoo.com/online?u=".$id."&m=t","r")
or die
("<img src='http://opi.yahoo.com/online?u=".$id."&m=g&t=2'/>");
while ($baca = fread( $buka, 2048 ))
{ $status .= $baca; }
fclose($buka);
if($status == $id." is ONLINE"){
echo "<a href='ymsgr:sendIM?".$id."'><img border=0 src='".$online."'/></a>";
} else {
echo "<a href='ymsgr:sendIM?".$id."'><img border=0 src='".$offline."'/></a>";
}
?>
Have other ideas with a different way? please share here…
4 Komentar





Oleh: keluarga dirmanto
Thursday, 22 January 2009 @ 09:07
horeeeeeeee si mekmok ngeblog deui euy :)
Oleh: byme
Tuesday, 10 March 2009 @ 15:01
nice info brother makasih
byme salam kenal
Oleh: Arie
Friday, 03 April 2009 @ 11:43
eh gimbal… nyala lagi blog nya? cip cip.. aya batur ^^
Oleh: lirih
Tuesday, 14 April 2009 @ 21:08
lama ga muncul, dah berubah sekarang mas….pakabar sukabumi