Announcement

Collapse
No announcement yet.

Automatic Word Replacements

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatic Word Replacements

    We have recently come into a court order where all of our forum members are not allowed to say certain acronyms, and thus I must do automatic word replacements. The problem is, it doesn't work quite right. For example if I ban ABC and BC also, in half the cases it will leave A and then BC will be properly replaced, if that makes any sense. Is there any way to have it search out for terms in an order like if it finds ABC to change it, instead of having the replacements take each other over?

  • #2
    The only tools available are the cebnsor options and the replacement variables. If either of these is not sufficient then you'll need to create a hack to do this.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Why would the 2nd replacements such as searching for BC instead of ABC first be happening though?

      Comment


      • #4
        Try banning:

        ABC {BC}
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          These are multiple words at once that need changed, so I can't really use the censorship option.

          Comment


          • #6
            If it's a court order maybe you should think about doing a preg_replace on post input.

            Comment


            • #7
              A what what in the what? Layman's terms, please

              Comment


              • #8
                Well, essentially what I'm saying is that you would need to hack your board. Check vBulletin.org for more info on this.

                Comment


                • #9
                  the replacement variables are done in the order they are called
                  so if you had the following set
                  test = ab
                  b = something

                  and you posted test, the end result would be asomething

                  since
                  test would become ab and then b would be replaced by something.
                  Scott MacVicar

                  My Blog | Twitter

                  Comment


                  • #10
                    There's also an issue where it will replace ABC but not abc and vise versa, is there a way to make them system look for both?

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X