PHP Classes
elePHPant
Icontem

Skype Status: Determine the online status of a Skype user

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-01-06 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 888 All time: 3,733 This week: 1,176Up
Version License PHP version Categories  
skype_status 1.0.0GNU General Publi...4.0Web services, Chat
Description Author  

This class can be used to determine the online status of a Skype user.

It sends an HTTP request to the Skype Web server that returns a status widget page for a given user.

The class parses the status page to determine the current status of the user.

It caches the status query results to avoid further server accesses during 2 minutes.

Picture of lubosdz
Name: lubosdz <contact>
Classes: 1 package by
Country: Slovak Republic Slovak Republic
Age: ???
All time rank: 232112 in Slovak Republic Slovak Republic
Week rank: 1559 Up10 in Slovak Republic Slovak Republic Up

Details provided by the author  
This is PHP solution for showing any SKYPE account status on your website
It solves problem, that skype server does not support HTTPS requests.
Therefore client javascript will fail it it attempts to connect to skype server via secure link (HTTPS).

Workaround - this solution replaces pure client implementation with pure server implementation,
and sends to client skype status acquired between servers. No client javascript implementation is required at all.

DIRECTORY STRUCTURE:
|skype
|skype/skype_accounts/
|skype/skype_images/skype_online.png
|skype/skype_images/skype_do_not_disturb.png
|skype/skype_images/skype_me.png
|skype/skype_images/skype_not_available.png
|skype/skype_images/skype_away.png
|skype/skype_images/skype_offline.png
|skype/skype.status.class.php

INSTALLATION:

1/ create folder [skype_accounts] with writable permissions
2/ create folder [skype_images] and copy there skype status images. you can replace/create your own images.
3/ set/check correct paths in class and image names
4/ initiate the class - see examples #1 - #3 bellow:

example #1:
$skype = new Skype_Status();
$skype_data = $skype->get_skype_status('myskypename', 120);
echo $skype_data['html'];

example #2:
$skype = new Skype_Status();
$skype->show_picture('myskypename', 120);

example #3:
$skype->show_html('myskypename', 120);
 
Now check - you should see new file inside of directory [.../skype_accounts/skype_status.MYSKYPENAME.txt]

Enjoy!

----------------
please report bugs to: lubosdz@synet.sk

  Files folder image Files  
File Role Description
Files folder imageskype_accounts (1 file)
Files folder imageskype_images (6 files)
Accessible without login Plain text file GPL.txt Lic. GPL licence
Accessible without login Plain text file readme.txt Doc. readme.txt
Plain text file skype.status.class.php Class main skype status class

  Files folder image Files  /  skype_accounts  
File Role Description
  Accessible without login Plain text file skype_status.myskypename.txt Data exsample of cached skype status

  Files folder image Files  /  skype_images  
File Role Description
  Accessible without login Image file skype_away.png Icon status away
  Accessible without login Image file skype_do_not_disturb.png Icon status do not disturb
  Accessible without login Image file skype_me.png Icon status skype me
  Accessible without login Image file skype_not_available.png Icon status not available
  Accessible without login Image file skype_offline.png Icon status offline
  Accessible without login Image file skype_online.png Icon status online

 Version Control Unique User Downloads Download Rankings  
 0%Total:888All time:3,733
 This week:0This week:1,176Up
 User Comments (1)