Welcome, Guest
Username Password: Remember me

Message direction
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Message direction

Message direction 2 years, 1 month ago #14900

Hola!

I love kide

Just wanted to ask if it is possible to change the direction of the messages from top (old) to bottom (new msgs)

otherwise please tell me which file , because I dont speak spanish

thank you
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0

Re: Message direction 2 years, 1 month ago #14908

Hi michalip,

It's hard because I need a function in javascript that allow insert content after a tag (there is only one to insert before). I could use mootools or javascript, but I dont want use it because later there are errors with others modules.

I will try to find a solution ^^
  • JoniJnm
  • OFFLINE
  • Administrador
  • Posts: 4297
  • Karma: 148

Re: Message direction 2 years, 1 month ago #14910

excellent!

I would be happy to test any solution you try on many templates/components

Thank you for your fast reply
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0

Re: Message direction 2 years, 1 month ago #14915

Hi, I have done it, you can download and test the com from:
www.jonijnm.es/all/tmp/kide-unzip.zip

Or live:
www.jonijnm.es/web/chat.html
  • JoniJnm
  • OFFLINE
  • Administrador
  • Posts: 4297
  • Karma: 148

Re: Message direction 2 years, 1 month ago #14920

Thanks Joni

I ll test out the zip and post back
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0

Re: Message direction 2 years, 1 month ago #14924

Hi Joni

Thanks for your update:)

Unfortunately there is a strange behavior.

The new messages are at the bottom
When you click somewhere on the page (menu link) then all the messages are displayed like bottom=old msgs and top=new msgs BUT when you type something it is written again new in the bottom.


I think this is something to do with the query which gets the saved msgs from the DB in ASC/DESC order right ?

Anyway thanks again, and let me know what you think

--Also is it difficult to put this as Option in the configuration?
1 radio button to control the direction of msgs up/down

gracias!
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0

Re: Message direction 2 years, 1 month ago #14928

Hi,

Can I look your site? (Add it in your profile, please). The messages are loaded with DESC, but later I use the function krsort(), do you know it? it allows sort a array (k = by key, r = reverse).

The button, I will put it

---- Edit

I forget add the function in the module. In the helper.php search:
$msgs = $db->loadObjectList();

And add after:
krsort($msgs);
  • JoniJnm
  • OFFLINE
  • Administrador
  • Posts: 4297
  • Karma: 148
Last Edit: 2 years, 1 month ago by JoniJnm.

Re: Message direction 2 years, 1 month ago #14929

Hi

Thanks for your replies again.


1) I'll unistall, clean the FileSystem and DB and reinstall because you gave me v0.63 but in the link it still says v062 "Kide Shoutbox v0.6.2". I understand perhaps you didnt update this value but i will still reinstall to make sure
2) I ll edit the helper file as well
3) if the problem is still there I ll set up the user for you - no problem

Gracias!
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0

Re: Message direction 2 years, 1 month ago #14937

Hi

seems the addition in helper.php did the trick

I'll test more to make sure when more users join

thanks again
  • michalip
  • OFFLINE
  • Visitante
  • Posts: 6
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.33 seconds