Jump to content

Recommended Posts

i need help making (or if someone knows of one in existence, locating) a php script that will allow a visitor of my website to send a message to the yahoo im of whoever is currently dj'ing for my station. so, for example, if dj zen masta k is dj'ing between 9 and 12, then dj minnie is dj'ing between 12-3, i need it to automatically change so that the message would go to the new dj.

 

i know yahoo has a widget called pingbox which would work great if there was only one dj, but there are 13.

 

we have a page that dynamically updates various information such as the current dj. i have a basic plan to set up a script that would pull the name of the dj from there in order to determine where to send the message, but i don't know how to do that.

 

can anyone point me in the right direction?

Link to comment
https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/
Share on other sites

i appreciate your response, and this may be useful but i'm not sure how.  i don't see anything there that addresses my needs.  maybe i'm just missing something.

 

i'm not looking for an im bot, i'm looking to put a simple form on my site that someone fills out and then it sends a message to the yahoo im of whoever is currently dj'ing.

On step One is tells you to goto here

Simple REST API for sending IM messages/alerts and polling for IM status (presence)

 

the reason i added the bot info is because a bot does things automatically (normally based on a request or a timer) now if theirs some code that allows a bot to do IM's then the same basica code can be used for sending IM's via a form!

 

It may not be useful but i havn't read the whole thing!

I you wanted to write a pure php Yahoo IM connection script your need to look into sockets and analyse the data packets from Yahoo IM to thei server, once you have worked out how the yahoo TCP packets connect to their server. your then look at the packets for the messages..

 

the login process for YMSG is quite complex. First the client introduces itself with a message containing its username. The server responds with a rather long seed value, which looks like a mathematical equation. The client feeds this into a rather involved algorithm, along with the account's password, to produce two response values looking like variable assignments which are sent to the server. If these values match the server's expectations, the client is admitted and sent data associated with that account (such as buddy/friends lists).

 

So yes you can do it but it will take awhile

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.