Yahoo! Presence Image

Yahoo!

Few days ago. I find a case, where my client asks to place their Yahoo! Messenger online status as an online support in their site. So the visitor can see if the online support currently online and using Yahoo! Messenger or not. If a Yahoo! Messenger user clicks their online presence, an instant message window will open for them so they can type an instant message. Yeah i use Yahoo! presence service, but the default presence image doesn't look fit with the website design i make. And i'm bored with it, so i decide to create new presence image.

Heres the default presence image:
yahoo presence3 yahoo presence4
yahoo presence2 yahoo presence1

you might have been familiar to these standard YM online status button. Bored right?
Heres my own Yahoo! presence image:
myonline myoffline

Hey!! Don't say its bored too.... its better than Yahoo! default presence image (i think) :D
Maybe you want to customize it with your name, so its look like this
jokerzonline

Of course, this is only an example. You can create better buttons on your own.

The image done. Now how to place it in our site. Since Yahoo! presence image service didn't allow us to change the image directly.
I create some PHP Class, which allows visitor to view your Yahoo! online status using your custom images. According to online doc, we can use "http://opi.yahoo.com/online?u=" to see the status. As it's a picture (a gif), and as we only want a boolean at the end, we just have to check length of picture content. Length for "online" is 140. Else, it's "offline".

How to use it.

  • 1. Download the class
  • 2. Extract and upload it to your webserver.
  • 3. Upload your online and offline presence image. Remember, the file name must be in this format, "online_youryahooID.gif" and "offline_youryahooID.gif"
  • 4. Add this line
    PHP:
    1. $yahoostatus->YMStatus('youryahooID');

    Be sure to replace out "youryahooID" with your own Yahoo! ID.

You may add more than 1 Yahoo ID if you want, the code should be like this.

PHP:
  1. $yahoostatus->YMStatus('youryahooID1');
  2. $yahoostatus->YMStatus('youryahooID2');

Done!!

29 comments so far

  1. neng_biker October 8, 2007 7:11 pm

    bikiniiiiiiiiiiiiiiiiiiiiiin!!!!!!!!!!!!!!!!!!!

  2. JOKERz October 8, 2007 7:24 pm

    tinggal download aja koq

  3. dhani October 8, 2007 9:32 pm

    nice!

    pake ahhh....

  4. dhani October 8, 2007 9:36 pm

    oh ya... kalo dibikin widget bisa lebih keren tuh...

    don't we all agree?!

  5. JOKERz October 8, 2007 10:40 pm

    Silahkan di download bang.
    Moga2 berguna.

    Di bikin widget??
    Ga ngerti gw cara bikin widget...
    kalo mijit **ket ngerti

  6. dhani October 9, 2007 3:05 pm

    halah!

  7. dhani October 9, 2007 4:00 pm

    lagi iseng... nih gw bikin wp widget-nya...

    download di sini...

  8. JOKERz October 9, 2007 5:11 pm

    wahh keren tuh...
    buat yang pake WordPress silahkan download widgetnya untuk Status YM di atas di blognya om dhani

    Nice work dude

    Tolong sekalian di bahas cara nginstall/make widgetnya hehehehe

  9. soul October 27, 2007 7:27 pm

    pak, lebih jelasin dong, newbie nih pak, ngelink nya gimana pak, / langsung paste? mohon penjelasan pak:d

  10. JOKERz October 27, 2007 10:59 pm

    kurang jelasnya dimana niy?? Ok gw jelasin pake bahasa indo ya.

    1. Download dulu class yg di atas
    2. Extract file yg uda di download ke suatu folder, misal "yahoo_presence"
    3. Kalo ga cocok ama image yg ada silahkan di ganti/edit/bikin sendiri, inget nama file harus seperti ini "online_YahooIDmu.gif" dan "offline_YahooIDmu.gif". Ganti "YahooIDmu" ama yahoo-ID mu. File image ada 2 buat online dan offline. formatnya "gif" kalo mo format lain bisa aja. tapi harus edit classnya.
    4. Masukin code php berikut ini.
    PLAIN TEXTPHP:
    $yahoostatus->YMStatus('ganti_ama_yahooID_mu');

  11. anton November 10, 2007 4:25 pm

    Weh...weh...veri veri helpful
    Sippp...

  12. neng_biker November 15, 2007 10:12 pm

    bnr2 ga bisa ditaru di blogspot?
    atooo fs kali

  13. nengbiker January 12, 2008 10:41 am

    nda bisa................

  14. JOKERz January 12, 2008 10:57 am

    kalo hosting sendiri pasti bisa

  15. ade March 16, 2008 10:00 pm

    kueren puol

  16. pol May 10, 2008 6:42 pm

    id like to ask, how can i upload it on the webserver?? idk how and what to do.. please help./. ^.^ mucho thankz..

  17. JOKERz May 10, 2008 9:34 pm

    how to upload it??
    you can use FTP, CPanel file manager or something similar

  18. pol May 12, 2008 5:19 pm

    im still confused, i dont know how.. :[

  19. JOKERz May 12, 2008 6:32 pm

    @pol: did you have hosting server?? did you have your own domain??

  20. pol June 2, 2008 6:03 pm

    i dont think i have those.. what shud i do?

  21. JOKERz June 2, 2008 7:08 pm

    then you can't use my code.
    its not designed for friendster.

    Maybe later, i'll create one.

  22. pol June 4, 2008 3:15 pm

    ok, thanks anyway. i'll be waiting for that

  23. [...] Presence Image Generator. This is for you guys, who want to use my Yahoo! Presence Image but don’t have web server to upload it. Insert your Yahoo ID (this is required), your name to [...]

  24. JOKERz June 6, 2008 12:10 am

    Anyone need Yahoo Presence Image?
    You can generate yourself here http://jokerz.web.id/blog/2008/06/06/yahoo-presence-image-generator/

  25. need help! March 27, 2012 9:35 am

    i just want to try this on local server but it seems that im having trouble with that.

    please help. where to put the yahoo ID and my own yahoo logo location

    THANK YOU VERY MUCH sir JOKERz

  26. JOKERz March 27, 2012 9:50 am

    wow its been 5 years script.
    I believe you will find better one today

    btw, i already explain it all above ex: $yahoostatus->YMStatus('youryahooID');
    you can place the image in any folder, just remember to update the image path on the class too

    the link is working fine
    i just download it, good luck

  27. need help! March 27, 2012 9:57 am

    hehe wheres the class? :) im new at php thanks :)))

  28. need help! March 27, 2012 9:59 am

    http://jokerz.web.id/blog/2008/06/06/yahoo-presence-image-generator/ this link seems to be broken not the "download class"

  29. makasih mas... udah saya terapin di website saya di http://drillingindonesia.com/

    mudah sekali... langsung jalan... cuman copy classnya dan script diatas lalu rename file gifnya



Leave a comment

Please be polite and on topic. Your e-mail will never be published.

:) :( :d :"> :(( \:d/ :x 8-| /:) :o :-? :-" :-w ;) [-( :)>- more »