Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 02-22-2005, 09:26 PM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots?

Thanks.
Reply With Quote
  #3  
Old 02-22-2005, 09:31 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dndog
Screenshots?

Thanks.
There isn't much to see, just a new option in the forum manager. For the forums you don't want to be censored, set this option to 'no'. It is 'yes' by default.
Reply With Quote
  #4  
Old 02-23-2005, 03:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to allow Admins to not be censored no matter what it is set at in a certain forum?
Reply With Quote
  #5  
Old 02-23-2005, 06:13 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok this is creepy I was thinking about something like this. BUT I was looking for soemthing that lets Private messages not be screened. ever by usergroup.
but public stuff stays the same...

i mean it would be nice if there was a switch in the control pannel that had allow swearing... block swearing.

that way if people are offended it is blocked. almost how google has safe filter.

can this mod be... um... modded to do such a thing?
Reply With Quote
  #6  
Old 02-23-2005, 06:44 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Is there a way to allow Admins to not be censored no matter what it is set at in a certain forum?
Not with this hack as it is but it's certainly possible; I'm working on a 'img tags per usergroup per forum' hack at the moment which involves a new table mapping forum ids to usergroup ids with a permissions column, this could be extended for censoring too. In fact with censoring this is quite easy as you just have to find calls to fetch_censored_text in posting-based scripts (i.e. newreply, newthread, editpost) and put a conditional around the call based on the settings.
Reply With Quote
  #7  
Old 02-23-2005, 06:46 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
Ok this is creepy I was thinking about something like this. BUT I was looking for soemthing that lets Private messages not be screened. ever by usergroup.
but public stuff stays the same...

i mean it would be nice if there was a switch in the control pannel that had allow swearing... block swearing.


that way if people are offended it is blocked. almost how google has safe filter.

can this mod be... um... modded to do such a thing?
For PMs you'd just need to put conditionals around the calls to fetch_censored_text in the PM scripts (just private.php off the top of my head). For it to be a user selectable option just add a new user option mapping to a field in the user table (or use a custom profile field if you're lazy) and base the conditional on that.
Reply With Quote
  #8  
Old 03-01-2005, 11:19 PM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to allow signatures to bypass the censor globally - whether or not the forum is set to yes doesn't effect it.
Reply With Quote
  #9  
Old 03-01-2005, 11:54 PM
boozehound's Avatar
boozehound boozehound is offline
 
Join Date: Feb 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jlaine
Seems to allow signatures to bypass the censor globally - whether or not the forum is set to yes doesn't effect it.
In includes/functions_bbcodeparse find:
PHP Code:
if ($forum['censor']) 
replace with:
PHP Code:
if ($forum['censor'] || $forum == null
This will censor sigs globally.
Reply With Quote
  #10  
Old 03-02-2005, 01:41 AM
jlaine jlaine is offline
 
Join Date: Nov 2001
Location: Morris, MN
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boozehound
In includes/functions_bbcodeparse find:
PHP Code:
if ($forum['censor']) 
replace with:
PHP Code:
if ($forum['censor'] || $forum == null
This will censor sigs globally.
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
Reply With Quote
Reply


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 10:01 PM.


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.04458 seconds
  • Memory Usage 2,301KB
  • Queries Executed 23 (?)
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
  • (4)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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