[1.0.3] mChat Broadcast

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

[1.0.3] mChat Broadcast

Post by kasimi »

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, also compatible with phpBB 3.3.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.3.zip

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

Changelog
  • 1.0.3 - 2020-06-04
    • Fixed displaying available broadcasts in popup
    • Fixed audio sometimes not playing
    • Quoted all YAML strings
    • Fixed button layout
  • 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
Posts: 12
Joined: 20 Sep 2018, 03:43

Re: [1.0.0] mChat Broadcast

Post by Jupiter »

Can't wait to install this and try it out when I get home from work today!!!
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.0.1] mChat Broadcast

Post by kasimi »

First bug fix release 1.0.1 is already available... :D
User avatar
Jupiter
Posts: 12
Joined: 20 Sep 2018, 03:43

Re: [1.0.0] mChat Broadcast

Post by Jupiter »

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: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.0.1] mChat Broadcast

Post by kasimi »

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
Posts: 12
Joined: 20 Sep 2018, 03:43

Re: [1.0.1] mChat Broadcast

Post by Jupiter »

I had not noticed until now, but no the sound do not work.
User avatar
lopoto
Posts: 30
Joined: 03 Jun 2017, 19:20

Re: [1.0.1] mChat Broadcast

Post by lopoto »

in mchat rooms all the posts have disappeared, when I turned off the broadcast, everything returned to normal. So improvements are needed
terry2
Posts: 242
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.1] mChat Broadcast

Post by terry2 »

1.0.1 works great with all the other mchat addons.
User avatar
Jupiter
Posts: 12
Joined: 20 Sep 2018, 03:43

Re: [1.0.1] mChat Broadcast

Post by Jupiter »

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
Posts: 242
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.1] mChat Broadcast

Post by terry2 »

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

Who is online

Users browsing this forum: CCBot [Bot] and 0 guests