Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2004, 04:48 AM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [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!
Reply With Quote
  #2  
Old 04-01-2004, 10:13 PM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me bumps
Reply With Quote
  #3  
Old 04-01-2004, 10:16 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-02-2004, 12:19 AM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-02-2004, 12:48 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
  #6  
Old 04-10-2004, 08:42 PM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anything new?
Reply With Quote
  #7  
Old 04-10-2004, 09:19 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 04-10-2004, 09:21 PM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm. ok thanks
Reply With Quote
  #9  
Old 04-14-2004, 08:43 PM
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Mar 2004
Location: Morecambe, UK
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 06-09-2004, 07:59 PM
forumdude's Avatar
forumdude forumdude is offline
 
Join Date: Nov 2001
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah you are my hero!

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 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.04532 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete