[1.0.2] mChat Broadcast

Adds a button to mChat that plays a sound for all mChat users
User avatar
kasimi
mChat developer
Posts: 767
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

[1.0.2] mChat Broadcast

#1

Post by kasimi » 12 Oct 2018, 16:11

mChat add-on
Broadcast


Inspired by Jupiter in the support section, this extension allows designated users to play a sound for all active mChat readers. It adds a new user-based permission Can broadcast to the mChat permissions tab to allow only certain users to use this feature. The extension respects each user's sound preferences. This means that if a user has disabled mChat sounds in the UCP or has sound switched off in mChat's navbar options, the broadcast is not played for that user.

Screenshots
  • A new button next to the input field

    Image
  • A popup displays all available sounds to play

    Image
  • ACP settings to set up your sounds

    Image

Requirements
  • PHP at least 5.4.7
  • phpBB at least 3.2.0
  • mChat at least 2.1.0

Download

This extension is only available to Donors. How to get access.

phpbb-ext-mchat-broadcast-1.0.2.zip

How to install, update and uninstall extensions: https://www.phpbb.com/extensions/installing/
Install path: ext/kasimi/mchatbroadcast/

Changelog
  • 1.0.2 - 2018-10-14
    • Prevent double plays
    • Don't live update edited & deleted messages if ACP option is off
    • Improved button layout on mobile
    • Removed empty src attribute (could cause browser warning)
    • Run JavaScript after mChat has been fully initialized
  • 1.0.1 - 2018-10-12
    • Fixed normalizing relative broadcast URLs
  • 1.0.0 - 2018-10-12
    • First release
You do not have the required permissions to view the files attached to this post.

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

Re: [1.0.0] mChat Broadcast

#2

Post by Jupiter » 12 Oct 2018, 16:35

Can't wait to install this and try it out when I get home from work today!!!

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

Re: [1.0.1] mChat Broadcast

#3

Post by kasimi » 12 Oct 2018, 16:41

First bug fix release 1.0.1 is already available... :D

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

Re: [1.0.0] mChat Broadcast

#4

Post by Jupiter » 12 Oct 2018, 18:32

A few things...

IN the mchat.broadcast.css file, I recommend changing the padding from 150px to 75px ... Otherwise the button on mobile is skinny and tall.

.mchat-broadcast-buttons {
display: flex;
flex-direction: column;
padding: 25px 75px;
}


Forgot the second thing...

Will it work on Mobile? RIght now I am not getting any audio when I click the button on my phone. Just on desktop.

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

Re: [1.0.1] mChat Broadcast

#5

Post by kasimi » 12 Oct 2018, 18:58

Do the regular mChat sounds work for you on mobile? Add, edit and delete sounds? This extension uses the same mechanisms so it should work the same.

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

Re: [1.0.1] mChat Broadcast

#6

Post by Jupiter » 12 Oct 2018, 19:07

I had not noticed until now, but no the sound do not work.

User avatar
lopoto
Donor
Posts: 24
Joined: 03 Jun 2017, 19:20

Re: [1.0.1] mChat Broadcast

#7

Post by lopoto » 12 Oct 2018, 21:58

in mchat rooms all the posts have disappeared, when I turned off the broadcast, everything returned to normal. So improvements are needed

terry2
Donor
Posts: 154
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.1] mChat Broadcast

#8

Post by terry2 » 12 Oct 2018, 23:29

1.0.1 works great with all the other mchat addons.

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

Re: [1.0.1] mChat Broadcast

#9

Post by Jupiter » 12 Oct 2018, 23:36

So here is what I have found after some testing...

Everything works from my point on the desktop. When I click the sound, it plays just the way I want. But things are different for other chatters.

When another user enters the chat. They hear the most recent sound played, even if I have not played that sound since they entered the chat. Actually I had not played a sound in at least 5 minutes and a new user entered chat, that person heard the sound right away. And that sound played over and over for them. It does not stop playing until I play a new sound. That new sound will play over and over for them as well. Just the one time for me.

So... strange behavior with the audio and other users.

terry2
Donor
Posts: 154
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.1] mChat Broadcast

#10

Post by terry2 » 13 Oct 2018, 00:03

i got sound on desktop and mobile and no effects on any other mchat addon i use (so far)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests