• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

An idea to stop double posts...

BoberFett

Lifer
I'm not a Cold Fusion developer, so I'm not even sure if this is possible. I'd assume though that you have a way in CF of generating a GUID. If so, couldn't you send a GUID back in the HTML for each reply, private message, etc. Then when a reply was sent, return the GUID which will then be inserted in the database along with the message information. Then just make the GUID field unique.

Just an idea, do with it what you will.
 
na i think it'd be easier to just check on each post submission if the exact same post was made within the previos minute or so.
 
one of the ubb sites I go to has it so it just won't allow you to post twice within like 10 seconds or somehting. Don't remember the exact time but it does prevent double posts.
 
Why have a 10 second limit? Why ot just compare it to the previous post and reject if they're the same? Seems just too easy really....

Seb
 
I suggested a GUID because it's faster than comparing a huge string, such as the text of the message since it's a unique value.
 
checking with the last wont work because there are many people posting at once so in the 1/1000 of a second between this and the second post which are double there might be 2 other postes on different threads or even the same thread. you have to do what the first guy offered olthough i have no idea what it is. it is faster by his explanation than actualy checking it with each post if its the same...
 
Yeah, a GUID would probably be the most efficient way of doing it.... I had another idea for this. I haven't touched javascript in a while, but is it possible to "disable" a button in js? If so, then just make the button disabled after it is clicked to submit the form...

If this doesn't work then I like the GUID idea 🙂
 
actually, checking the last work could be done on strict client side by using a cookie that over writes the previous cookie but before it does it compares itself to the old cookie. They would have some kind of checksum on it and if they match, the post does not occur...
 
Back
Top