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

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

Some Questions (AJAX, Spam,..) 7 años 8 meses ago #20144

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

Really like your shoutbox, far more the best in the market. :)

I have some issues:

1. the shoutbox isn't posting in real-time. I have to refresh, to see the new posts. How to solve that?

2. How can I delete the "last message was x minutes ago"?

3. Where are the options, to define spam? For example, only x posts in y minutes. Or maximum 3 post directly following.

4. I defined a new user-group in Joomla 2.5. This user-group is a "advanced registered" user. Want to give this usergroup a own color. Is that possible?


My system: Joomla 2.5.2, Kide-Shoutbox 1.0.1

I can provide admin access. Don't really know, if you can recognize shoutbox, pretty customized :woohoo:
El administrador ha desactivado la escritura pública.

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

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
1. In the backend of joomla. Components -> kide-chat -> options. Change COM_KIDE_DIRECT_ACCESS_T = NO.

2. Browse to here: components/com_kide/templates/default/tmpl and edit: kide.msgs.php

Comment out this line to look like this:

<div id="KIDE_msgs">
<?php //echo $this->order=='top'?$p_tiempo:$div; ?>
<div id="KIDE_output">

I had to do this as when your trying to read the shoutbox everytime it updates it makes you jump back to the top. Enabled Hours instead.

3. Not sure, I dont have pro. You could enable recaptcha.

4. I think its being worked on from one of the other posts in this forum.
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: JoniJnm, ghost

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

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
dazhelpwiz, thanks for helping :-)

2. In com_kide/js/base.js
delete
kide.show('KIDE_tiempo_p', true);

3. I will add it soon but you change it manually:
js/base.js, change
anti_flood_spam: function() {
		if (this.ban[0] != 5) {
			this.ban[0]++;
			var time = new Date();
			time = time.getTime();
			this.ban[this.ban[1]] = time;
			this.ban[1]++;
		}
		else {
			var i;
			for (i=2;i<6;i++)
				this.ban[i] = this.ban[i+1];
			var time = new Date();
			time = time.getTime();
			this.ban[6] = time;
			var aux = this.ban[6] - this.ban[2];
			if (aux < 10*1000) {
				this.val('KIDE_txt', '');
				this.$('KIDE_txt').disabled = true;
				this.ajax("baneado");
			}
		}
	},
 
 
// BY
 
 
	anti_flood_spam: function() {
		var total = this.ban_total+2;
		if (this.ban[0] != total-1) {
			this.ban[0]++;
			var time = new Date();
			time = time.getTime();
			this.ban[this.ban[1]] = time;
			this.ban[1]++;
		}
		else {
			var i;
			for (i=2;i<total;i++)
				this.ban[i] = this.ban[i+1];
			var time = new Date();
			time = time.getTime();
			this.ban[total] = time;
			var aux = this.ban[total] - this.ban[2];
			if (aux < this.ban_time*1000) {
				this.val('KIDE_txt', '');
				this.$('KIDE_txt').disabled = true;
				this.ajax("baneado");
			}
		}
	},

In helper/head.php change
kide.ban = new Array(0,2,0,0,0,0,0);
 
//by
 
	//ban user if post 4 messages in 10 seconds or less
	kide.ban_total = 4;
	kide.ban_time = 10;
	kide.ban = [];
	for (var i=0; i<this.ban_total+2; i++)
		kide.ban[i] = i == 1 ? 2 : 0;

4. No, but I will add it too
Última Edición: 7 años 8 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: ghost

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

  • ghost
  • Avatar de ghost
  • Offline
  • Visitante
  • Mensajes: 5
  • Karma: 0
Thank you dazhelpwiz and JoniJnm.

The only Issue left, is the auto-update. Direct-Access is no. Still no auto-update.

I disabled the toolbar, and I guess, that the Shoutbox "off" as standard. How can I be sure, that the shoutbox is "on"? :whistle:

Thank you. :)

PS: I can provide Admin-Access.
El administrador ha desactivado la escritura pública.

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

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
How can I be sure, that the shoutbox is "on"?
In helper/user.php change
$this->encendido = $user_config->load("encendido", 1);
//by
$this->encendido = 2;
Still no auto-update.
Can I look your site to test?
El administrador ha desactivado la escritura pública.

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

  • ghost
  • Avatar de ghost
  • Offline
  • Visitante
  • Mensajes: 5
  • Karma: 0
Hello JoniJnm,

I changed the user.php, but still no auto-update.

I send you a PM :)
El administrador ha desactivado la escritura pública.

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

  • JoniJnm
  • Avatar de JoniJnm
  • Offline
  • Administrador
  • Mensajes: 4579
  • Gracias recibidas 544
  • Karma: 160
You deleted the buttons!

Restore the file tmpl/kide.botones.php, if you want hide them change in the file:
<div id="KIDE_botones">
By
<div id="KIDE_botones" style="display:none">
Última Edición: 7 años 8 meses ago por JoniJnm.
El administrador ha desactivado la escritura pública.

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

  • ghost
  • Avatar de ghost
  • Offline
  • Visitante
  • Mensajes: 5
  • Karma: 0
Thank you JoniJnm,

this solved the issue!

One problem, is that the shoutbox always scrolls to the top, if someone post a message. I tried the tip of dazhelpwiz, but that didn't worked.

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

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

  • dazhelpwiz
  • Avatar de dazhelpwiz
  • Offline
  • Visitante
  • Mensajes: 6
  • Gracias recibidas 2
  • Karma: 1
ghost escribió:
Thank you JoniJnm,

this solved the issue!

One problem, is that the shoutbox always scrolls to the top, if someone post a message. I tried the tip of dazhelpwiz, but that didn't worked.

Thank you :)

huh wierd. I just double checked I had the right file and it is. I uncommented and the timer at the top reappeared and the skip to top happened again. I removed, issue resolved.



Did you try the other solution Jonijnm posted regarding the editing of the javascript that controls it?
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
  • 2
Tiempo de carga de la página: 0.420 segundos