vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User-Configurable Censorship Options (https://vborg.vbsupport.ru/showthread.php?t=40091)

futureal 06-20-2002 09:09 PM

User-Configurable Censorship Options
 
Hi all,

This might sound like an odd hack, but I am looking for something that would allow users to toggle on/off the censorship feature of the site.

Would this be easy to do?

I have a site with a good number of teenage/young-adult users, some of which don't mind the occasional profanity, others who tend to be offended. I would like to give them the option to censor a default list of words. However, I don't want to do forum-wide censorship.

A "wish list" would include the option for users to individually set a list of words to be censored...

Chris M 06-21-2002 08:33 PM

This would be an excellent Idea!

Satan

Xenon 06-21-2002 10:54 PM

then code it satan ;)

actually this is doable, but you have to go throug some files to clean the censortext function out of it :)
change the censortext function in functions.php an other small things, not really hard to code, but timeintensive

Logician 06-22-2002 05:46 AM

Xenon is right.

And also IMO the most time intensive part is the SQL integration. You need an extra field in your database (probably in user table or you can make it a table on its own) and you need to code the section in USER CP and Admin CP to edit/modify this field. Adjust necessary templates etc..

It really takes time to code/debug but good idea so I hope somebody takes it on.

Chris M 06-22-2002 12:16 PM

I would have liked to, until you said SQL integration;)

I leave that kinda stuff to you...

I might give it a go...Im pretty busy at the moment though, getting my friend's site back and working, and my site, and other numerous bits...

Satan

Admin 06-22-2002 12:20 PM

Not the simplest hack, since censoring is done *before* the post is inserted into the database. You'll need to change that and have it censor the post (title, private messages, events, etc.) on the fly.

Logician 06-22-2002 03:01 PM

Quote:

Originally posted by FireFly
since censoring is done *before* the post is inserted into the database.
Really? I havent noticed that before. IMO censoring the post before writing to db, is not the best practise. If Admin deletes a cencored word from the list, it stays cencored for all the existing posts. Probably they wanted to save the SQL query/CPU load for threadviews.

Xenon 06-22-2002 03:51 PM

yes it is, but as i know in pms aso its the other way round.

this is why i said it'll take really time becaus you have to change the censororder often :)

futureal 06-23-2002 05:56 PM

I knew that it was done beforehand, otherwise I might have tried it myself (although that probably wouldn't have been a good idea anyway!) :)

I also think it would be better to do the censoring on-the-fly rather than sticking it in the database, since (for reasons already mentioned) it is always nice to have a "fresh copy" of posts in case settings change in the future. Although, would there be performance issues in doing it on-the-fly? It seems like the posts are already being parsed on-the-fly for things like vBB code, smilies, etc.

If any brave soul out there is thinking about giving it a shot, and would like someone to help test it or provide feedback, I'd be glad to help.

Xenon 06-23-2002 06:31 PM

postings are censored before inserted in the db, and they are also censored on the fly....

theoretically you have to got through all files and delete the censoring before inserting in db. File like private.php, newreply.php, newthread.php, editpost.php, calendar.php aso.

then when there is only an on the fly censoring, it wouldn't be a problem anymore.
If you need help with the last step i can sure help you, but i won't go throug all files to find out the lines where you have to delete the censoring :)


All times are GMT. The time now is 02:03 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.01675 seconds
  • Memory Usage 1,729KB
  • 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
  • (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