The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
On the Fly Censor w/ vB3
Hey... I did a couple of quick searches and didn't come up with anything, so I'm posting here to see if this exists. I'm looking to do it myself, but I honestly don't know where to start, being a n00b hacker.
I'm looking to do "On the fly" censoring, where instead of doing it upon posting, it checks upon page load. I imagine it would need to make a mySQL query, which would then grab a "bad word list" and store it into an array. Then you'd need to compare every word before printing it to the "bad word array". Has anybody done this? Or does anybody have a better idea? |
#2
|
|||
|
|||
Sorry, I'm looking at this again and seeing its not real clear.
What I'm looking to do is to keep posts in tact, and have php compare each word in the post to the bad words list that it generates from somewhere (the one you can enter into the AdminCP), and if it is a bad word censor it using echo, rather than changing the actual text of the post. |
#3
|
||||
|
||||
So you want it to check for bad words every time it is loaded, and only change what the user sees, not the actual post? Why? That creates more work, and no one will see the bad word anyway. Might as well let vB just nuke the bad word, less overall work.
|
#4
|
||||
|
||||
It already does this, you just need to remove the censoring parts from build_new_post() in includes/functions_newpost.php to keep the origional post intact.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|