vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   On the Fly Censor w/ vB3 (https://vborg.vbsupport.ru/showthread.php?t=61665)

CdaKnight 02-17-2004 04:20 PM

On the Fly Censor w/ vB3
 
Hey... I did a couple of quick searches and didn't come up with anything, so I'm posting here to see if this exists. I'm looking to do it myself, but I honestly don't know where to start, being a n00b hacker.

I'm looking to do "On the fly" censoring, where instead of doing it upon posting, it checks upon page load.

I imagine it would need to make a mySQL query, which would then grab a "bad word list" and store it into an array. Then you'd need to compare every word before printing it to the "bad word array".

Has anybody done this? Or does anybody have a better idea?

CdaKnight 02-17-2004 08:10 PM

Sorry, I'm looking at this again and seeing its not real clear.

What I'm looking to do is to keep posts in tact, and have php compare each word in the post to the bad words list that it generates from somewhere (the one you can enter into the AdminCP), and if it is a bad word censor it using echo, rather than changing the actual text of the post.

Wired1 02-18-2004 01:10 AM

So you want it to check for bad words every time it is loaded, and only change what the user sees, not the actual post? Why? That creates more work, and no one will see the bad word anyway. Might as well let vB just nuke the bad word, less overall work.

NTLDR 02-18-2004 01:35 PM

It already does this, you just need to remove the censoring parts from build_new_post() in includes/functions_newpost.php to keep the origional post intact.


All times are GMT. The time now is 07:07 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.01021 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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