vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Enable/Disable Censor in individual forums (https://vborg.vbsupport.ru/showthread.php?t=45238)

SWFans.net 10-30-2002 10:00 PM

Enable/Disable Censor in individual forums
 
This is a fairly straightforward and semi easy hack to add. What it does is gives the administrator the option in the admin control panel for their vB board to enable or disable the swear filter (censored words list) on a forum-by-forum basis. Just in case you would like to have swearing allowed in an individual or private forum, but not allowed in other forums.

I would like to give credit to Logician for helping me figure out how to do this correctly in the request forum. Thanks much!

It has been tested on a version 2.2.7 board, but should work as is on a 2.2.8 board I do believe. :)

Smoothie 10-31-2002 07:22 AM

Nice! Been looking for this. Does this add any extra queries?

SWFans.net 10-31-2002 07:33 AM

None.

bblack 10-31-2002 01:12 PM

Yes it'S look nice thnaks for the works !

:D

Vile 10-31-2002 10:33 PM

Very cool idea indeed. I'll be installing this, thanks :D

Smoothie 11-01-2002 04:06 AM

anyone have this installed and running ok on your forums?

Chris M 11-01-2002 07:45 AM

Looks quite nice:)

Shame I dont censor what users say;)

Satan

DiscussAnything 11-05-2002 05:34 PM

are you sure this query is correct?

PHP Code:

ALTER TABLE forum ADD forceusepostprefix SMALLINT(6) DEFAULT '1' NOT NULL

'censor' isnt stated anywhere, and my forum gives me an error when i try to tell it to censor words in a certain forum. it tells me

PHP Code:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQLUPDATE forum
                   SET
                     styleid
='1'title='General Discussion'description='',
                     
active='1'displayorder='99'parentid='-1'parentlist='45,-1',
                     
allowposting='0'cancontainthreads='0'daysprune='30',
                     
newpostemail=''newthreademail='',
                     
moderatenew='0'allowhtml='0'allowbbcode='0',
                     
allowimages='0'allowsmilies='0'allowicons='0',
                     
styleoverride='0'allowratings='0'countposts='1',
                     
moderateattach='0',censor='1'
                   
WHERE forumid='45'
mysql errorUnknown column 'censor' in 'field list'

mysql error number1054 

I did note that the changes between 2.2.6 and 2.2.8+ are that instead of 'subject' they use 'title'. For the rest its all applicable

SWFans.net 11-05-2002 08:31 PM

Sorry about that. The query should have been:
PHP Code:

ALTER TABLE forum ADD censor SMALLINT(6) DEFAULT '1' NOT NULL

I have updated the attachment.

DiscussAnything 11-06-2002 06:38 AM

thanks, i was wondering what the forceusepostprefix had to do with anything ;)

Should I remove that column from the table or doesnt it take any space. And how would i safely remove it? (i'm not too experienced with sql :()


All times are GMT. The time now is 09:17 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.02834 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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