The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User-Selectable Optional Language Replacement Censor Details »» | |||||||||||||||||||||||||||
User-Selectable Optional Language Replacement Censor
Developer Last Online: Apr 2020
User-Selectable Optional Language Replacement Censor by 006
What this hack does: This will give your users the option whether or not they want to have certain words censored or not. Also instead of the standard *** for censored words, this lets you substitute different words that will be used to replace words. For example, if the user has language filter turned on, and the word "dog" is censored, and you have chosen to have the word "cat" be used as a replacement, then this user will see the word "cat" in every post where the word "dog" is used. If the user does not choose to enable censoring, they will see the word "dog." (No use censoring that word lol, it's just for the example) Benefits of this hack: People will no longer try to cheat to get their words in by typing "[b][/b]" in the middle of certain censored words to fool the word filter. If they want to see all words, they choose to not use the censor and are happy. If they are offended by certain words, they can use the censor and be happy. Everybody wins. irate: User-Selectable Optional Language Replacement Censor by 006 INSTALLATION TIME: About 20 - 30 minutes. (6 steps, 4 file edits, 3 template edits, and 1 query) It has been tested and works fine in 2.2.9 Any questions? Feel free to ask in this thread. If you use this hack, please click "INSTALL." Thanks Updated install file to .php so it doesn't parse replacements. Show Your Support
|
Comments |
#42
|
||||
|
||||
I just double checked; I did have something incorrect that I fixed, then double checked again and all seems to be in order.. but it still won't stay checked yes.
|
#43
|
||||
|
||||
I would suggest reverting all the edits back to how they were before hacking and trying again. (Reversing the query won't do anything so you can leave that how it is with the new userfield and all).
If you run into any code that you aren't sure about post it and I will help you out. Hope all goes well. |
#44
|
||||
|
||||
I just took half an hour to re-install this and IT STILL DOESN'T KEEP "YES" SELECTED!!
|
#45
|
||||
|
||||
Ok check Step 3.
Also, check the modifyoptions template edit in Step 6. Make sure you have the $usecensornotchecked and $usecensorchecked variables in there as well in the modifyoptions edit or the buttons will not be checked. Also, if you tried to make the code in Step 6 in it's own seperate template it will not work. I tried this before too and everything else was the same and it didn't work. It displayed the option field but yes or no was not selected. Did you do anything different at all with the hack? |
#46
|
||||
|
||||
I have it all fine
|
#47
|
||||
|
||||
I really don't know then. The only thing I can say is if you want I can go check out your code. I don't see any other way to do it.
I don't see why it's not working for you but I would have to see your code to find the problems. Maybe PM me about it or something. |
#48
|
|||
|
|||
I had the same problem with the filter getting turned off and not working. There's an error in the code in the installation file..
In "root/member.php" where it says to add: PHP Code:
PHP Code:
PHP Code:
|
#49
|
||||
|
||||
Pikor, you are a LIFE saver!
|
#50
|
|||
|
|||
No problem.. Happy to help.
|
#51
|
|||
|
|||
Okay, I have a question..
Anybody have a suggestion on how to filter for example "crap", but not "scrap" with this hack? I know I could check for " crap", "crap ", and " crap ".. But, then if "crap" was the only word on a line it wouldn't get filtered. I can only figure out how to get it to filter the word if there's other text on the line with it. Another idea would be to be able to add a list of words that would be ignored as well as words to be filtered. If this could be done, it would be less work and probably give better performance as there would only be the 2 lines vs. the 4+ lines. I'm not quite sure how to do it with this hack. Any ideas?!? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|