Private Messages
tolgaaaltas Do you know if there's a way to download the translations from https://weblate.rob006.net as .yml
files, so that I can directly drop the translations into this extension?
- Edited
OneHarryPotter I registered an account at www.vfxskill.com and tried sending a message to you (王吹风) and to ChatGPT. In both cases, sending the message failed and I got an error, but the error text is blank, so it's difficult for me to see what's wrong :/
I can think of a couple of things to try:
- Does anything show up in your error log, now?
- If you don't see anything in your error log, can you open
config.php
and setdebug
totrue
, so that I can see error messages?
Thanks, and sorry for the late reply, again.
How to change text color. Message text color.?
Hello! I love this extension! There is only one slightttt problem, however; the messages in the default flarum theme are unreadable, because the text is the same color as the background.
- Edited
Hello! We've been using this extension and love it, however, we keep getting double of the same message. Is there a way to fix that?
I was also wondering if there was a way to enable realtime chat, and if not, any other extensions that do?
Hi! A couple of solutions to problems. I'll do a PR for the second one shortly, once I figure out how...
First, the colours of the message bubbles on screen. You can fix that in CSS, and the particular CSS I settled on is hopefully generic enough that it will work for anyone. In Administration > Appearance > Custom Styles > Edit Custom CSS, I put this:
.ConversationsList .chat .chat-history .my-message div.message-text {
background: var(--control-bg-light);
color: var(--text-color);
}
.ConversationsList .chat .chat-history .other-message div.message-text {
background: var(--light-content-control-bg);
color: var(--text-color);
}
That gives a suitably muted look to the messages with good contrast, and I believe it should apply in all cases regardless of colour scheme. Feedback is welcome!
Second, the message notifications contain HTML but are being sent as text. You need to change 'text'
to 'html'
in the NewPrivateMessageBlueprint::getEmailView()
method. I see you had a comment ("// HTML?") there, so you were probably intending to do that and just didn't get around to it. The result is HTML email, which is good, though the actual formatting needs work because it's a bit messy. As I said, I'll try to do a pull request for that now.
- Edited
Seems like with the extension, basic styles need to be configured with CSS still. Compose message seems to be black text, have to change the text for the send/receive boxes as well.
erictfbat Second, the message notifications contain HTML but are being sent as text. You need to change 'text' to 'html' in the NewPrivateMessageBlueprint::getEmailView() method. I see you had a comment ("// HTML?") there, so you were probably intending to do that and just didn't get around to it. The result is HTML email, which is good, though the actual formatting needs work because it's a bit messy. As I said, I'll try to do a pull request for that now.
^^ The above is still happening - can confirm
- Edited
Hi everyone,
I've just released version 1.5.2 of this extension, which attempts to make it easy to choose custom colors for the extension!
By default, messages that you send now use the forum's primary background color and text color, and messages that you receive use a green background color with a black text color:
To change this, open your forum's administrator page, open the Private Messages panel, check the "Enable custom colors" checkbox, choose some custom colors, and click "Save Changes":
This is a breaking change for two reasons:
- The default colors have changed.
- The default CSS selectors have changed slightly, so if you're overriding the colors via CSS, you might need to rework your CSS selectors, although I hope not!
My apologies for introducing a breaking change. I try not to do this often, but in this case, I felt it was worth it.
Another big improvement is that emails are now HTML, so they look a lot better. Thank you to @erictfbat for this change! :D
Emails should now look something like this, although this can vary a lot between different email clients:
I've tested the email functionality with Outlook but haven't been able to test on Gmail, as I don't have a Gmail account. If someone upgrades and tests with Gmail, please let me know how the emails look!
I'd be grateful for any brave testers to update to the latest version and let me know how it goes
I'm also happy to add additional color customization options, if people want to be able to customize other parts of the extension.
Medelinor If you're still using this extension, the latest version should fix the issue that you found where emails had a bunch of HTML in them.
(Thanks again to @erictfbat for this )
- Edited
On second thought, I've found a way to make this be less of a breaking change!
The new behaviour in 1.5.4 is:
- If a user upgrades from 1.4.0 to 1.5.4, then the default colors will continue to be what they were in 1.4.0
- If a user installs this extension for the first time, then the new default colors are used.
Not that the CSS selectors have still changed slightly, so if you're using custom CSS, you may need to slightly adjust your CSS selectors. If you need help, just let me know!
neoncube I will give it a test in the coming days. Thanks so much for the update!
neoncube Great, thank you! I was already waiting for the changes.
I do have one comment/question though. The previous implementation of the email had used the default mail layout (at least the one of the FoF Pretty Mail extension). Would it be possible to continue to support this? Or did I just implement something incorrectly?
Why is ot not possible on a profile page to click on a button that directly the private chat opens with that specific user???