Skip to Content Skip to Menu

Doubled messages.

14 years 4 months ago #138482 by schmatzler
Doubled messages. was created by schmatzler
Sometimes I get double messages in UddeIM. This happens with messages from users and also with system messages from CB's notification system.

Most of the time I get 2 messages with the same content, but it also happened, that I got three of them.

Is there any way to get around this? Some kind of anti-flooding for example?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 4 months ago #138484 by slabbi
Replied by slabbi on topic Re:Doubled messages.
It is not a problem with uddeIM.

Some people do double clicks on SEND buttons. So the content is sent and before the browser can redirect to a different page the second click resends the same content again.

An extra check if a message has already been sent will create additional database workload which is not wanted on large sites.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

14 years 4 months ago #138485 by schmatzler
Replied by schmatzler on topic Re:Doubled messages.
Okay, I understand.

Is it possible to disable the send button after someone clicked on it?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 4 months ago #138487 by slabbi
Replied by slabbi on topic Re:Doubled messages.
Well, it should be possible with some lines of Javascript but have never tried if this fixes this problem.

Maybe you can try yourself. When the button has been clicked (onclick) disable the button. When you have a solution for that I will add it to the trunk.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

14 years 4 months ago #138488 by schmatzler
Replied by schmatzler on topic Re:Doubled messages.
Yes I found it, it works - at least visually. Have to test it now, to see if I really don't get double messages anymore.

I found this in the includes.php:

[code:1]echo "<input type='submit' name='reply' class='button' value='"._UDDEIM_SUBMIT."' /> ";[/code:1]

and changed it to this:
[code:1]
echo "<input type='submit' name='reply' class='button' onclick=\"this.disabled=true;this.value='Processing'\" value='"._UDDEIM_SUBMIT."' /> ";[/code:1]

Now I hopefully got rid of these doubleclickers, thank you :)

Post edited by: schmatzler, at: 2010/07/22 22:23

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 4 months ago #138491 by slabbi
Replied by slabbi on topic Re:Doubled messages.
Please give a feedback when it has been tested a few days.

Thanks very much.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum