Skip to main content
Topic: [ADDON] Double Post Stopper (Read 9016 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[ADDON] Double Post Stopper

Double Post Stopper 1.0



Introduction:

Stop users from double posting and bumping/spamming topics.
  • Setup this mod at Administration Center » Add-on Settings » Miscellaneous.
  • Removes Quick Reply if a bump is not allowed
    • Does NOT remove the 'Reply' buttons.
    • This is intentional and is set up to facilitate users receiving the error message, rather than asking (repeatedly) "Why can't I reply?"
  • The applicable group threshold is the lowest in the user's groups.
    • Global moderators get 1 hour while newbies have 3 days to wait.
    • If a newbie is also a global moderator, then their wait time is 1 hour

Requires PHP 5.5 or newer to run

Please consider donating if you use this; I'd greatly appreciate it!


http://addons.elkarte.net/enhancement/Double-Post-Stopper.html

Re: Double Post Stopper

Reply #1

Nice job !

Re: Double Post Stopper

Reply #2

That was fast, thank you @live627‍ 
sorry for my bad english

Re: Double Post Stopper

Reply #3

And thank you @radu81 for the donation. :)
LiveGallery - Simple gallery addon for ElkArte

Re: Double Post Stopper

Reply #4

You are welcome, I was looking for a similar addon since I joined Elkarte :)
http://www.elkarte.net/community/index.php?topic=2226.0

The addon is working fine, but I am getting a lot of erors in Elkarte error log:
Guest
Type of error: General
2: min(): Array must contain at least one element
File: /sources/subs/DoublePostStopper.php
Line: 98

I set 0 hours for guests, all errors are from guests, not from users
sorry for my bad english

Re: Double Post Stopper

Reply #5

Does this file fix the issue? (It goes in ./sources/subs)

Re: Double Post Stopper

Reply #6

Yep, no more errors. Thanks again 
sorry for my bad english

Re: Double Post Stopper

Reply #7

Cool.
LiveGallery - Simple gallery addon for ElkArte

Re: Double Post Stopper

Reply #8

I have two things to report:
  • I set 2 hours for all my membergroups, but if I don't set a time for guests the addon is not stopping double posting for members. I think is good to mention this since it took me some time to understand ;)
  • I noticed that it also hides the "Quick Edit" button. I think this should be visible, since the Modify button is visible in "More..." options.
  • Could be a third option, a little bit difficult, let's say I want to post 20 attachments, but my forum is set to max 10 attachments per post, so in this case I need to make 2 consecutve posts. Is there a quick way to add a condition, if the previous post has reached the maximum number of attachments then allow double post.
sorry for my bad english

Re: Double Post Stopper

Reply #9

QuoteI don't set a time for guests the addon is not stopping double posting for members
I can't reproduce that. Definitely a bug though.

Quoteit also hides the "Quick Edit" button
@Spuds does disabling quick reply also disable quick edit?
LiveGallery - Simple gallery addon for ElkArte

Re: Double Post Stopper

Reply #10

Just one question:

what do I need to set at "max time to edit a post" in Posts & Topics settings?

Or is this irrelevant with this mod?

Re: Double Post Stopper

Reply #11

I don't think its relevant to this topic. I may move it to support later.

Anyway, you should set your preferred edit time or enter zero to disable editing a post. To modify a post without any time limit, we have another addon for that.

Re: Double Post Stopper

Reply #12

That setting does  not affect this addon.
LiveGallery - Simple gallery addon for ElkArte

Re: Double Post Stopper

Reply #13

Why shouldn't this be relevant to this topic?

It's a question of this mod and how it should be set.

So I set edit time to 0 and in the mod 15 minutes, but they can double post within 5 seconds. So this mod isn't working.

 

Re: Double Post Stopper

Reply #14

I just tested on 1.1 RC2, it installs without errors, but when I try to save the settings of this addon I get an error:

str_split() expects parameter 1 to be string, array given
sorry for my bad english