Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Disable swear censor per forum (configurable) Details »»
Disable swear censor per forum (configurable)
Version: 1.00, by boozehound boozehound is offline
Developer Last Online: Sep 2007 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 02-21-2005 Last Update: Never Installs: 5
DB Changes
 
No support by the author.

https://vborg.vbsupport.ru/showthread.php?t=45238 is great but for vb 2 and https://vborg.vbsupport.ru/showthread.php?t=65343 doesn't give you the option of configuring the per forum settings through admincp, so here is a hack similar to the vb2 version but for vb3. Tested on 3.0.3 through 3.0.7.

Update 2nd March 2005: See this post to stop sigs bypassing the filter globally.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-02-2005, 01:48 AM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jlaine
Gotcha, will apply sir.

Is there a reason it is not applying the censor to non-checked forums?

I'd be fine with it if it was staying active in forums that had mandatory censoring, but once I installed this, globally all signatures were bypassing the censor rules.

Thanks for the help,

Josh
It was an oversight on my part; I was just checking for a flag mapped to a forum id when deciding whether or not to apply the filter, but not checking for the case where there was no forum id which is the case when sigs are parsed.

The way this hack works it would be a bit more work to allow sigs to bypass the filter per forum. But at some point I hope to release a new version of this hack that allows the filter to apply per usergroup per forum, and I'll include the sig stuff in that.
Reply With Quote
  #13  
Old 03-02-2005, 10:50 AM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boozehound
It was an oversight on my part; I was just checking for a flag mapped to a forum id when deciding whether or not to apply the filter, but not checking for the case where there was no forum id which is the case when sigs are parsed.

The way this hack works it would be a bit more work to allow sigs to bypass the filter per forum. But at some point I hope to release a new version of this hack that allows the filter to apply per usergroup per forum, and I'll include the sig stuff in that.
I applied that change - but it appears that disables checking of any forum on regular posts - as the censor is working on the forum I chose to disable it in - users posts are coming back censored now.

I don't mind the exclusion of the signature, so long as it's always globally censored - kinda freaked me out when something ended up visible in the general areas.
Reply With Quote
  #14  
Old 03-02-2005, 09:57 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jlaine
I applied that change - but it appears that disables checking of any forum on regular posts - as the censor is working on the forum I chose to disable it in - users posts are coming back censored now.

I don't mind the exclusion of the signature, so long as it's always globally censored - kinda freaked me out when something ended up visible in the general areas.
Hmm I see what you mean. Well, he's a kind of fix, it'll censor sigs when they are edited (by a user, not through modcp or admincp but the code for that is the same just in a difference place), so it'll be impossible for users to put censored words in their sigs.

profile.php
find:
PHP Code:
    else
    {
        
$signature trim($message);
    } 
add after that:
PHP Code:
    require_once('./includes/functions_bbcodeparse.php');
    
$signature fetch_censored_text($signature); 
Reply With Quote
  #15  
Old 03-02-2005, 11:13 PM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boozehound
Hmm I see what you mean. Well, he's a kind of fix, it'll censor sigs when they are edited (by a user, not through modcp or admincp but the code for that is the same just in a difference place), so it'll be impossible for users to put censored words in their sigs.

profile.php
find:
PHP Code:
    else
    {
        
$signature trim($message);
    } 
add after that:
PHP Code:
    require_once('./includes/functions_bbcodeparse.php');
    
$signature fetch_censored_text($signature); 
Gotcha - along with that I'll revert the other changes and see what takes place.

Thanks again for the assistance, I'll let you know if anything arises from this.

Josh
Reply With Quote
  #16  
Old 06-22-2005, 03:01 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My shoutbox is now uncensored. How can I change it back to being censored? Is there a way to disable it globally till I get it right?
Reply With Quote
  #17  
Old 06-22-2005, 04:01 AM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rinkrat
My shoutbox is now uncensored. How can I change it back to being censored? Is there a way to disable it globally till I get it right?
Change, in includes/functions_bbcodeparse.php (assuming this hack is applied):
PHP Code:
    if ($forum['censor'])
    {
        
$bbcode fetch_censored_text($bbcode);
    } 
to:
PHP Code:
    if ($forum['censor'] || empty($forum))
    {
        
$bbcode fetch_censored_text($bbcode);
    } 
which will then censor things that are parsed but where $forum is undefined, like in a shoutbox.
Reply With Quote
  #18  
Old 06-22-2005, 04:15 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK the titles of the threads are uncensored but the contents of the posts are still ****'ed over.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04587 seconds
  • Memory Usage 2,286KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete