Two own chat message colors.

Support area for phpBB's mChat extension
Post Reply
victor
Donor
Posts: 14
Joined: 31 Mar 2017, 16:47

Two own chat message colors.

#1

Post by victor » 14 May 2018, 12:26

Hey :)

I need mchat to have its own (forum-independent) chat message colors.
I know that you need to edit chat.css. But I do not know what code to insert.

https://zapodaj.net/cff24fceb2e79.jpg.html

Anyone help?

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

Re: Two own chat message colors.

#2

Post by kasimi » 14 May 2018, 13:29

I'm not sure what you mean. Do you want to give each user a different color? That would need quite a lot of code, maybe even a new add-on extension rather than a code edit.

As your screenshot shows a user message and a notification message: if you want only notification messages to have a different color, try this CSS rule:

Code: Select all

.mchat-notification-message .mchat-text {
	color: green;
}

victor
Donor
Posts: 14
Joined: 31 Mar 2017, 16:47

Re: Two own chat message colors.

#3

Post by victor » 14 May 2018, 14:20

No, my problem is different. I apologize for the confusion but my English is weak and I have a problem to explain it.

I need the post color to be different than the default for the forum. I mean the post background in mchat.

Currently, the colors are borrowed from the style of the forum (color.css), and I would like to set a different background color for all mchat messages.

Do you understand what I mean? : D

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

Re: Two own chat message colors.

#4

Post by kasimi » 14 May 2018, 17:14

Yes, now I got it. :) Have a look here: viewtopic.php?p=995#p995 and use background: yellow; for example, or use the extension linked later in that topic if you want to use a background image.

victor
Donor
Posts: 14
Joined: 31 Mar 2017, 16:47

Re: Two own chat message colors.

#5

Post by victor » 17 May 2018, 10:59

Thx Kasimi :+1: :beer:

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests