Ajax Chat

[BUG] UCP settings for display order and cut and paste - Ajax Chat

[BUG] UCP settings for display order and cut and paste

by P_I » Tue Feb 25, 2020 10:03 pm

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.
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
User avatar
P_I
Community Team Member
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

by spaceace » Tue Feb 25, 2020 11:57 pm

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);
}
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm

Re: [BUG] UCP settings for display order and cut and paste

by P_I » Wed Feb 26, 2020 12:19 am

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
User avatar
P_I
Community Team Member
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

by spaceace » Wed Feb 26, 2020 9:50 am

that would be due to not refreshing the browser page/window for the html comments and css to be applied
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm

Re: [BUG] UCP settings for display order and cut and paste

by P_I » Wed Feb 26, 2020 1:17 pm

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.
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?
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
User avatar
P_I
Community Team Member
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

by spaceace » Wed Feb 26, 2020 3:39 pm

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 :lol:

that's why i just did it with css which was the easy/lazy way :roll:

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
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm

Re: [BUG] UCP settings for display order and cut and paste

by P_I » Wed Feb 26, 2020 3:53 pm

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
User avatar
P_I
Community Team Member
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

by spaceace » Wed Apr 15, 2020 7:10 pm

P_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.
this is all getting fixed in the next release due to the help of mrgoldy, rxu, and kasimi ;)

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 :D
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm