Contributions > Plugins, tips, and tricks

How to create a looping notification sound

<< < (2/3) > >>

6opo9a:
Made more beautiful patch, in \js\164\users.js find:

--- Code: ---(value[2]!='chat'?this.uj(value[1]):'-'));
--- End code ---
replace to

--- Code: ---(value[2]!='chat'?this.uj(value[1]):'-'));if(value[2]!='chat')vs($u+'/sounds/new_user.wav');
--- End code ---

Or in \js\source\users.js find updateTimers: function() :

--- Code: ---setcell(this.t, row,"wait",(value[2]!='chat' ? this.getTimeSince(value[1]) : '-'));
--- End code ---
and add line after:

--- Code: ---if (value[2]!='chat') playSound(webimRoot+'/sounds/new_user.wav');
--- End code ---

joaoantonio:
Could someone help me to download a file on this site: http://flashbeep.net/#alarm . I tried this but giving error or the page simply does not load, it is not because of the signal, or my browser, I do not know what can be. the file is flashbeep_alert.swf alert category. If someone can download let me know please. And if you can send it to my emai: jasouza96@gmail.com

chickeneps:
It's now 2015 and I just got MIBEW installed. It seems to me that any alert should be looping by default. There are SO MANY REASONS why an operator would miss an initial audible alert.

I assume that MIBEW simply sends a single alert upon chat request and leaves it be. Is that correct? If so, that should be redesigned. Or at least have it controllable via the Settings menu. Huge oversight!!!

If so, can anyone update this thread to apply to the current MIBEW? The folders are wrong, and when I try to edit users.js, it's the biggest mess I've ever seen - there's no line breaks in the code.

Dmitriy Simushev:
First of all I assume that you are using Mibew 2.0.0 because 1.6.x branch is obsolete now.


--- Quote ---I assume that MIBEW simply sends a single alert upon chat request and leaves it be. Is that correct?
--- End quote ---

Yes, it's correct. Just a single sound is emitted for each new thread.


--- Quote --- If so, that should be redesigned. Or at least have it controllable via the Settings menu. Huge oversight!!!
--- End quote ---

There will be neither redesign nor option in Settings menu. If operator missed an alert it's not a technical problem. It's a problem of operator's workflow.

Nevertheless, you can use Title Notification plugin (https://mibew.org/plugins#mibew-title-notification) or create another plugin that loops sound alert to get operator's attention.


--- Quote ---The folders are wrong, and when I try to edit users.js, it's the biggest mess I've ever seen - there's no line breaks in the code.
--- End quote ---

All JavaScript files in Mibew are minified now. If you want to edit them, you should alter the sources from the official repository (https://github.com/Mibew/mibew/tree/master/src/mibew/js/source) and then rebuild Mibew (see http://docs.mibew.org/development/build-system.html for details).

chickeneps:
Thanks for the reply, I'll try what you suggested.

But going further: Personal opinion: I think you are aren't aware enough that people install MIBEW from easy-installers provided by hosters. "Rebuild from sources" or other doesn't make any sense to those people. For me, even though I might understand such things, I don't have time to fiddle with that anyway.

Regarding the looping alert thing: I think you completely misunderstood what I said. It's not a technical problem at all, it's an oversight on the software meeting normal usual human needs, which is the ultimate goal of all software in the first place.

I'm kind of stunned that you think that continual notifications are a reflection on "poor" (I'm assuming) operator workflow. I can think of many reasons why an even an excellent customer service person would might miss an initial alert. Since I don't think you are aware of these arguments, let me go down a couple strong arguments for it.

(I consider an alert being both the alert that a Chat is being requested AND that the other side has replied and is waiting for your reply. Although I think I'm mostly arguing for the initial alert.)

All I was saying was that, as the developer, this is something you should STRONGLY consider.

1) Many people are listening to music as they work, an alert can get buried in that.

2) I can imagine most people doing Chat aren't doing it for the full 8 hours they are working, often they are doing something else. That means they could be in another room temporarily and miss it, or going to the bathroom. (Since when is peeing "poor" workflow???)

3) I'm a programmer and most of the time I'm programming, which as you know requires intense concentration. I've been doing this for many years. It's not uncommon that I'll be notified to do something (a single alert) and I say "I'll get to it" and then I forget under the concentration I'm under. Then I'm reminded in some way and I do it. This isn't "poor" workflow, it's human nature. Software is supposed to HELP people, not "reward people for good habits".

In fact, during chats, I've been guilty of waiting for the other side to reply - which sometimes takes awhile - and I go off doing something else. I use a KVM switch among 4 computers and often I'm looking at another computers feedback, not the Chat computers. Then I forget all about the Chat. Sure, that's a bad habit, but what I'm pointing out is that it's easy for ANYONE who is multitasking (who isn't nowadays) to forget an initial alert on ANYTHING.

4) I used WebSiteAlive for many years, this was the default, also unchangeable, and I never thought twice about it being annoying or non-intuitive. I don't know of other chat software but I would think that ALL OF THEM do continual alerts.

5) Simple logic: looping the alert at ANY interval (5 sec, 60sec, whatever) is BETTER in EVERY WAY than just a single alert with absolutely NO downsides to the idea. If you have a single alert, than it is assumed that the operator is going to pick it up right away. If he/she doesn't, WHY NOT notify them again on a consistent basis? Isn't that obvious?

6) C'mon, this would take you 30 minutes maximum to code. Get on it, dude. =)

If I'm incorrect in my assessment, correct me. =) Thanks for your time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version