Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme

TEMA: Message direction

Message direction 9 años 8 meses ago #14900

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
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 :blush:

thank you :)
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 8 meses ago #14908

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
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 ^^
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 8 meses ago #14910

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
excellent!

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

Thank you for your fast reply :)
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 8 meses ago #14915

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
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
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 7 meses ago #14920

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
Thanks Joni

I ll test out the zip and post back :)
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 7 meses ago #14924

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
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!
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 7 meses ago #14928

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
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);
Última Edición: 9 años 7 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 7 meses ago #14929

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
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!
El administrador ha desactivado la escritura pública.

Re: Message direction 9 años 7 meses ago #14937

  • michalip
  • Avatar de michalip
  • Offline
  • Visitante
  • Mensajes: 6
  • Karma: 0
Hi

seems the addition in helper.php did the trick

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

thanks again
El administrador ha desactivado la escritura pública.
Tiempo de carga de la página: 0.070 segundos