Jump to content
dariusmare

[Help] Yahoo Status

Recommended Posts

Posted

Lucrez la un script pentru a prelua statusul unui id de ym. Din cate stiam eu, asta trebuia sa mearga

http://opi.yahoo.com/online?u={ID}&m=a&t=1

dar se pare ca nu mai merge. Imi arata ca sunt offline chiar daca eu sunt conectat la ym.

Multumesc

Posted (edited)

nu vreau sa folosesc ceva extern (jdetector). Vreau direct din yahoo api or shit. Cu

http://opi.yahoo.com/online?u=dariuscostolas&m=a&t=2

imi returneaza "IS NOT ONLINE" si eu sunt online pe ym.

Edited by dariusmare
Posted

Daca esti pe invizibil, yahoo nu va da niciodata statusul (online,offline,invizibil) , iti trebuie un pachet ymsgr pentru a detecta statusul ! incearca pe viprasys, poate gasesti acolo ceva.

Posted
<?php
function yahoo($id){
$url = 'http://opi.yahoo.com/online?u=';
$data = file_get_contents($url . $id);
if (trim(strtolower(strip_tags($data))) != 'user not specified.') {
return (strlen($data) == 140) ? 'online' : 'offline';
} else {
return trim(strip_tags($data));
}
}

echo yahoo("yahoo_userid");
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...