Wedge

Public area => The Pub => Features => Topic started by: Nao on March 20th, 2012, 04:22 PM

Title: Duplicate post detection?
Post by: Nao on March 20th, 2012, 04:22 PM
Silly idea or not?

Instead of disabling the submit button we could check at post time the last post by the same author in the same topic or board. If it has the same contents, just skip posting it and return to the topic.

Would solve problems that occur when clicking submit and the server is down at that precise moment.
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 04:24 PM
I don't have a problem with that :)
Title: Re: Duplicate post detection?
Post by: Pandos on March 20th, 2012, 04:28 PM
+1 :yobrother:
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 05:53 PM
Would it be worth making as a plugin first to see how well received it is?
Title: Re: Duplicate post detection?
Post by: Dragooon on March 20th, 2012, 05:56 PM
Quote from Arantor on March 20th, 2012, 05:53 PM
Would it be worth making as a plugin first to see how well received it is?
Yes...MOAR PLUGINS!
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 05:59 PM
I already have 15 in my repositories, with fragments and ideas for a few more on top :P What's another plugin between friends?[1]

Main reason is that while I like the idea, I'm not yet entirely sold on its usefulness.
 1. I suspect I'm going to make more plugins than I made for SMF, which is a slightly disturbing thought.
Title: Re: Duplicate post detection?
Post by: and on March 20th, 2012, 06:05 PM
Quote from Arantor on March 20th, 2012, 05:53 PM
Would it be worth making as a plugin first to see how well received it is?
probably yes

such a function (if not mistaken) is in vb
check for duplication of a handy feature
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 07:37 PM
As you like, Pete... ;)
Usefulness?
Just do it my way. Have a Wifi or 3G device. Type while you're moving to another place where reception isn't as good. Sit down. Press Submit. "Server not available". Oops. Moving back to that place 3 meters farther... Submit. Oh crap, it doesn't register it.

Solution: pray that you can copy the contents of your message (sometimes it'll also disable the textarea IIRC, making it impossible to copy it), press Reload, paste your post, submit.

It has happened to me quite a few times because on my porch, right where I'm used to smoking my cigarette with my iPod in hand, I'm about 30 centimetres away from the limit of my Wifi connectivity. Meaning if I bend a bit too much, I'll lose connectivity. Not fun.
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 07:43 PM
In that case, there should actually be no reason to do so. There is still a duplicate-post check being made on the server through the internal system (where it stores a unique value between form and session and checks one against the other)

I'm not really sure why the submit button actually gets disabled in that situation, there's little reason for it...
Title: Re: Duplicate post detection?
Post by: Pandos on March 20th, 2012, 08:09 PM
Useful because to get rid of crossposters / spammers. I like this idea.
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 08:26 PM
It won't solve either. The sole point of this suggestion is to prevent the same post being posted twice in the same thread. That said we could expand it to prevent that kind of spam, though I'm not sure how effective it would really be.
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 08:31 PM
Quote from Arantor on March 20th, 2012, 07:43 PM
In that case, there should actually be no reason to do so. There is still a duplicate-post check being made on the server through the internal system (where it stores a unique value between form and session and checks one against the other)

I'm not really sure why the submit button actually gets disabled in that situation, there's little reason for it...
You mean that even if we made a double submit, it wouldn't get submitted..?
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 08:38 PM
Correct. Take out the checkSubmitOnce call as part of the form and see what happens ;)
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 09:26 PM
Then what is checkSubmitOnce there for...?!
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 09:31 PM
Doing it on the client side and preventing server load... I think.
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 09:41 PM
Meh... How often does that happen!
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 09:55 PM
Not nearly that often actually. Certainly rare enough that it should be OK to drop the client side stuff.
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 10:36 PM
Yup.
I think we should make a poll out of this...?
Title: Re: Duplicate post detection?
Post by: Arantor on March 20th, 2012, 11:00 PM
Can do :)
Title: Re: Duplicate post detection?
Post by: Nao on March 20th, 2012, 11:34 PM
Thanks ;)
Title: Re: Duplicate post detection?
Post by: markham on March 21st, 2012, 04:56 PM
Quote from Nao on March 20th, 2012, 07:37 PM
As you like, Pete... ;)
Usefulness?
Just do it my way. Have a Wifi or 3G device. Type while you're moving to another place where reception isn't as good. Sit down. Press Submit. "Server not available". Oops. Moving back to that place 3 meters farther... Submit. Oh crap, it doesn't register it.

Solution: pray that you can copy the contents of your message (sometimes it'll also disable the textarea IIRC, making it impossible to copy it), press Reload, paste your post, submit.

It has happened to me quite a few times because on my porch, right where I'm used to smoking my cigarette with my iPod in hand, I'm about 30 centimetres away from the limit of my Wifi connectivity. Meaning if I bend a bit too much, I'll lose connectivity. Not fun.
Your problem is one that's has great resonance for me. I'm currently in the Philippines where internet connectivity is ... well not up to the standards we are all accustomed to, it's very third world. Much of it is via dongles using cellular technology and variable signal strength is a major issue - one moment you can have 4 or 5 bars but in an eye-blink that could drop to no bars. I used to administrate a Forum site here (running IPB) and duplicate posting was a major headache, although I now administrate two SMF-based sites where, strangely, it seems to be less of one. So I like your solution.

My two centavos :)