[Plugin: Skype Online Status] Return status indicator in text/XML
-
It took quite some time figuring out how to return the status as text rather than the default button.
The links:
http://mystatus.skype.com/yourusername.txt
http://mystatus.skype.com/yourusername.xmlThis doesn’t seem achievable using the plugin. I manually added the following to my page template:
//http://webcodingeasy.com/PHP-APIs/Get-skype-status $someskypeid="john.doe"; $url = "http://mystatus.skype.com/".$someskypeid.".xml"; //getting contents $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($curl); curl_close($curl); $pattern = '/xml:lang="en">(.*)</'; preg_match($pattern,$data, $match); //return $match[1]; echo $match[1];
Can we not just have this as a default template for the plugin?
I would have thought that the outputting of text rather than images was a common request.
Apologies in advance if the plugin already facilitates this and I’ve simply overlooked it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Skype Online Status] Return status indicator in text/XML’ is closed to new replies.