Bienvenido, Invitado

Messages to be displayed seem to be limited to 36.
(1 viendo) (1) Invitado
AbajoPágina: 12
TEMA: Messages to be displayed seem to be limited to 36.
Puntuación del post: No hay votos Votar +00
#13340
Messages to be displayed seem to be limited to 36. hace 5 Meses, 1 Semana Karma: 0
Hi!

First of all: Thank you very much for your Shoutbox, it's a nice Joomla-Extension!

But i spent already some time figuring out how you can display more than 36 messages at once in the Shoutbox-Component?
Changing the value of "Messages to show" to a higher value won't help.
Maybe you hardcoded it in your php or Configuration files? I've already been searching quite a while, but no success so far.

Btw: If you are interested in a german language file, just tell me.

Thx in advance,
Stroeh

Another
Stroeh
Visitante
Gracias dadas: 2
Gracias recibidas: 2
Mensajes: 5
Puntos: 13
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
El administrador ha deshabilitado la escritura pública.
 
Gracias
#13349
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses, 1 Semana Karma: 70
The code is:
//views/kide/view.html
$db->setQuery("SELECT * FROM #__kide ORDER BY id DESC LIMIT ".$params->get("msgs_limit", 36));
//The second parameter is used if the first is null

I will try it.

If you make a de-DE.ini (front and admin) I will add it
JoniJnm
Es un reloj roto
Administrador
Gracias dadas: 114
Gracias recibidas: 283
Mensajes: 2492
Puntos: 1607
graph
Usuario Online Presiona aquí para ver el perfil de este usuario
Sexo: Hombre www.jonijnm.es/joni-search/ Cumpleaños: 23/07
El administrador ha deshabilitado la escritura pública.
Pon aquí tu propia firma
 
1 usuario ha dado las gracias: Stroeh
Gracias
#13353
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses, 1 Semana Karma: 0
Hm, now after some more examinations i can tell that the value of "Messages to show" is working for any value less than 36. So once you set this value to a greater value this has no effect. Still there are only 36 messages -and not a single one more- displayed.

I also changed the value of "msgs_limit" in "view.html" to a greater value. I even tried to hardcode it:
$db->setQuery("SELECT * FROM #__kide ORDER BY id DESC LIMIT 200");
But still no effect.

I sent the language files to you via PM. So i fullfilled my part of the deal!

By the way: can you give me some advice how to add more smileys/emoticons into your Shoutbox. I guess i have to adapt the code, right? Which files do i have to touch? Only if you can remember "espontáneo".

Thx,
Stroeh
Stroeh
Visitante
Gracias dadas: 2
Gracias recibidas: 2
Mensajes: 5
Puntos: 13
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
El administrador ha deshabilitado la escritura pública.
 
Gracias
#13355
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses, 1 Semana Karma: 70
Fixed the "messages to show", controller.php:
//change
$var = $lastmsg->id + 1 - $params->get("msgs_limit", 36);
//by
$var = $lastmsg->id + 1 - $params->get("msgs_saved", 60);


I will try to make a system for add easyly emotes. You can add it manually from the file helper/kide.php
function getSmileys() {
return array(
"(H)" => KideHelper::include_html("iconos", "cool"),
":(" => KideHelper::include_html("iconos", "sad"),
":)" => KideHelper::include_html("iconos", "smile"),
":D" => KideHelper::include_html("iconos", "laughing"),
"xD" => KideHelper::include_html("iconos", "laughing"),
":P" => KideHelper::include_html("iconos", "tongue"),
":@" => KideHelper::include_html("iconos", "angry"),
":S" => KideHelper::include_html("iconos", "dizzy"),
":O" => KideHelper::include_html("iconos", "wassat"),
":$" => KideHelper::include_html("iconos", "blush"),
"(L)" => KideHelper::include_html("iconos", "kissing"),
"o.O" => KideHelper::include_html("iconos", "blink")
);
}
JoniJnm
Es un reloj roto
Administrador
Gracias dadas: 114
Gracias recibidas: 283
Mensajes: 2492
Puntos: 1607
graph
Usuario Online Presiona aquí para ver el perfil de este usuario
Sexo: Hombre www.jonijnm.es/joni-search/ Cumpleaños: 23/07
El administrador ha deshabilitado la escritura pública.
Pon aquí tu propia firma
 
Gracias
#13383
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses Karma: 0
Thx for your quick reply and your new version.

I installed it and everything worked fine - but somehow my problem with the messages to be shown limited to 36 is still existing. I uninstalled the old (version 0.4.3) "com_kide" and "mod_kide" before i installed the new one. I just made little changes to css-Files, chat.js, default_msgs.php and default_botones.php to adjust my needs (i.e. adjust colors, display time in front of users comments, hide "help" button). I also adjusted settings in the admin-GUI to a greater limit of messages to be displayed - but no luck so far.
So i can't see no point of failure from my point here. Also i just touched the files in the "com_kide" folder, as i do not use the module an my page atm.

I'd really appreciate if you could have a look at it again (or give me a hint what could be wrong).

Another thing: to me it looks like you forgot to add German language in "kide.xml" file. But i don't know if it's necessary, as i never developed a joomla-plugin before.

Greetings,
Stroeh
Stroeh
Visitante
Gracias dadas: 2
Gracias recibidas: 2
Mensajes: 5
Puntos: 13
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
El administrador ha deshabilitado la escritura pública.
 
1 usuario ha dado las gracias: JoniJnm
Gracias
#13388
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses Karma: 70
Added de-DE lang to xml file.

Go to phpmyadmin and make a query: "SELECT count(*)FROM jos_kide". The result should be 61 (msgs_saved + 1). Check it, and then change msgs_limit by 61 and see if the last message is showed
JoniJnm
Es un reloj roto
Administrador
Gracias dadas: 114
Gracias recibidas: 283
Mensajes: 2492
Puntos: 1607
graph
Usuario Online Presiona aquí para ver el perfil de este usuario
Sexo: Hombre www.jonijnm.es/joni-search/ Cumpleaños: 23/07
El administrador ha deshabilitado la escritura pública.
Pon aquí tu propia firma
 
Gracias
#13391
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses Karma: 0
The number of saved messages in database and in kide-backend corresponds to then number i entered into config. So that's just working fine. But the number of messages to be displayed in the shoutbox in the frontend is limited to 36, no matter which entry i write into the config (in the backend).
I also tried to adjust values in the "config.xml" in "/administrator/components/com_kide/config.xml". No effect!

So i once again tried it the "dirty way" and hardcoded the value in "view.html.php":
I changed
$db->setQuery("SELECT * FROM #__kide ORDER BY id DESC LIMIT ".$params->get("msgs_limit", 150));
to
$db->setQuery("SELECT * FROM #__kide ORDER BY id DESC LIMIT 80");
and this works.

But if you are sure that there's nothing wrong with your code, maybe i messed sth. up.
And my main concern is fullfilled, so thx anyway.

Cheers,
Stroeh
Stroeh
Visitante
Gracias dadas: 2
Gracias recibidas: 2
Mensajes: 5
Puntos: 13
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Última edición: 07/10/2009 20:47 por Stroeh.
El administrador ha deshabilitado la escritura pública.
 
Gracias
#13392
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses Karma: 70
Did you edit the msgs_limit's value from the xml file? You have to change the value from Administrator > Kide shoutbox > preferences or from the table jos_components > com_kide > params
JoniJnm
Es un reloj roto
Administrador
Gracias dadas: 114
Gracias recibidas: 283
Mensajes: 2492
Puntos: 1607
graph
Usuario Online Presiona aquí para ver el perfil de este usuario
Sexo: Hombre www.jonijnm.es/joni-search/ Cumpleaños: 23/07
El administrador ha deshabilitado la escritura pública.
Pon aquí tu propia firma
 
1 usuario ha dado las gracias: Stroeh
Gracias
#13393
Re: Messages to be displayed seem to be limited to 36. hace 5 Meses Karma: 0
Yes, that's what i did. And no effect. But i'm gonna test your advices in another Joomla-Installation now. Gonna report my results in a few secs...

EDIT: Okay, i did not test it - although i was about to do it, but then i just fof fun searched for the expression "%kide%" in the whole database and found it also in 'com_menu'. I'm not yet very firm dealing with joomla tables in database, but okay, that gotta be the menu item i created in order to call the shoutbox. When i upgraded the shoutbox i just uninstalled the component and did NOT delete this menu item. So it looks to me that this is the cause for the display limit of the shouts in the shoutbox. Here are the entries of the row "params" in table jos_menu:

solo_registrados=
msgs_limit=36
msgs_saved=60
max_word=20
max_letters=2000
sesion_time=10
refresh_time=5
refresh_time_sesion=60
perfil_link=
page_title=
show_page_title=1
pageclass_sfx=
menu_image=-1
secure=0


So it looks to me as it did NOT adjust my new settings.

Okay, looks like I got it wrong - now i found that i can adjust the settings as well in "administrator -> components -> kide shoutbox" and again in the advanced settings of the menu entry. Gotta admit, that i did not have a look at these settings there. I assume the settings in the components menu work as a template for new menu items, but these do not adjust to changes in the component...

Thx for your help and time!
Stroeh
Stroeh
Visitante
Gracias dadas: 2
Gracias recibidas: 2
Mensajes: 5
Puntos: 13
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Última edición: 08/10/2009 00:43 por Stroeh.
El administrador ha deshabilitado la escritura pública.
 
1 usuario ha dado las gracias: JoniJnm
Gracias
ArribaPágina: 12
Post Relacionados
TítuloAutorFechaSimilitud
Colors: turn offslepoy09/01/2010 21:13%5
HEY AQUI MI PROBLEMATNG21/07/2008 23:59%5
hey! i need help...tel l01/02/2010 21:49%5