I'd like to provide some kind of alert when a user enters the chatroom. My chatroom has long periods of no activity and it would be nice to have some kind of audio alert when someone entered the room. Can those familiar with this module quickly tell me if this is relatively doable? If so, can the authors provide some general hints on how to modify the module and make this happen? I'm willing to supply and write the patch. Thanks!

Comments

Steve Dondley’s picture

Assigned: Unassigned » Steve Dondley
Status: Active » Postponed

I was able to get this working through a little hack. When I get time to write something better, I will post it up.

darren oh’s picture

Assigned: Steve Dondley » darren oh

Specification for official feature:

  1. Alerts should be available both for new users and new messages.
  2. Alerts should appear only when the chat window is not active.
  3. The alert should contain an ignore button and a go to chat button that brings the chat window to the front when pressed.
  4. An alert disappears if no button is pressed for a period of time or if another alert from the same chat appears.
  5. Users can turn alerts on and off.
darren oh’s picture

Category: support » feature
Steve Dondley’s picture

I would like to add one other spec:

1) The alert should be both visual and aural. Visual in case the user has speakers turned off, aural in case they are across the room.

darren oh’s picture

Status: Postponed » Active

An alert would be aural if the browser was configured for it. Do you mean that a specific sound file should be played?

Steve Dondley’s picture

Yeah, some kind of unique sound would be ideal.

In IE, you get a single, quick piano note to play with an alert box by default. With FF, I got nothing. And I don't know how to configure FF to play a sound with a regular alert box. I'm sure it can be done but that's a hassle. I can only assume other users will be in the same boat and 99% of folks aren't going to go out of their way how to figure it out.

So, in my opinion, and if it's not too much trouble, having a small audio file get downloaded to a user's computer and have it play when the alert comes up would be ideal.

darren oh’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev

Does anyone have a free audio file to suggest?

darren oh’s picture

Status: Active » Fixed

Added in CVS commit 72939. Rather than using an alert box, I made the window come to the front.

Anonymous’s picture

Status: Fixed » Closed (fixed)