User defined text color

Support area for phpBB's mChat extension
mastnacek
Posts: 25
Joined: 10 Dec 2018, 19:48

User defined text color

Post by mastnacek »

Would it be possible to allow users to set their own text color?
Big thanks for you work
User avatar
kasimi
mChat developer
Posts: 1154
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: User defined text color

Post by kasimi »

Open the color palette and Ctrl+Click a color and it will stick. Ctrl+Click again to unstick it. :+1:
mastnacek
Posts: 25
Joined: 10 Dec 2018, 19:48

Re: User defined text color

Post by mastnacek »

Kasimi: great support from you. I dont know that. I must learn my users.

Added in 21 minutes 11 seconds:
But what about mobile phone users? It would by possible have this feature on button?
User avatar
kasimi
mChat developer
Posts: 1154
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: User defined text color

Post by kasimi »

How would you suggest this feature should work on mobile?
mastnacek
Posts: 25
Joined: 10 Dec 2018, 19:48

Re: User defined text color

Post by mastnacek »

In Ajax chat is button as forexample smileys in mChat. This button open color pallete, user chose color and have colored text. There is button use defulat color.
User avatar
kasimi
mChat developer
Posts: 1154
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: User defined text color

Post by kasimi »

I implemented remembering text color on touch devices by long pressing/clicking on the color. It triggers after pressing for 500ms and it also works when clicking with the mouse. You can test it on the demo board: mchat_demo.

It will be available in the next release mChat 2.1.2. :+1:

If you want to test it on your board, here are the code changes you need to apply: https://github.com/kasimi/mChat/commit/ ... dc50ae827f
mastnacek
Posts: 25
Joined: 10 Dec 2018, 19:48

Re: User defined text color

Post by mastnacek »

You are Gaaandalf the Grey .) Im going testing on my board!

Added in 40 minutes 27 seconds:
From PC working.
From mobile i have new button for imageguru and i dont see color picker. I must with autor edit button only icon.
User avatar
kasimi
mChat developer
Posts: 1154
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: User defined text color

Post by kasimi »

I'm not sure what's happening. Are you saying the ImageUpload button removes the font color BBCode?
mastnacek
Posts: 25
Joined: 10 Dec 2018, 19:48

Re: User defined text color

Post by mastnacek »

I tried disable imageupload and color picker is still missing, maybe its responsive issue? Row is big? Or wrapping? I dont know. Maybe my fault with copy your modified code.
User avatar
kasimi
mChat developer
Posts: 1154
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: User defined text color

Post by kasimi »

Is it working on the mChat demo board? If it is then you should re-check your edits. Make sure there are no errors in the browser log (Ctrl+Shift+K in Firefox).

Who is online

Users browsing this forum: CCBot [Bot] and 0 guests