[HowTo] Groups of channels (visual)

Chat rooms for mChat with optional password protection and 1-on-1 chats
Post Reply
User avatar
BanterFace
Donor
Posts: 51
Joined: 01 Feb 2017, 12:42

[HowTo] Groups of channels (visual)

#1

Post by BanterFace » 15 Aug 2018, 15:24

Requirements: 1.2.0 mChat Rooms (=3.2 phpBB).
Before:
Image
After:
Image
(sorry for Russian but i think common sense is understandable)

Steps:
1. Sort your channels (drug-n-drop)(if you're can't do this, check your user_permissions(of role, group or one user)→mchat rooms→sorting) in order you're want, but group with user-channels must be last (cause when user adds a new channel it falls on bottom of the list). For example, I made this:
Image
2.1 Open your mine .css file of style you're use. For prosilver this file is ./styles/prosilver/theme/common.css.
Add these blocks at bottom:

Code: Select all

- This code is only accessible to donors -
2.2 How to recognize id of room?
Than press Ctrl+Shift+C and click on first channel of first group.
You'll get sth like this:
Image
Look at parental <li> of your <span> with name of channel and get it's "id" (sth like mchat-room-12345), or look at bottom of window and get room's id from that.

2.3 Examle of working code:

Code: Select all

- This code is only accessible to donors -
My *id-of-first-room-of-first-group* is 1 (Кальморазговоры), *id-of-first-room-of-second-group* is 4 (Пикчи) and *id-of-first-room-of-third-group* is 23 (Кусочки текста).
3. Enjoy your grouped channels ;)

Voice4Vision
Donor
Posts: 4
Joined: 29 Dec 2017, 21:41

Re: [HowTo] Groups of channels (visual)

#2

Post by Voice4Vision » 15 Aug 2018, 16:55

This is a fantastic addition BanterFace. Thank you so very much!!! I will certainly be adding this feature to my site as soon as I can get a feel as to what rooms I should be having.

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

Re: [HowTo] Groups of channels (visual)

#3

Post by kasimi » 15 Aug 2018, 19:23

Excellent work BanterFace, thanks! :+1: stickied

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

Re: [HowTo] Groups of channels (visual)

#4

Post by terry2 » 17 Aug 2018, 08:48

Nice.

I changed the code a bit and got this using room name not id (not that it matters).

My active room flash's
Selection_007.png
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: rammstein and 1 guest