A sound button?

Support area for phpBB's mChat extension
Post Reply
User avatar
Jupiter
Donor
Posts: 11
Joined: 20 Sep 2018, 03:43
Contact:

A sound button?

#1

Post by Jupiter » 09 Oct 2018, 22:58

A strange request...

mChat was a very popular addition to my college hockey website. It was used a ton during the games for live banter this past weekend.

Years ago there was something called "FlashChat". That chat had a cool feature. Basically it had a button in which users could click and a sound would play for all the participating people in chat. So in my case, I programmed that button to play the school song when we scored a goal.

Anyway... I know sounds can be used in mChat. But is it possible to have a button that activates a sound file and plays it for all on mChat? I would just love to have a button to click and it would play the school song .mp3

I think a feature like this would be pretty popular for certain boards. Even better if only certain users had permissions to use it.

Is something like this even possible?

User avatar
kasimi
mChat developer
Posts: 798
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: A sound button?

#2

Post by kasimi » 10 Oct 2018, 17:44

Hi Jupiter :wave:

Since mChat 2.1.0 this is definitely possible. Have you already upgraded to that version?

Actually I've already implemented a similar feature in a private mChat add-on extension. I'll have to check how much code from there I could reuse and what needs to be added to make it fit your description. A new permission would have to be added for example, but that should be easy.

Making it a donors-only extension wouldn't scare you away, would it? :twisted:

User avatar
Jupiter
Donor
Posts: 11
Joined: 20 Sep 2018, 03:43
Contact:

Re: A sound button?

#3

Post by Jupiter » 10 Oct 2018, 17:54

I have the most recent version...

Adding a new permission is not a big deal. I just do not want just anyone in chat to be able to "ring the bell" so to speak. If this sound button was allowed by only certain group members, that would work best.

I am not scared aware from a Donors only type of extension... My users would just LOVE this type of addition to the chat. Even better would be the ability to add multiple audio buttons. That would be just spectacular!

User avatar
kasimi
mChat developer
Posts: 798
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: A sound button?

#4

Post by kasimi » 10 Oct 2018, 18:01

A permission to use the button makes perfect sense. Without it there would be chaos, no doubt. :D

Adding multiple sounds doesn't make it any more difficult. I'm thinking of adding a new setting to mChat's global settings page in the ACP where you set up the URLs for the sound file. Is that what you had in mind too?

User avatar
Jupiter
Donor
Posts: 11
Joined: 20 Sep 2018, 03:43
Contact:

Re: A sound button?

#5

Post by Jupiter » 10 Oct 2018, 18:09

kasimi wrote:
10 Oct 2018, 18:01
Adding multiple sounds doesn't make it any more difficult. I'm thinking of adding a new setting to mChat's global settings page in the ACP where you set up the URLs for the sound file. Is that what you had in mind too?
Exactly!

You could have an "add an audio button" of some sorts. Be able to label the button. Then assign the URL for the MP3. Seems that would work best. Then those buttons would be at the bottom of the chat and would only be seen by those with permissions. But would be heard by all if clicked.

User avatar
kasimi
mChat developer
Posts: 798
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: A sound button?

#6

Post by kasimi » 10 Oct 2018, 18:10

Sounds reasonable. I'll look into it when I get a chance. :+1:

User avatar
Jupiter
Donor
Posts: 11
Joined: 20 Sep 2018, 03:43
Contact:

Re: A sound button?

#7

Post by Jupiter » 11 Oct 2018, 13:30

kasimi wrote:
10 Oct 2018, 17:44
Making it a donors-only extension wouldn't scare you away, would it? :twisted:
Done!

User avatar
kasimi
mChat developer
Posts: 798
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: A sound button?

#8

Post by kasimi » 12 Oct 2018, 16:11

Thanks. :beer: Check it out: viewtopic.php?f=35&t=294

Post Reply

Who is online

Users browsing this forum: terry2 and 0 guests