Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme
  • Página:
  • 1
  • 2

TEMA: Some Questions (AJAX, Spam,..)

Re: Some Questions (AJAX, Spam,..) 7 años 7 meses ago #20196

  • ghost
  • Avatar de ghost
  • Offline
  • Visitante
  • Mensajes: 5
  • Karma: 0
Hi dazhelpwiz,

The issue number 2 has been solved. Your and Jonis tip worked on it.


New issue:

I show the user 200 messages in the shoutbox.

So if someone reads the old messages, and in the same time another user post a message, the shoultbox automatically goes to the new message.
And because this happends, the user can't read the messages properly. :whistle:

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

Re: Some Questions (AJAX, Spam,..) 7 años 7 meses ago #20209

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
The user has to keep clicked the scrollbar and, when he has readed all messages, "unclick" it. Keeping clicked => doesn't go to new messages

But if you want that the shoutbox never go to new messages, in templates/default/js/kide.php
Change
kide.ajustar_scroll = function() {
	if (kide.scrolling) return;
	if (kide.order == 'bottom')
		kide.$('KIDE_msgs').scrollTop = kide.$('KIDE_msgs').scrollHeight;
	else
		kide.$('KIDE_msgs').scrollTop = 0;
};
 
// BY
 
kide.ajustar_scroll = function() {
	/*if (kide.scrolling) return;
	if (kide.order == 'bottom')
		kide.$('KIDE_msgs').scrollTop = kide.$('KIDE_msgs').scrollHeight;
	else
		kide.$('KIDE_msgs').scrollTop = 0;*/
};
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
  • 2
Tiempo de carga de la página: 0.063 segundos