gregoryhu Posted February 28, 2007 Share Posted February 28, 2007 I built a Apache -Php - Mysql 5.0.24 forum and i need to get a sound or something when a user logs in or when he publishes something How can i do this? Any ideas? is it possible? ??? Quote Link to comment https://forums.phpfreaks.com/topic/40621-alert-me-when-a-user-logs-in/ Share on other sites More sharing options...
btherl Posted March 1, 2007 Share Posted March 1, 2007 How about having the forum send you an email, then setting your email client to make the sound? Quote Link to comment https://forums.phpfreaks.com/topic/40621-alert-me-when-a-user-logs-in/#findComment-196607 Share on other sites More sharing options...
bwochinski Posted March 1, 2007 Share Posted March 1, 2007 I'm certain it can be done... One way I can think of: Use AJAX (or even just meta refresh tag) to run a script every X seconds (like every few minutes or so) which runs a select against the user table and/or posts table and checks the most recently added/updated row (by datetime). If the datetime has been updated since the last check, then a change has happened, and play the sound (probably need flash to make that seamless). If you wanted this to only happen for a specific user(s), you can of course take that into account in the SELECT. Quote Link to comment https://forums.phpfreaks.com/topic/40621-alert-me-when-a-user-logs-in/#findComment-196642 Share on other sites More sharing options...
MadTechie Posted March 1, 2007 Share Posted March 1, 2007 have the forum email you like btherl said, if you make a ton of calls to your site your drain bandwidth and theirs really no need to, remember KISS (Keep It Simple Stupid) Quote Link to comment https://forums.phpfreaks.com/topic/40621-alert-me-when-a-user-logs-in/#findComment-196651 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.