User defined text color

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

User defined text color

#1

Post by mastnacek » 11 Dec 2018, 09:32

Would it be possible to allow users to set their own text color?
Big thanks for you work

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

Re: User defined text color

#2

Post by kasimi » 11 Dec 2018, 22:11

Open the color palette and Ctrl+Click a color and it will stick. Ctrl+Click again to unstick it. :+1:

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: User defined text color

#3

Post by mastnacek » 12 Dec 2018, 06:45

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

Re: User defined text color

#4

Post by kasimi » 13 Dec 2018, 12:22

How would you suggest this feature should work on mobile?

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: User defined text color

#5

Post by mastnacek » 13 Dec 2018, 12:44

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

Re: User defined text color

#6

Post by kasimi » 14 Dec 2018, 11:40

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
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: User defined text color

#7

Post by mastnacek » 14 Dec 2018, 11:43

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

Re: User defined text color

#8

Post by kasimi » 14 Dec 2018, 12:46

I'm not sure what's happening. Are you saying the ImageUpload button removes the font color BBCode?

mastnacek
Donor
Posts: 24
Joined: 10 Dec 2018, 19:48

Re: User defined text color

#9

Post by mastnacek » 14 Dec 2018, 13:01

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

Re: User defined text color

#10

Post by kasimi » 14 Dec 2018, 13:06

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).

Post Reply

Who is online

Users browsing this forum: terry2 and 1 guest