vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - User Optional Word Censorship (https://vborg.vbsupport.ru/showthread.php?t=176544)

TheFallenAngel 06-06-2008 01:32 AM

Quote:

Originally Posted by ZombieAndy (Post 1539240)
Dosn't work, just makes the screen go white and nothing else.

This is my code, i might of missed something obvious..

PHP Code:

    if ($vbulletin->options['enablecensor'] AND !empty($vbulletin->options['censorwords']))
{
    if ((isset(
$vbulletin->userinfo['field13'])) && ($vbulletin->userinfo['field13'] != "Yes"))
    {
        return 
$text;
    }
    
    if (empty(
$censorwords))
{
    return 
$text;



Remove the second
PHP Code:


    return 
$text



ZombieAndy 06-06-2008 01:20 PM

D'uh! I knew it would be something simple!

Thanks man!

VikesRule 09-10-2008 06:10 PM

Does this code mess up with editing posts and whatnot and does it take a while to load?

JackThomson120 11-18-2008 07:05 PM

Theres one problem, when the post is submitted, it censors the words and puts them in the database censored. So if this is turned off, they will display uncensored for all users.

Brittany 12-02-2008 11:04 PM

OK I installed this exactly how you said and when I go to disable the censor
it says

"A required field called Enable word censor is missing or has an invalid value."

What am I doing wrong?


eta:
My code

PHP Code:

    if ($vbulletin->options['enablecensor'] AND !empty($vbulletin->options['censorwords']))
    {
    if ((isset(
$vbulletin->userinfo['field10'])) && ($vbulletin->userinfo['field10'] != 1))
{
    return 
$text;



Brittany 12-04-2008 11:59 AM

anyone?

Brittany 12-31-2008 12:09 PM

nobody can help me?

Phaedrus 01-02-2009 04:57 AM

You need to go to your options, create a list of censor words and then turn it on. The user then can decide to use the censoring or not by adding or removing the checkmark.

Have you created a censor list in your options in the admin control panel?

Phaedrus 01-02-2009 05:47 AM

Quote:

Originally Posted by Brittany (Post 1677398)
OK I installed this exactly how you said and when I go to disable the censor
it says

"A required field called Enable word censor is missing or has an invalid value."

What am I doing wrong?


eta:
My code

PHP Code:

    if ($vbulletin->options['enablecensor'] AND !empty($vbulletin->options['censorwords']))
    {
    if ((isset(
$vbulletin->userinfo['field10'])) && ($vbulletin->userinfo['field10'] != 1))
{
    return 
$text;




Go to "User Profile Field Manager" in AdminCP.

Click "Edit" next to the option you created.

Choose "no" for required field.

Brittany 01-02-2009 06:07 AM

ok did all that and Im not getting an error message anymore but it isnt working.
I added test to the list of curse words, turned it on, and it isnt working still


All times are GMT. The time now is 04:50 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.01727 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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