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

Advanced Censoring (Post Content Replacement) [Deleted]

Discussion in 'Add-on Releases' started by farang, Dec 17, 2015.

  1. farang

    farang Well-Known Member

    farang submitted a new resource:

    Advanced Censoring (Post Content Replacement) - Censoring posts using regular expressions. Helps prevent spam.

    Read more about this resource...
    Last edited: Dec 19, 2015
  2. farang

    farang Well-Known Member

    Last edited: Dec 18, 2015
  3. Kintaro

    Kintaro Well-Known Member

    that you farang

    it works also while editing?
  4. farang

    farang Well-Known Member

    Yes it's supposed to recensor the post if it's edited. ;-)

    It will not do anything if you just edit and save (without making any actual changes) . If You edit and change something the post will be recensored when you save it.
    Last edited: Dec 19, 2015
  5. farang

    farang Well-Known Member

    This morning I was experimenting a bit with some more matching patterns.

    Suppose you want to replace a word but the poster has been inventive enough to spell it a bit differently than conventional. In the example below we have used the word biagra. It's just an example how Advanced Censoring could be used if you wanted to. Nothing else.
    As always use two comma separated and "-enclosed strings on a single line

    # Find biagra, biaaggggra, bia gra, bia.gra, \/|AGRA, \/I/\GR/\, b1aqra, bi@gr@ and other variants:
    "/[vb\\]+\/?.?[i:1!\|]+.?[a@\/]+\\?.?[gq]+.?r+.?[a@\/]+\\?/i", "[Replaced]"
    I used to validate rexex at http://regexr.com/ but I have found https://regex101.com/ much better since it uses PCRE regular expressions.

    P.S. The ending of the string "i" is a modifier that makes the comparison case insensitive. The "g" modifier is implicit with preg_replace(), you shouldn't include it.
    Last edited: Dec 19, 2015
  6. Mouth

    Mouth Well-Known Member

    Does this work on threads/posts auto created from Feeder ( /admin.php?feeds/ ) ??
  7. farang

    farang Well-Known Member

    Good question. I will check it out and report back.
    Mouth likes this.
  8. farang

    farang Well-Known Member

    Yes it works also on threads/posts auto created from Feeder. :)
    Mouth likes this.
  9. farang

    farang Well-Known Member

  10. farang

    farang Well-Known Member

    If you have some spare time, I'd love to have some feedback (and possible also a review) from you guys using this add-on. Ideas for improvements are also appreciated. Thanks and happy holidays! ;)
  11. farang

    farang Well-Known Member

  12. farang

    farang Well-Known Member

    This resource has been removed and is no longer available for download.

Share This Page