vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Disable swear censor per forum (configurable) (https://vborg.vbsupport.ru/showthread.php?t=76804)

boozehound 02-21-2005 10:00 PM

Disable swear censor per forum (configurable)
 
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.

dndog 02-22-2005 09:26 PM

Screenshots?

Thanks.

boozehound 02-22-2005 09:31 PM

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.

Boofo 02-23-2005 03:50 AM

Is there a way to allow Admins to not be censored no matter what it is set at in a certain forum? ;)

T3MEDIA 02-23-2005 06:13 PM

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?

boozehound 02-23-2005 06:44 PM

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.

boozehound 02-23-2005 06:46 PM

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.

jlaine 03-01-2005 11:19 PM

Seems to allow signatures to bypass the censor globally - whether or not the forum is set to yes doesn't effect it.

boozehound 03-01-2005 11:54 PM

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.

jlaine 03-02-2005 01:41 AM

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


All times are GMT. The time now is 01:50 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.01280 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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