![]() |
|
Mod Options |
![]() |
|||||||||||
Block Censored Words in Posts by BOP5 VB4
![]() Developer Last Online: Apr 2021 ![]() ![]() ![]()
By BirdOPrey5 / Qapla.com
Version 1.3 For people who don't want to see censored text (******) in their posts this mod will prevent a user from even submitting a new post or thread that has any word that would be censored. They will be forced to change it or it simply won't post. (Now works on post edits as well.) You can demo this by trying post in the Testing Forum at Qapla.com. You can try posting the "F" word or other major curse words which are censored here. Options included to limit checking on thread titles or only post bodies, or both. Also option to use on specific forums instead of all forums on your site. Works on all vBulletin versions out there, VB 3.6.x through 4.2.x and will work on 4.3.x I'm sure as well. I'd like to thank kh99 for helping me find the right hook to use on this mod. Please Mark As Installed if you use this. ![]() Donations Always Appreciated. ![]() English - Downloaad Zip File - V 1.3 Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
The following members like this post: DNCL
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
New Posting Features Block Censored Words in Posts by BOP5 | BirdOPrey5 | vBulletin 3.8 Add-ons | 14 | 29 Sep 2015 09:56 |
Administrative and Maintenance Tools Auto Delete Censored Words / Make Censored Words Disappear | ShackMaster | Modification Graveyard | 9 | 07 Apr 2009 16:32 |
#106
|
||||
|
||||
So I currently have some words in my default censor account in "{}". Do I remove all these words and put them on your list? I want to be sure that when I put the word "Jap" as censored, it doesn't affect "Japan", hence, the reason for using the brackets
![]() No members have liked this post.
|
#107
|
||||
|
||||
I would say the mod is unfortunately not compatible with that kind of usage. Sorry.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#108
|
|||
|
|||
Hey Joe, is this mod available for vb5?
Thanks! K No members have liked this post.
|
#109
|
|||
|
|||
Joe, I know that this is way to old a mod, and I really do not expect you to provide any support for it, but I have tried to modify the error message (phrase blockpostbop5) in order to show the censored message and the non-censored one, so that a member can see which is the foul word he used. For some reason, if I change:
standard_error($vbphrase['blockpostbop5']); to: standard_error($vbphrase['blockpostbop5'], $censoredpost); for example, and I add {1} in the phrase, I get a %1$s instead of the censored post. Any ideas would be greatly appreciated!
__________________
John SV1CEC No members have liked this post.
|
#110
|
||||
|
||||
Hey... Don't even have a VB4 forum to test this on anymore but let's try something.
If you make the line: standard_error($vbphrase['blockpostbop5'], "test"); Do you get test to replace the {1} in the phrase? If yes then the problem is with $censoredpost If not then there is another issue, perhaps more is needed for vbphrase() function.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#111
|
|||
|
|||
Nope, it still shows %1$s.
Maybe the fact that the phrase is not a Front-End error message phrase, has something to do with that? I am not sure about which kind of phrases support replaceable parameters! Or perhaps the standard_error function has an issue?
__________________
John SV1CEC No members have liked this post.
|
#112
|
||||
|
||||
Usually when I need to find out how a vbulletin function works I search the source code for:
function functioname Such as function vbdate And it has ALWAYS worked. But this time I can't seem to find any function setup of the vbphrase function. No idea why but that would be where to start looking.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#113
|
|||
|
|||
That's because vbphrase is not a function. It's a variable.
In any case, I figured out a way to solve the problem. Instead of : standard_error($vbphrase['blockpostbop5']); I used: $errormessage=construct_phrase($vbphrase['blockpostbop5'], $non_censored, $censored); standard_error($errormessage); Of course, I have edited your phrase accordingly and added {1} and {2} for the two parameters. Joe, many thanks for your help, appreciated!
__________________
John SV1CEC The following members like this post: BirdOPrey5
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:47.