nhok3296 Cool, thank you! 🙂 I've just added the Vietnamese translations, although they haven't been released yet.

By the way, I added a new piece of text in the latest version: message_read: Message has been read

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 set debug to true, so that I can see error messages?

Thanks, and sorry for the late reply, again.

erictfbat Ah, indeed, I'd forgotten to change that link! XD Thanks! 🙂 This is now fixed but hasn't yet been released.

8 days later

Mirzaagha At the moment, you'd need to write some custom CSS. The extension doesn't yet have a setting for this.

19 days later

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.

9 days later
  • 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?

12 days later

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.

    15 days later

    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

    a month later

    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:

    https://private-user-images.githubusercontent.com/10658081/427420160-bc6c1b40-28ee-4fde-9d5e-7fa26aa0ea0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDMxNDU4MzUsIm5iZiI6MTc0MzE0NTUzNSwicGF0aCI6Ii8xMDY1ODA4MS80Mjc0MjAxNjAtYmM2YzFiNDAtMjhlZS00ZmRlLTlkNWUtN2ZhMjZhYTBlYTBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzI4VDA3MDUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5NWFjODJhZjA2NGU2Nzk5NmQ3Nzg0OWQzNTZhZjQxZGMyMzZkODMwNjIzZDZmZWYzMjkyNDU4M2Q5NjYzNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TYTYpLQH4VZp5KkJ2JELquY7CA7p6OUo1Eus9hdt6wg

    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":
    https://private-user-images.githubusercontent.com/10658081/427414403-de7dfd80-7ac4-46a1-aadc-752237e492e9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDMxNDU4MzUsIm5iZiI6MTc0MzE0NTUzNSwicGF0aCI6Ii8xMDY1ODA4MS80Mjc0MTQ0MDMtZGU3ZGZkODAtN2FjNC00NmExLWFhZGMtNzUyMjM3ZTQ5MmU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzI4VDA3MDUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxMjlmNDMzN2Y5MWVjMTMyZjQ1ZWI1MzM0OGIwNTM3YzViNjU5MWU5YzlhM2JiNTY4OWU2ZmRiOThjOWY1ZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.eaXPV7AXCUu6Jyxq8oZH948cRPlyFuSsymNsTr69ka0

    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:

    https://private-user-images.githubusercontent.com/10658081/427881369-f8f5bc32-2212-42ff-9298-e9df5cff7e83.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDMxNDY3NDksIm5iZiI6MTc0MzE0NjQ0OSwicGF0aCI6Ii8xMDY1ODA4MS80Mjc4ODEzNjktZjhmNWJjMzItMjIxMi00MmZmLTkyOTgtZTlkZjVjZmY3ZTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzI4VDA3MjA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwOWI2MzYyMTRlOTE5MTQ2YzkyMDAyYjg0ZTAwZjM0OTM3MmRkY2JlOGNhNWM1MDYwZmE4ODBhOTZiMmZiNTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8BwTHGl7_NkIU84XZBYESqc-PHnG6XR5FpzElmm6fUY

    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.

      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 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?

      5 days later

      Why is ot not possible on a profile page to click on a button that directly the private chat opens with that specific user???