[BUG] UCP settings for display order and cut and paste - Ajax Chat
[BUG] UCP settings for display order and cut and paste
The UCP->AJAX CHAT setting for Display newest chat messages in the top or bottom of chat. is helpful. Unfortunately when I try to either cut and paste or print the chat window, the order of chat messages is ALWAYS from the top, i.e. most recent message at the top.
The use case is trying to capture the chat session for posting into another topic and it would be easiest to read if the chat transcript was chronological.
The use case is trying to capture the chat session for posting into another topic and it would be easiest to read if the chat transcript was chronological.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
-
- Community Team Member
- Posts: 2526
- Joined: Tue Mar 01, 2011 8:35 pm
- Location: Western Canada 🇨🇦
Re: [BUG] UCP settings for display order and cut and paste
not really a bug as the reverse order to make the newest messages on the bottom is done with css and not PHP or js like in other chats using this
Code: Select all
.chat-messages-down {
-webkit-transform: scaleY(-1);
transform: scaleY(-1);
}
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm
Re: [BUG] UCP settings for display order and cut and paste
During testing we actually noticed another weird artifact, if you change the setting while the chat is open, the newer messages actually display upside down.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
-
- Community Team Member
- Posts: 2526
- Joined: Tue Mar 01, 2011 8:35 pm
- Location: Western Canada 🇨🇦
Re: [BUG] UCP settings for display order and cut and paste
that would be due to not refreshing the browser page/window for the html comments and css to be applied
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm
Re: [BUG] UCP settings for display order and cut and paste
Is there a local code change I could make that would allow us to capture (cut and paste or print) the chat session in chronological order?P_I wrote: The use case is trying to capture the chat session for posting into another topic and it would be easiest to read if the chat transcript was chronological.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
-
- Community Team Member
- Posts: 2526
- Joined: Tue Mar 01, 2011 8:35 pm
- Location: Western Canada 🇨🇦
Re: [BUG] UCP settings for display order and cut and paste
if i'm not mistaken, the sql would have to be rewritten and called in another function or condition. i attempted to do that originally but failed miserably
that's why i just did it with css which was the easy/lazy way
i plan to do a bit of work on my chat extension but just waiting to see the list of changes i have to make to pass validation first which i hope is not too big this time
that's why i just did it with css which was the easy/lazy way
i plan to do a bit of work on my chat extension but just waiting to see the list of changes i have to make to pass validation first which i hope is not too big this time
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm
Re: [BUG] UCP settings for display order and cut and paste
Thanks for the hints on where to look. I will take a look through the code to see if I can find a solution.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
-
- Community Team Member
- Posts: 2526
- Joined: Tue Mar 01, 2011 8:35 pm
- Location: Western Canada 🇨🇦
Re: [BUG] UCP settings for display order and cut and paste
this is all getting fixed in the next release due to the help of mrgoldy, rxu, and kasimiP_I wrote:Thanks for the hints on where to look. I will take a look through the code to see if I can find a solution.
also, the list of what needs to be fixed is pretty small and provided i get the html and css done that i want to change, i might have it back in for validation by early next week i hope
-
- Registered User
- Posts: 1999
- Joined: Wed Jan 30, 2008 8:50 pm