vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Block Censored Words in Posts by BOP5 VB4 (https://vborg.vbsupport.ru/showthread.php?t=255546)

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:

Quote:

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.


All times are GMT. The time now is 06:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01191 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete