Page 1 of 1

Broadcast messages to other rooms

Posted: 30 Jan 2019, 20:05
by arek
Hello,

is it possible to broadcast messages from one room to other rooms? I would like to have such a feature there. :)

Re: Broadcast messages to other rooms

Posted: 30 Jan 2019, 20:12
by kasimi
Hi @arek and welcome. :wave:

At the moment there is no way to do that. How would you imagine such a feature to work? Can you give an example?

Re: Broadcast messages to other rooms

Posted: 04 Feb 2019, 19:28
by arek
Thank you for your response. :)

Example of wanted feature:
I have 2 rooms, Lobby and Announcement.
Messages from Announcement are displayed not only in this room, but also in Lobby (or in all other rooms).
In Announcement room only admins and moderators can post.

It would be great to have at least that limitation on admins and moderators.

Re: Broadcast messages to other rooms

Posted: 08 Feb 2019, 09:20
by kasimi
What you propose is actually two separate features.
  • Restricting write access in certain rooms to certain users. This requires major effort to integrate with phpBB's permission model. It's on my list of things to add to Rooms, but it won't happen very soon. To prevent any user from posting in a certain room, there's a code snippet here: viewtopic.php?p=1741#p1741
  • A way to broadcast messages to all rooms.
I'm not against adding a broadcasting feature but, as usual, the devil is in the detail. Some open questions:
  • UI: How would a message be broadcasted, as opposed to the usual way of sending the message only to the room currently you're in?
  • UI: How would a message be broadcasted only to public rooms, only to protected rooms, only to private rooms, or any combination of them?
  • Permissions: Do we need a permission for each of type of room? Would just one permission that allows the user to broadcast to all types of rooms work, too?