Support Request SupportmChat - rainbow name dont appear

Support Section
Previous topicNext topic
User avatar

Topic Author
Warr007
Users
Users
Magic user status: Offline
Posts: 5
Joined: Aug 2nd, '22, 21:38
    Windows 10 Chrome

mChat - rainbow name dont appear

Post by Warr007 »

Your phpBB Version: 3.3.8
Your phpBB Type: Standard phpBB
Extensions installed: Yes
Your knowledge: Beginner

PHP Version: 7.4.30
MySQL Version: MySQL(i) 5.7.39

What have you done before the problem was there?
I just added the script to make group with rainbow colors on name.
Script works fine on everythings, but on chat no.


What have you already tried to solve the problem?
I just try to remove javascript from translation
'MCHAT_MENTION' => '@{username}',

but still no work.


Description and Message
So the problem is if i post me or other person who have "effect" on their name a message on chat, the name on mChat appear normal with Legend Color.
But if i refresh the page, name will be appear with rainbow effect, or glow.

Short GIF to see exactly: Image
User avatar

Sniper_E
VIP
VIP
Magic user status: Offline
Posts: 1058
Joined: Oct 14th, '14, 17:01
    Android Chrome

Re: mChat - rainbow name dont appear

Post by Sniper_E »

MChat will not parce {username} on an initial post.
You have always had to refresh to see the output of {username}
But a new user joining the site will see it right away.
Once the page is reloaded for anyone it will always show.

[ Posted using my Android device ]
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Topic Author
Warr007
Users
Users
Magic user status: Offline
Posts: 5
Joined: Aug 2nd, '22, 21:38
    Windows 10 Chrome

Re: mChat - rainbow name dont appear

Post by Warr007 »

Thanks for answer, yes of course, if you refresh the page all looks nice, but is not a way to work corectly without refresh? any idea?
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4892
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: mChat - rainbow name dont appear

Post by martin »

Tried and tested both name snippets also works with mchat.

Code: Select all

a[href$="&u=2"] {
   -webkit-animation: rainbow 4s infinite;
animation: rainbow 1s infinite; 
	
}

@-webkit-keyframes rainbow {

0% { color: #F00 }

17% { color: #FF0 }

33% { color: #0F0 }

50% { color: #0FF }

67% { color: #00F }

84% { color: #F0F }

100% { color: #F00 }

}

@-moz-keyframes  rainbow {

0% { color: #F00 }

17% { color: #FF0 }

33% { color: #0F0 }

50% { color: #0FF }

67% { color: #00F }

84% { color: #F0F }

100% { color: #F00 }

}
Image
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload
Download is here Make it easy for us to solve your issues
User avatar

Topic Author
Warr007
Users
Users
Magic user status: Offline
Posts: 5
Joined: Aug 2nd, '22, 21:38
    Windows 10 Chrome

Re: mChat - rainbow name dont appear

Post by Warr007 »

martin wrote: Aug 10th, '22, 10:19 Tried and tested both name snippets also works with mchat.

Code: Select all

a[href$="&u=2"] {
   -webkit-animation: rainbow 4s infinite;
animation: rainbow 1s infinite; 
	
}

@-webkit-keyframes rainbow {

0% { color: #F00 }

17% { color: #FF0 }

33% { color: #0F0 }

50% { color: #0FF }

67% { color: #00F }

84% { color: #F0F }

100% { color: #F00 }

}

@-moz-keyframes  rainbow {

0% { color: #F00 }

17% { color: #FF0 }

33% { color: #0F0 }

50% { color: #0FF }

67% { color: #00F }

84% { color: #F0F }

100% { color: #F00 }

}
Image
A little mention, i dont use cssmagic for rainbow, is a javascript from my theme.
Is working on colours, for example if the javascript find the color code: #00AA00 javascript put automatic for username-coloured add .rainbow from .css files from my theme.
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4892
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: mChat - rainbow name dont appear

Post by martin »

Dont matter if its added to core files or an ext the result is the same :tumbsyes:
Previous topicNext topic