vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Censor words (https://vborg.vbsupport.ru/showthread.php?t=221783)

archey 08-26-2009 01:46 AM

Censor words
 
Hey is there a mod, or option fo censor words where I can make them star(*) our one letter?

EX:

Code:

f*ck

Sorry, if the language is inappropriate.

mp3u 08-26-2009 09:31 AM

I used to run a WFF board and in the Admin CP there was an option to list the words you want to censor and what you want to censor them as.

Eg, 'Phil Collins' was edited to turn into 'Baldy Git' etc - it actually worked very well by changing bad words into polite/funny alternatives. Of course you could use * etc to replace the middle letters. I do find the current censorship settings to be way too strong, depending on the audience they can be a bit of a killjoy.

If there was a vB mod that allowed you to customise the censor list I would download it in a heartbeat.

Lynne 08-26-2009 02:58 PM

You can use Replacement Variables or write a simple plugin to do str_replace with certain words.

archey 08-27-2009 03:37 AM

@Lynne: I have no clue how to code VB plugins :P

@mp3u: So there isn't a mod?

Lynne 08-27-2009 02:09 PM

You can start with the manual - Plugin System

There are also several articles in the Articles forums on how to write products/plugins.

archey 08-27-2009 04:44 PM

Quote:

Originally Posted by Lynne (Post 1875311)
You can start with the manual - Plugin System

There are also several articles in the Articles forums on how to write products/plugins.

Okay, I'll read that over, but I haven't learned PHP yet.

Scu11 08-27-2009 06:00 PM

Quote:

Originally Posted by archey (Post 1875406)
Okay, I'll read that over, but I haven't learned PHP yet.

just search in the mod forums

archey 08-27-2009 06:12 PM

Quote:

Originally Posted by Scu11 (Post 1875436)
just search in the mod forums

=] I did, before I made the post, but I guess i can search again.

Marco van Herwaarden 08-28-2009 09:27 AM

The use Replacement Variables as Lynne suggested.

mp3u 09-06-2009 11:11 AM

Hi there,
I just discovered the Replacement Variable function and it works perfectly. However... say if I want to censor the word 'work' - and instead of having 'w**k' I wanted the first and last letter with a 'censored' smilie in the middle? If I replace the middle letters with the BBcode :censored: (the code on my board for the censored icon) the word just appears as 'w:censored:k'.... any ideas how I can get a smiley in there?
Thanks


All times are GMT. The time now is 06:55 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.01579 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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