vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   vB Censorship Function Question... (https://vborg.vbsupport.ru/showthread.php?t=317722)

wolfe 03-10-2015 06:20 PM

vB Censorship Function Question...
 
Hi

I am currently using the fetch_censored_text() function in my titles but I have removed some of the censored words and I cant seem to get the titles to show the words again instead of *'s.. my question is when vBulletin does it with titles where does it store the words its removed to know where to put them back.

if you understand ;)

kh99 03-10-2015 06:25 PM

Unfortunately, it doesn't. vbulletin replaces the censored words before the post is saved in the database. But you say you're using the fetch_censored_text() function, so if that means it's custom code, then it depends on how the function is used.

wolfe 03-10-2015 06:28 PM

with the thread titles when you remove the censored words from the admin cp and then you run the Rebuild Thread Information and it replaces the missing words from the titles so it must store them somewhere in the database... thats what im looking for

kh99 03-10-2015 06:50 PM

Well, OK, this is something I didn't know: the fetch_censored_text() function is applied both before a post is saved and before it's displayed. So what happens is that if you write a post with a "bad" word in it, then censor that word in the admincp, the word is still in the database but it's being censored when the post is displayed. So if you then remove the word from the admincp, it comes back. Unless you edit the post, then the censored version is saved and you can't get it back. Also, any posts that are written when the word is in the admincp are permanently censored.

wolfe 03-11-2015 08:31 AM

its not test it find a make a test thread with bad word then remove from admin cp and Rebuild Thread Information

kh99 03-11-2015 09:10 AM

I did, and it didn't come back. I might have something set different. But in any case, maybe someone else knows.


All times are GMT. The time now is 12:57 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.00918 seconds
  • Memory Usage 1,715KB
  • 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
  • (6)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