Hello, my website is plenty of duplicated posts in the shoutbox because of the delay between the moment when the user clicks the submit button and when the post is shown. So users may clic 2 or even 3 times before they see their posts.
Maybe if I could insert something like onclick="this.disabled=true;" it will prevent double post but when the post appears the submit should be enabled again..

Well, I'm just supposing.. I don't really know what I can do about this, but the problem is I want to prevent duplicate posts.

Thank you and sorry if there are english errors.

José A. Carvallo

CommentFileSizeAuthor
#1 shoutbox-duplicatepost.patch2.41 KBschturdark

Comments

schturdark’s picture

StatusFileSize
new2.41 KB

Hi,

I have tried using the following code (based on blueprint theme) so that the button will be disabled when user submitted the button and a word "saving" appears until the shout box is refreshed. The file that I modify is the js file, shoutbox-form.js.

It is just a very crude implementation to prevent the duplicate post.

Regards,

Valent

disterics’s picture

Version: 5.x-1.x-dev » master

Pushing to next release.

disterics’s picture

Status: Active » Fixed

There is a fix in both 5.x and 6.x

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.