color by images

Adds a colored banner next to each user name in mChat, indicating the user’s last activity
Post Reply
rammstein
Donor
Posts: 20
Joined: 13 Jan 2018, 01:11

color by images

#1

Post by rammstein » 12 Jun 2018, 19:39

good evening kisimi how are you?
I have a small question would it be possible to change the color by an image?

I thank you for your answer

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

Re: color by images

#2

Post by kasimi » 13 Jun 2018, 13:05

Hi rammstein :wave:

I might add this feature in the future, but for now you can add this CSS at the bottom of ext/kasimi/mchatonlinebanners/styles/all/theme/mchat.onlinebanners.css:

Code: Select all

.mchat-message[data-mchat-banner="123"] .username::before,
.mchat-message[data-mchat-banner="123"] .username-coloured::before {
    content: url("http://some.cool/icon.jpg");
}
Replace the 123 with your banner ID. To find the banner ID, edit the banner in the ACP and look for &banner=ID in the URL.

rammstein
Donor
Posts: 20
Joined: 13 Jan 2018, 01:11

Re: color by images

#3

Post by rammstein » 13 Jun 2018, 16:13

super his walk very well thank you

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest