color by images

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

color by images

Post by rammstein »

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

Re: color by images

Post by kasimi »

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
Posts: 55
Joined: 13 Jan 2018, 01:11

Re: color by images

Post by rammstein »

super his walk very well thank you
miri4ever
Donor
Posts: 27
Joined: 16 Aug 2020, 00:33
Location: Germany

Re: color by images

Post by miri4ever »

On dark styles it looks this way for me:

Ok its not a hard deal to fix the hard coded color insde. I try to make it transparent and how it looks then. Just want to mention what I found from my views.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: CCBot [Bot] and 1 guest