vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [REQUEST] Optional Censor (https://vborg.vbsupport.ru/showthread.php?t=63115)

forumdude 03-29-2004 04:48 AM

[REQUEST] Optional Censor
 
I recall a similar hack for vb2.x where the censor was optional.

It would be great if there were a place in the admin cp that censored words could be entered (like it is now) and then have those words optionally censored on a per-user basis. So, if someone registers and doesn't want to be censored they just go into their profile and select "no" to the censorship option. Users who do not feel that they want to view words which they may be sensitive to or otherwise can simply select "yes" to the censor in their profile. So the users who select "yes" see asterics where the users who selected "no" in their profile will see the actual words.

It would be ideal to have another box in the admin cp to enter words that would be censored regardless (spam urls, whatever).

Why censor a whole group of people when they can censor themselves? Give your users the choice! :squareeyed:

Thanks!

forumdude 04-01-2004 10:13 PM

/me bumps

Cyricx 04-01-2004 10:16 PM

The biggest problem I've found with messing with the censorship options in vb3 is the post cache :(

Then if someone that is set to censor a word views the thread past the time it's cached, it censors the word til the time expires for the thread cache =/

I'm messing around now with turning off the cache options to see how the board performance is.

forumdude 04-02-2004 12:19 AM

I didn't consider the post cache. I haven't looked at the code thoroughly myself but I know the board I help run will be requiring the post cache.

I was thinking if someone has the censor on for themselves that the posts would be taken through some function before they are displayed. preg_replace? *shrug* I don't know how that would effect performance or if there's a better way to do it.

Cyricx 04-02-2004 12:48 AM

Unfortunately the cache is stored post-parse. So if someone without the censor on views the forum the parsing adds the censor, then someone who doesn't have it on will still see it parsed until the time you have set for the thread to be cached expires. :(

Turned off cache on my forum tonight and I'd swear our load time is going up, but then our size is not large at all. *shrug*

forumdude 04-10-2004 08:42 PM

Anything new?

Cyricx 04-10-2004 09:19 PM

By turning off the cache I was able to add in censorship per forums, but couldn't find anyway to do it with cache on :(

forumdude 04-10-2004 09:21 PM

hmm. ok thanks

tjdrico 04-14-2004 08:43 PM

Quote:

Originally Posted by forumdude
I recall a similar hack for vb2.x where the censor was optional.

It would be great if there were a place in the admin cp that censored words could be entered (like it is now) and then have those words optionally censored on a per-user basis. So, if someone registers and doesn't want to be censored they just go into their profile and select "no" to the censorship option. Users who do not feel that they want to view words which they may be sensitive to or otherwise can simply select "yes" to the censor in their profile. So the users who select "yes" see asterics where the users who selected "no" in their profile will see the actual words.

It would be ideal to have another box in the admin cp to enter words that would be censored regardless (spam urls, whatever).


Why censor a whole group of people when they can censor themselves? Give your users the choice! :squareeyed:


Thanks!

https://vborg.vbsupport.ru/showthread.php?t=63875 may be to your tastes.

forumdude 06-09-2004 07:59 PM

Ah you are my hero!

When our site switches to vb3 I will definitely be wanting to install this hack. Beautiful!


All times are GMT. The time now is 12:34 AM.

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.01159 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete