Patrocinadores

Curso Joomla

[quiero patrocinar]

Usuarios online

Tenemos 147 invitados y 1 miembro conectado(s)

Bienvenido, Invitado
Nombre de Usuario Contraseña: Recordarme

Messages to be displayed seem to be limited to 36.
(1 viendo) (1) Invitado
  • Página:
  • 1
  • 2

TEMA: Messages to be displayed seem to be limited to 36.

hace 11 meses Messages to be displayed seem to be limited to 36. #1

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
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #2

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
  • DESCONECTADO
  • Administrador
  • Es un reloj roto
  • Temas: 3212
  • Karma: 100
Pon aquí tu propia firma
Usuarios que han agradecido el tema: Stroeh

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #3

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
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #4

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
  • DESCONECTADO
  • Administrador
  • Es un reloj roto
  • Temas: 3212
  • Karma: 100
Pon aquí tu propia firma

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #5

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
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0
Usuarios que han agradecido el tema: JoniJnm

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #6

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
  • DESCONECTADO
  • Administrador
  • Es un reloj roto
  • Temas: 3212
  • Karma: 100
Pon aquí tu propia firma

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #7

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
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0
Última Edición: hace 11 meses Por Stroeh.

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #8

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
  • DESCONECTADO
  • Administrador
  • Es un reloj roto
  • Temas: 3212
  • Karma: 100
Pon aquí tu propia firma
Usuarios que han agradecido el tema: Stroeh

hace 11 meses Re: Messages to be displayed seem to be limited to 36. #9

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
  • DESCONECTADO
  • Visitante
  • Temas: 5
  • Karma: 0
Última Edición: hace 11 meses Por Stroeh.
Usuarios que han agradecido el tema: JoniJnm
  • Página:
  • 1
  • 2
Página generada en 0.74 segundos