1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post Friction [Paid] 1.3.2

Slowdown some types of "spammy" posting.

  1. Xon

    Xon Well-Known Member

    Xon submitted a new resource:

    Post Friction - Slowdown some types of "spammy" posting.

    Read more about this resource...
     
  2. Xon

    Xon Well-Known Member

  3. Xon

    Xon Well-Known Member

  4. Wasserlasser

    Wasserlasser Active Member

    I see the error notice on the Screen and the information faded in the back.
    Is this more visible right away or how does it look before the error pops up?

    Wasserlasser
     
  5. Xon

    Xon Well-Known Member

    This is an artefact of the error message popup shading the rest of the page, when you click back on the message it returns to normal.

    My site has a fairly dark theme, so this isn't representative of how the standard error dialog looks on the light theme.
     
  6. Wasserlasser

    Wasserlasser Active Member

    And it calculates actual words not characters?
    What defines a word? Is there a minimum of characters?
     
  7. Xon

    Xon Well-Known Member

    It counts by 'word' not characters, and the definition uses unicode definition of digits and letters and the ' symbol of what consists of a word.

    This works in most cases, but it can be a minefield diving into exactly what people consider a word. But could do with some tweaking for the characters;
    Code:
    "-_
     
    Last edited: Nov 12, 2016
  8. Wasserlasser

    Wasserlasser Active Member

    Unfortunately I don't have permission on your site to purchase AddOns.
     
  9. Xon

    Xon Well-Known Member

    Please try again now
     
  10. Xon

    Xon Well-Known Member

  11. Wasserlasser

    Wasserlasser Active Member

  12. Xon

    Xon Well-Known Member

    It is only a soft-word limit, they are prompted if they want to accept that and post anyway. It records if they do this, but I don't yet have a UI to look at it yet.

    Can you check the post to dump the exact bbcode contents (from the xf_post table)? As there are a bunch of ways it could be defeated.
     
  13. Xon

    Xon Well-Known Member

    Xon updated Post Friction with a new update entry:

    Feature Update

    Read the rest of this update entry...
     
  14. Xon

    Xon Well-Known Member

    One of my goals for writing Post Friction was to replace "TPU: Show Warning when bumping Old Threads" with a more comprehensive solution which didn't interfere with other add-ons.
     
  15. md_5

    md_5 Well-Known Member

    What capabilities change when the ES word count addon is installed?
     
  16. Xon

    Xon Well-Known Member

    Nothing in Post Friction, as I ended up removing the hard dependency. If both are installed, on saving a post; the word count is only computed once instead of computing it multiple times.
     
  17. md_5

    md_5 Well-Known Member

    Thanks, purchasing now
     
    Xon likes this.
  18. md_5

    md_5 Well-Known Member

    Code:
                    if ($age > 365*2)
                    {
                        $agePhrase = new XenForo_Phrase('sv_x_years', array('years' => floor($age/365)));
                    }
                    else if ($age > 365)
                    {
                        $agePhrase = new XenForo_Phrase('sv_x_year', array('year' => floor($age/365)));
                    }
                    else if ($age > 60)
                    {
                        $agePhrase = new XenForo_Phrase('x_months', array('months' => floor($age/60)));
                    }
                    else
                    {
                        $agePhrase = new XenForo_Phrase('x_days', array('days' => floor($age)));
                    }
    I think better code is needed for this, because for example something posted 3 months ago (90 days) will only be treated as 1 month (floor(90/60) = 1)
     
  19. Xon

    Xon Well-Known Member

    @md_5 good catch. that should be /30 for 1 month, not 60 :p
     
  20. Xon

    Xon Well-Known Member

Share This Page