Yannick implemented a small script displaying the status information on Ekiga.net.
In order to use it, simply add this to your page :
<script src=”http://www.ekiga.net/status/presence.php?user=YOUR_ID_ON_EKIGA.NET”></script>
where YOUR_ID_ON_EKIGA_NET is simply your username :
(If you can not see how it looks like on the various planets, have a look at my blog directly.)
If you click on the button while the user is online, it should ask Ekiga to call the correct SIP address. This has been tested with Firefox, and it works well.
I would like to thank Yannick for this script, but also Vinicius Depizzol for the button (reusing well-known GNOME icons).
This work is a way to remind that Ekiga is a softphone, but also a platform for the community.
Damien, looks good, but could you also make a smaller version of the graphic available? About half the width/height?
Eugenia: Let me ask Yannick…
Hi Eugenia,
All I need is a good button. Code will be the same…
In fact it is as large as it is because I’ve most of the necessary button for displaying real presence (“Away”, “Don’t disturb” and “free for chat” will be added when 3.0 will be released); they all have the same width for easier web design (“Don’t disturb” takes more width than “Call me!”).
I can try to get rid off the text and only leave icons in the buttons, thus making them smaller. I’ll give a try.
Regards,
Yannick
Personally I already like this version, yeah, smaller version with just presence symbol would also rock. Would be nice to have Inkscape SVG file, for example to make different buttons in different languages.
Keep up with good work!
I was more thinking of these standard buttons like some sites use for RSS, XML and stuff. I created such an example here:
http://eugenia.blogsome.com//images/disturb.gif
I can create the rest of the series in that style if you like, just email me with all the needed texts that go on it and I will take care of it (I don\’t have a contact email for you).
My version is a highly optimized gif at 16 colors, weighing just 300 bytes per graphic and fits easily on most sidebars. With the right ALT and TITLE attributes, it can be easily understandable as to what its function is.
To view the image just press “enter” in the url bar and it will load, even if initially says “forbidden”:
http://eugenia.blogsome.com/images/disturb.gif
“.php”!
Question for Yannick: Does PHP have a good SIP user agent library that you used, or did you roll your own?
@DAvid,
I’ve no clue.
I used PHP to dig the SER database (MySQL) and take the infos; in summary the script is just a test on the database and return a javascript code to display images. This is nothing big, really.
Regards,
Yannick
Cool work, Yannick!
J.
Call me paranoid :-P, but can be implemented a version that return some XML?, so i can check it with my own Javascript, I am not too open to link Javascript from outside sources (and i am not trying to saying you guys have bad intentions, just that i am paranoid)
Robert, sure, you can send us the code returning an XML and we will be happy to host it.
hello. Similar to Robert, i like safety and customization.
Imho best would be just return the image, so it could be used like this:
img src=http://…..user=XXXX
And for people who love to customize things, return json object describing the state. See http://en.wikipedia.org/wiki/JavaScript_Object_Notation for explanation
Can you provide just an image? I would like to insert it in «img src=» tag. I know where to point this image 😉
NB: not all the blog engines allows you to use script tag
Nice button. Re: different sizes.Its easy to resize with some css. I tried to write it up here, but the code wasn’t accepted.
Just view the source at
http://evdokimoff.com/ekiga_presence.html
Should be easy enough to replace image with your own with some javascript