DJ Zen Masta K Posted March 17, 2009 Share Posted March 17, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/ Share on other sites More sharing options...
MadTechie Posted March 17, 2009 Share Posted March 17, 2009 10 second google reveals http://www.labnol.org/internet/tutorial-create-bot-for-gtalk-yahoo-messenger/4354/ Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786364 Share on other sites More sharing options...
DJ Zen Masta K Posted March 17, 2009 Author Share Posted March 17, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786372 Share on other sites More sharing options...
MadTechie Posted March 17, 2009 Share Posted March 17, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786393 Share on other sites More sharing options...
DJ Zen Masta K Posted March 17, 2009 Author Share Posted March 17, 2009 i'm very new to php, i guess what i'm looking for is guidance to do this. (this is obviously not proper php!!!!!) if (dj name is X in songinfo.php) then (send message to X yahoo im) Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786437 Share on other sites More sharing options...
MadTechie Posted March 17, 2009 Share Posted March 17, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786584 Share on other sites More sharing options...
DJ Zen Masta K Posted March 17, 2009 Author Share Posted March 17, 2009 hmm, thanks for the info. i guess i'll have to find a different solution. Quote Link to comment https://forums.phpfreaks.com/topic/149748-not-sure-where-to-begin/#findComment-786710 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.