Neon Chat — native realtime chat applicaiton
I don't know nothing about extensions programming in flarum and laravel framework, but when I tried to understand the problem, I came on this page : https://infinitbility.com/how-to-solve-laravel-405-method-not-allowed-error
Maybe it can help, or not... I don't know if it has any relation !
I just realized that the problem is not in the backend, but in the frontend that sending the request. There is a POST request specifying the model id, but in this case we are creating a model, so we do not need to specify the id so the correct request should be POST /api/chatmessages
instead POST api/chatmessages/0
Thank you so much for the update! I can confirm it's all working perfectly at this end, great extension. One thing - I'd like to customise the pink colour, could you tell me where the code for this is located please? I'd just like it to sit with my forum a little cleaner.
Many thanks.
si_edgey You can use custom CSS on the admin panel for it (something like ice blue theme):
.ChatHeader
{
background-color: #111 !important; /* chat header color */
}
.ChatList
{
background-color: #e1f4fd !important; /* chatlist background color */
.header {
background-color: #649aff !important; /* chatlist header color */
}
.panel-preview
{
&:hover:not(.active) {
box-shadow: 0 0 0 3px #94ddff !important; /* primary hover color #94ddff*/
@media @phone {
background-color: #94ddff !important;
}
}
&.active {
box-shadow: 0 0 0 3px #649aff !important; /* primary color #94ddff*/
}
.message .sender {
color: #94ddff !important;
}
}
.panel-add {
&:hover {
box-shadow: 0 0 0 3px #94ddff !important;
}
}
}
I hurried with the release of the update. I shouldn't have displayed the chat on top of modal windows and sidebars. This violates their principles of focusing attention when making decisions by the user. In the next update, the chat will overlap with these windows as before.
@Xelson would it be possible to make the design a bit simpler? a chat icon on the page which opens with a click? not all users use the chat and a continuous bar interferes with the use of the actual discussions. Would be great if you could think about it, then I would also activate the chat again. itself it is a very great plugin. thank you for your effort and work
Is there a way to adjust the width of the chat?
Is it intended that the first message is shown when the chat is opened? Wouldn't it make more sense to jump to the last unread or to the end? Currently you have to scroll down manually in the respective chat.
The CSS doesn't work for me either. Also think the width could be smaller. Possibly with percent depending on the resolution? I would think 300 would be enough.
Is it possible to change the color / icon and the start page "Welcome to..."? But these are all small things! Thank you for your work!