Log in

View Full Version : New Posting Features - Block Censored Words in Posts by BOP5 VB4


BirdOPrey5
12-19-2010, 10:00 PM
By BirdOPrey5 / Qapla.com (http://www.qapla.com/mods/)

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 (http://www.qapla.com/mods/forumdisplay.php/22-Qapla-Testing) 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. :up:

English - Downloaad Zip File - V 1.3

COL NIL SATIS
12-20-2010, 05:13 PM
tagged

Boofo
12-20-2010, 05:19 PM
Does this work for the quick reply (ajax) or do you have to refresh the page first?

BirdOPrey5
12-20-2010, 05:39 PM
Works in quick reply too... if quick reply is used through when you "go back" to fix your message I see Chrome will erase your original message, where was from advanced reply or new thread your original message will still be there. I haven't tested other browsers.

Dr.osamA
12-21-2010, 09:53 AM
5 stars

installed

translated to Arabic
plzz be nice and add the XML Arabic file to 1st orignal post

thank you

ProFifaLeagues
12-21-2010, 11:22 AM
Nice mod will be handy for us in the next week or two with some planned changes we are making on our forum.
Thanks

BirdOPrey5
12-21-2010, 11:45 AM
5 stars

installed

translated to Arabic
plzz be nice and add the XML Arabic file to 1st orignal post

thank you

Thank you for the translation. Added to first post. :up:

Nice mod will be handy for us in the next week or two with some planned changes we are making on our forum.
Thanks

You're welcome. :)

jgt58
12-21-2010, 10:21 PM
this is great for elitestangs.com , were family oriented mustang club!

BirdOPrey5
12-22-2010, 11:48 AM
Updated to version 1.1.

Added a new option, "Additional Block Words" where you can block words not on your regular censor.

This was based on a user's suggestion for the VB 3.8 version of this mod.

leitel
01-01-2011, 06:43 PM
Any chance you can make an option so that the post/thread is flagged for moderation?

BirdOPrey5
01-01-2011, 07:22 PM
Any chance you can make an option so that the post/thread is flagged for moderation?

That would really be a different mod...
I've used this one: https://vborg.vbsupport.ru/showthread.php?t=129390 (and I believe it will work in VB4) to do that very thing...

Add words you want to trigger moderation for, set the post count to very high, like 999999 and it will auto moderate any posts from any users using any words you specify, except moderators of course.

Kat-2
05-20-2011, 10:46 PM
Does this mod allow for users to turn it off/on?

BirdOPrey5
05-20-2011, 11:42 PM
Does this mod allow for users to turn it off/on?

No... that would kind of defeat the purpose of the mod.

Kat-2
05-21-2011, 01:43 AM
No... that would kind of defeat the purpose of the mod.



Well no, not really. Some people (me) prefer not to see the bad language, and some do prefer to see it. I would like to have the choice. :)

HMBeaty
05-21-2011, 01:46 AM
Well no, not really. Some people (me) prefer not to see the bad language, and some do prefer to see it. I would like to have the choice. :)
Then you probably want this mod:

https://vborg.vbsupport.ru/showthread.php?t=253026

Kat-2
05-21-2011, 01:53 AM
Then you probably want this mod:

https://vborg.vbsupport.ru/showthread.php?t=253026


Thanks. I do have that mod, and it is not working properly. Even if a poster chooses to not have the filter on, it still filters the words.
That was why I came looking for another mod.

BirdOPrey5
05-21-2011, 02:04 AM
Well no, not really. Some people (me) prefer not to see the bad language, and some do prefer to see it. I would like to have the choice. :)

This doesn't filter words already in a post- this prevents someone from submitting a new post with bad words.

If you let a user shut it off then everyone would see the bad words they posted.

Kat-2
05-21-2011, 03:49 AM
This doesn't filter words already in a post- this prevents someone from submitting a new post with bad words.

If you let a user shut it off then everyone would see the bad words they posted.


I understand. Thank you. I am looking for one that will allow individuals to choose whether they want to see the bad words.
The other mod that is supposed to allow for that does not work properly for my forum. :)

BayLee2
06-09-2011, 09:12 AM
Does this block pms too or only threads? I'm looking for a way to block words of my choice from threads only so that users can pm things if they decide to. Can I add words of my choice to this?

Thanks.

BirdOPrey5
06-09-2011, 11:36 AM
It only blocks in posts and threads. Yes you can add your own words.

BayLee2
06-09-2011, 09:07 PM
I installed this on 4.1.3 and found that if a member posts it says not to use the censored word. If they submit a post without a censored word then click on edit post, they can then add the word to the post without the censor kicking in and blocking it.

Charlie98902
06-09-2011, 10:27 PM
Thanks for this only tagged for now most likely will install in the next few days. Some may want this as they provide specific software support and may not want other (competitors) mentioned.

Does this work as well via PM's? Would be a nice addition.

BirdOPrey5
06-10-2011, 12:01 AM
At this time the mod doesn't block edits or work in PMs. I will consider adding these features in a future release.

Charlie98902
07-06-2011, 09:24 PM
Thanks BOP5. As soon as it does PM's and over on posts I seen users can post then edit and it seems to allow bad words? Well I thought I recalled seeing a user state that in this thread.

BirdOPrey5
07-06-2011, 11:35 PM
It doesn't censor PMs.

At this time it won't block edits.

kether1
07-07-2011, 04:12 AM
Looks like another great modification, Joe. I am tagging this to install and test. Very cool. Thank you.

Kether

kether1
07-08-2011, 04:25 PM
Tested and installed! :)

Question: Is there a way to make this not use my censored words list and just use the words I add into the space you provide in the settings?

Rational: If someone posts a message with the 'F' word, I would like the generic replacement of the "****" rather than asking the member to go back and remove the censored word. On the other hand, there are some words/URLs I want to block and notify the member to go back and correct the post before it is allowed to be posted.


Thanks,
Kether

BirdOPrey5
07-08-2011, 05:04 PM
Tested and installed! :)

Question: Is there a way to make this not use my censored words list and just use the words I add into the space you provide in the settings?

Rational: If someone posts a message with the 'F' word, I would like the generic replacement of the "****" rather than asking the member to go back and remove the censored word. On the other hand, there are some words/URLs I want to block and notify the member to go back and correct the post before it is allowed to be posted.


Thanks,
Kether


I understand what you are saying but it would require almost a complete rewrite of the mod for it to work like that. The censored word list is fundamental to how this is currently coded.

kether1
07-08-2011, 05:31 PM
I understand what you are saying but it would require almost a complete rewrite of the mod for it to work like that. The censored word list is fundamental to how this is currently coded.

I understand, Joe, and appreciate the quick response. Thanks for your consideration anyway.

Kind regards,
Kether.

DNCL
07-28-2011, 12:16 AM
Hello dear BirdOPrey5, does this mod work well with the CKEditor in 4.1.4 or 4.1.5? if not can you upgrade it please so i can upgrade my 4.13 forum. :)

BirdOPrey5
07-28-2011, 11:58 AM
Hello dear BirdOPrey5, does this mod work well with the CKEditor in 4.1.4 or 4.1.5? if not can you upgrade it please so i can upgrade my 4.13 forum. :)

I can confirm it works fine on 4.1.4.

Trangalleiro
09-16-2011, 09:19 PM
Hi, thanks for the Hack BirdOPrey5 is working for me perfectly in Vb 4.1.5.
Although I would like if you could in a future version that will work only with the titles of the thread and/or messages, this is only a comment.

Sorry for my English I'm using Google translator.

Greetings.

BirdOPrey5
09-16-2011, 10:35 PM
Hi, thanks for the Hack BirdOPrey5 is working for me perfectly in Vb 4.1.5.
Although I would like if you could in a future version that will work only with the titles of the thread and/or messages, this is only a comment.

Sorry for my English I'm using Google translator.

Greetings.

Thank you for the suggestion. I will try to include it in a future version.

makjustin
04-12-2012, 06:19 AM
Thanks so much
installed and it works!!

BirdOPrey5
04-12-2012, 10:49 AM
Thanks so much
installed and it works!!

Thanks. Please click the "Mark as Installed" link on the right side in the top post.:)

Bundschuh
06-01-2012, 10:59 AM
Hi there,

two things:

1. I'd find it quite nice if it shows the user all bad words he entered in the message.
Is it possible to implement this?

2. Further the mod doesn't seem to check edit functions because editing a post with bad words is possible.

Greetings
Bundschuh

BirdOPrey5
06-01-2012, 05:51 PM
Hello,

Unfortunately no, as it works now it cannot show the specific word(s) that caused the block.

The block om edits is something that will likely be in the next update.

Disco_Stu
06-12-2012, 02:23 AM
Works well on 4.2PL1

Thanks! Marking as installed

masterross
06-20-2012, 04:38 PM
Great help mate!

You could add one addition code in editpost_update_start to prevent already posted censored words from been edited.

Regards!

BirdOPrey5
06-24-2012, 07:28 PM
Great help mate!

You could add one addition code in editpost_update_start to prevent already posted censored words from been edited.

Regards!

Sorry for the long delay.

I have just updated this mod to version 1.3- it now works on post edits. It also has options to work only on thread titles or only in post bodies, or both.

:up:

Nirjonadda
06-24-2012, 07:46 PM
Installed But its show version 1.1 ?

BirdOPrey5
06-24-2012, 08:16 PM
Installed But its show version 1.1 ?


Sorry about that. I guess it would help if I uploaded the new version.

I have uploaded version 1.3 now. :)

dmm2020
06-25-2012, 02:25 AM
What I would LOVE to see is ability to block certain phrases also. Currently if you enter a phrase, even in curly brackets, every word in that phrase is censored. That I do not want. Any way to do that quickly?

BirdOPrey5
06-25-2012, 09:54 AM
No, not something that will be "quickly" added. Not something that will ever be part of this mod in all reality as it uses the built in censor system which isn't likely to change.

Trangalleiro
06-25-2012, 10:02 AM
Thanks for the update and add the requested Joe .

Chadi
06-27-2012, 08:11 PM
Can this be set per usergroup?

BirdOPrey5
06-28-2012, 10:18 AM
not as it is coded.

Chadi
06-28-2012, 09:13 PM
I noticed a big problem. If I censor http, it will block posting if someone uses smilies in their posts.

BirdOPrey5
06-29-2012, 11:07 AM
Then don't block http.

Chadi
06-29-2012, 04:29 PM
Really? Then how do I block links without blocking smilies?

BirdOPrey5
07-01-2012, 11:23 AM
This mod was never intended for blocking links- it was meant for blocking words.

Nirjonadda
12-26-2012, 04:14 PM
Please can you add option Informed when members use bad words and Usergroup Option? Enable For Specified Usergroups.

BirdOPrey5
12-27-2012, 12:55 PM
There will not be an option for informing staff when a bad word is used, that would be a very different mod, sorry.

Nirjonadda
12-27-2012, 01:30 PM
There will not be an option for informing staff when a bad word is used, that would be a very different mod, sorry.

Informed when members use bad words (default, vBB change it to *) when Bad words is (Nirjonadda)

Ex: when Bad words is (Nirjonadda),user when use Nirjonadda?

Error:
Your post title or post message have bad word (Nirjonadda)

Look: VBB Anti Bad words (https://vborg.vbsupport.ru/showthread.php?t=292878)

YOODA230
12-27-2012, 09:17 PM
its working 4.2.3 heberw

BirdOPrey5
12-29-2012, 07:44 PM
Informed when members use bad words (default, vBB change it to *) when Bad words is (Nirjonadda)

Ex: when Bad words is (Nirjonadda),user when use Nirjonadda?

Error:
Your post title or post message have bad word (Nirjonadda)

Look: VBB Anti Bad words (https://vborg.vbsupport.ru/showthread.php?t=292878)

You want it to tell the user what the bad word is... I understand but sorry it doesn't work that way- it would need to be redesigned from scratch to show the bad word.

Mark4865
01-01-2013, 01:09 PM
Very simple to install, useful mod, thanks for effort

Naijasite
01-06-2013, 09:30 AM
good mod but it does not highlight the bad word neither does it tell the user what the bad word is on 4.2.

How do i make it to highlight the bad word or tell the user what the bad words is that is preventing the post?

Naijasite
01-08-2013, 09:12 PM
This mod should be able to highlight the censor word. How will the user no what the cemsor word is?

BirdOPrey5
01-12-2013, 02:19 PM
It's up to the Admin to let the users know which are censored words.

sticky
01-28-2013, 10:23 PM
Can this work for two words?

Like blocking 'The Ducks' or something that is more than word? In this example I would not want to block 'The' or 'Ducks' but 'The Ducks' together.

BirdOPrey5
01-31-2013, 09:08 PM
No, sorry.

kether1
06-25-2013, 08:00 PM
Excellent update. Thank you, Joe. Nominated!

Had a member today go in and add in 'blocked content' by using the edit function. He will not do that now with this update. :)

Regards,
Kether

postcd
09-09-2013, 01:45 PM
THIS MOD DONT WORKS, DO NOT DOWNLOAD

- Please allow admin to edit message displayed when bad words submitted by poster?
- allowing choose admin before fobidding posts and puttin in moderation

im still aloved to post bad words as admin :( so i dont know if mod works)
my block list is like:

somesite.com
somesite.com somesite.com
somesite1.com somesite2.com somesite3.com


but it still allow me to post somesite.com posts/threads

Spangle
09-15-2013, 11:23 AM
Does this work in thread titles as well ?

postcd
10-01-2013, 08:15 PM
Yes, it has option to enable for thread titles. If you will try it post if it works. For me it dont works as i posted above. :down:

To the BIRD: i hope you made it case insensitive, or fix it. so i dont need to add thousands of one word combinations.

THIS MOD DONT WORKS AS ADVERTISED. PEOPLE STILL ALLOWED TO POST EVEN WORDS FROM THEIR POST IS BANNED IN THIS MOD.

BirdOPrey5
10-10-2013, 01:42 PM
THIS MOD DONT WORKS, DO NOT DOWNLOAD

- Please allow admin to edit message displayed when bad words submitted by poster?
- allowing choose admin before fobidding posts and puttin in moderation

im still aloved to post bad words as admin :( so i dont know if mod works)
my block list is like:

somesite.com
somesite.com somesite.com
somesite1.com somesite2.com somesite3.com


but it still allow me to post somesite.com posts/threads

Yes, it has option to enable for thread titles. If you will try it post if it works. For me it dont works as i posted above. :down:

To the BIRD: i hope you made it case insensitive, or fix it. so i dont need to add thousands of one word combinations.

THIS MOD DONT WORKS AS ADVERTISED. PEOPLE STILL ALLOWED TO POST EVEN WORDS FROM THEIR POST IS BANNED IN THIS MOD.


I cannot replicate any of the issues you are having, the mod continues to work fine. Your issues are unique to your site, perhaps it is conflicting with another mod.

If you don't beleve me try to post the F word or the word jabber in this forum: http://www.qapla.com/mods/forumdisplay.php/22-Qapla-Testing

Try it in a post or thread title and it will be blocked. Jabber I added in the mod setting as an extra word to block. Capital, lowercase, doesn't matter, you can't post it.

postcd
10-14-2013, 07:33 AM
Thx, any guide on how to discover that conflict i have more Mods..?

BirdOPrey5
10-14-2013, 09:46 AM
Easiest way, if a bit time consuming, is to disable half your mods and see if the problem goes away- if it does- great- re-enable half the ones you disabled and see if it comes back- each time you work on enabling/disabling half your mods depending on whether the issue comes back/goes away until you narrow down the specific mod.

postcd
10-21-2013, 10:09 AM
Ok when disabling Mods one by one how i can easilly discover your Mod starting to work?

Dam13n
10-29-2013, 07:38 AM
Doesn't work with 4.2.1!

BirdOPrey5
10-29-2013, 08:49 AM
It works fine on 4.2.1, if it doesn't work for you it's for some other reason. What exactly isn't working?

john7911
10-30-2013, 05:40 PM
Thank you :)

Dam13n
10-31-2013, 05:52 PM
It works fine on 4.2.1, if it doesn't work for you it's for some other reason. What exactly isn't working?

It's not blocking links. I want to block all those kitchen spam bots and I have added a list of 40+ spam kitchen links but they still post it.

Budget101
12-11-2014, 11:38 AM
Is there any way to get this to work in posts that are fed from RSS Feeds?? I have certain keywords that I do NOT want to publish in the RSS feeds, but don't want to spend all my time moderating them either

blue7
04-09-2015, 06:51 PM
I've just marked "Check Titles" option but this mod still keep censoring words in posts. Any idea why this is happening ?

I just need censorship on titles, i dont want this mod check posts and censore words in posts bu seems that option doesnt work somehow.

BirdOPrey5
04-10-2015, 10:41 AM
Sorry but I've tested this a number of times and it works fine for me- are you sure these are your settings?

https://vborg.vbsupport.ru/external/2015/04/17.jpg

blue7
04-10-2015, 11:13 AM
Sorry but I've tested this a number of times and it works fine for me- are you sure these are your settings?

https://vborg.vbsupport.ru/external/2015/04/17.jpg

Hello,

Yes, i am sure. My settings exactly same as this. But still it check posts and censore words...

BirdOPrey5
04-11-2015, 05:25 PM
I can't explain it but if you don't want to worry about post text here is an .xml file that doesn't have the code to even check post text, it only checks titles. Just import it and overwrite the existing mod, leave the same settings.

I also updated the message to say: A censored word was detected. Please do not use censored words in your post titles

blue7
04-11-2015, 07:01 PM
I can't explain it but if you don't want to worry about post text here is an .xml file that doesn't have the code to even check post text, it only checks titles. Just import it and overwrite the existing mod, leave the same settings.

I also updated the message to say: A censored word was detected. Please do not use censored words in your post titles

Thank you very much, but weirdly it still censore posts :((

https://vborg.vbsupport.ru/external/2015/04/14.jpg

here is my settings:

https://vborg.vbsupport.ru/external/2015/04/15.jpg

When i deactivate the mod, censore gone, when i active it keep continuing censore posts :((

BirdOPrey5
04-11-2015, 07:24 PM
This mod does't stop words in posts from being censored. That was never the intent. What it does is prevent users from physically posting a thread if a word that would be censored is detected.

blue7
04-11-2015, 07:37 PM
This mod does't stop words in posts from being censored. That was never the intent. What it does is prevent users from physically posting a thread if a word that would be censored is detected.

I dont want this mod stop censore words in posts, i just want this mod dont censore words in post. I need this mod only for titles, i dont want it interfere to posts.

BirdOPrey5
04-12-2015, 10:30 PM
This mod doesn't change where words get censored. They get censored everywhere because that is how vBulletin censor works. This mod doesn't change how the vBulletin built in censor works.

blue7
04-13-2015, 08:45 AM
This mod doesn't change where words get censored. They get censored everywhere because that is how vBulletin censor works. This mod doesn't change how the vBulletin built in censor works.

I didnt censore those words in vBulletin censore system (settings). Your mod censore those words. When i disable it censore gone, when i enable it censore is back.

If you are thinking that those words already in the list of censore words (vBulletin built in censore system), no they are not there. I really didnt added them to in vBulletin built in censore settings. I only added those words to your mod and it censore posts...

BirdOPrey5
04-13-2015, 01:29 PM
I understand now. The mod is designed to work by just adding those words to the censored list. I'll need to relook at how the mod works. I'll post an update if I get it working that words in post won't be censored in the scenario you describe.

blue7
04-13-2015, 01:51 PM
I understand now. The mod is designed to work by just adding those words to the censored list. I'll need to relook at how the mod works. I'll post an update if I get it working that words in post won't be censored in the scenario you describe.

I'll be waiting for your update, thank you very much.

givememyleg
10-11-2016, 01:04 PM
I too am hoping to just block words in post titles, not censor them in the post. Was an update ever released for that?

MarkFL
10-11-2016, 02:51 PM
The product has separate settings for titles and posts. :)

givememyleg
10-11-2016, 06:31 PM
The product has separate settings for titles and posts. :)

you are correct, but it still censors everything the same. in other words, if i want to prevent a new thread from being created that uses "http" in the thread title, that works. but it also then adds "http" to the list of censored words meaning it censors/removes any instance of "http" within the post content. i only want it to search titles and ignore everything in the post content.

....if that makes sense.

MarkFL
10-11-2016, 06:45 PM
Yes, and I apologize for not realizing that checking titles only still leads to censorship in the post content. :)

postcd
01-02-2017, 03:38 PM
Hello,

HELP please, i am using this mod (v.1.3) at vB 4.2.x

But it does not block threads with my block phrase "Sell Cvv"

These are my "Additional Block Words": http://pastebin.com/sxLCpBEq
A screenshot of the plugin configuration: https://snag.gy/y8prKf.jpg
"Block in all forums" is set to Yes

You see i have "Sell Cvv" there, but still there are spammers who create threads where their post contain that phrase (same letter case).

What to check please so it is blocked?
Or is there any alternative plugin for this purpose?

BirdOPrey5
01-02-2017, 06:17 PM
You can't block words with spaces, even by using the curly braces, it just doesn't work like that.

{Sell Cvv} blocks literally "{Sell" and "Cvv}" in theory.

postcd
02-20-2017, 09:21 AM
Capital, lowercase, doesn't matter, you can't post it.

so i assume it does not matter if i enter lower or uper case letters in blocked words list ("Additional Block Words")...

but i have this in my block words: word1 Cvv word3
But someone still posted new topic where was CVV2 mentioned in the post text.

And i assume i can not use : , . - ?

As an admin i am not blocked by submitting new topic with block word in the post content.

This is content of my "Additional Block Words" text area: http://pastebin.com/A6kaSM9V

PS: it might be useful improvement if one can block phrases, not just words.

clauz
04-03-2017, 10:19 AM
Hello,

I have installed this mod, very useful thank you.
Anyway, my problem is that even if I only enable it just for thread TITLE, it also censor the words in messages...

I guess it is not such a good idea to work with the native vBulletin censor option.

See bellow my settings:

https://vborg.vbsupport.ru/external/2017/04/5.jpg (https://postimg.org/image/3pnbxxkmv/)

clauz
04-06-2017, 05:11 AM
Mark as uninstalled.

All the words I have put there to not be used in the topic title are censored from all posts.
Even if I choosed "only title". And "Check Posts?" -NO.

Very dissapointed in this mod.

clauz
04-26-2017, 06:17 AM
I guess it is only me speaking here.
This mod is not longer supported... :cool:

BirdOPrey5
04-27-2017, 11:37 AM
Yes it is unsupported. Sorry about that. Please stop posting about it unless you have something relevant/useful to say.

clauz
05-10-2017, 10:14 AM
And it is not relevant that this mod is not working as it is supposed to work??
If I enable "only title" why is censored also posts?

You are right... my post is not useful for you but is relevant for users who want to install this.

And don't understand me wrong, I really appreciate your work and I wanted to use this mod, it was just an observation.

Drakie
05-24-2017, 08:23 AM
Works fine with vBulletin 4.2.5 and PHP Version 5.6.30.

Thanks a lot!

NOCTURNES
11-08-2017, 12:55 PM
Wonderful mod, im making use of it right now, my community really needs this. Installed!

gsk8
09-27-2018, 03:47 AM
Hey there! Thanks so much for making this - badly needed :)

Unfortunately it's not working. I triple checked my censored words. I'm using 4.2.5.

All of the words are in curlys with like this {'Bad'}

So when someone type Bad in the title or post, it still goes through :(

If I remove the curly brackets it works.

The problem is that I run a forum where many athletes are mentioned. For instance "Slutskaya". But if I put in slut without the curly brackets and quotes, guess what happens :)

gsk8
09-27-2018, 03:51 AM
I also noted that when the post is being typed, there is no way to "edit". So someone might type a whole paragraph only to get the next page saying:

A censored word was detected. Please do not use censored words in your posts..

gsk8
09-27-2018, 04:01 AM
Ok. I think I got it. The secret was to take out the quote. This seems to work well! Thanks!

gsk8
09-27-2018, 04:16 AM
Nope still having problems. I clicked on "NO" to Block in ALL forums. Then I selected/highlighted the ones I want to use this feature for. The only thing it did was show up **** instead of a message.

BirdOPrey5
09-27-2018, 02:37 PM
I haven't looked at the code for this in a long time but if I recall correctly it did not support the use of the {brackets} like regular word censor did.

gsk8
10-02-2018, 12:37 AM
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 :)

BirdOPrey5
10-02-2018, 10:11 AM
I would say the mod is unfortunately not compatible with that kind of usage. Sorry.

kether1
11-21-2019, 04:14 AM
Hey Joe, is this mod available for vb5?

Thanks!
K

sv1cec
01-04-2020, 12:08 PM
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!

BirdOPrey5
01-04-2020, 02:22 PM
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.

sv1cec
01-04-2020, 03:38 PM
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?

BirdOPrey5
01-04-2020, 04:16 PM
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.

sv1cec
01-05-2020, 09:02 AM
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!