Automatic Word Replacements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Glock21
    Senior Member
    • Apr 2002
    • 311

    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?
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #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

    • Glock21
      Senior Member
      • Apr 2002
      • 311

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

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #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

        • Glock21
          Senior Member
          • Apr 2002
          • 311

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

          Comment

          • Yo.
            New Member
            • Feb 2003
            • 24

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

            Comment

            • Glock21
              Senior Member
              • Apr 2002
              • 311

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

              Comment

              • Yo.
                New Member
                • Feb 2003
                • 24

                #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

                • Scott MacVicar
                  Former vBulletin Developer
                  • Dec 2000
                  • 13286

                  #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

                  • Glock21
                    Senior Member
                    • Apr 2002
                    • 311

                    #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...