vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Swear word filter per forum (https://vborg.vbsupport.ru/showthread.php?t=137122)

trancetopia 01-21-2007 09:20 AM

Swear word filter per forum
 
Hi, if anyone can do this I would be most greatful.

I need the swearword filter to be active on selected forums only. There is a mod for v3 that does this and i'd like to see the same or similar for v3.6.4

Hope anyone can help.

Thanks

Artificial_Alex 01-21-2007 12:46 PM

Agreed.

speedingpanther 05-20-2009 10:42 AM

was this possible in the end?

Lynne 05-20-2009 03:21 PM

Just create a plugin to turn it off in some forums - maybe fetch_foruminfo hook location?
PHP Code:

if ($forumid == 'x')
{
$vbulletin->options['whatever_the_option_is_called'] = '0';



speedingpanther 05-21-2009 09:05 AM

Hi Lynne

Thanks for the reply - but i'm a newb when it comes to code lol. Where would you plant the code? - the XML template?

Any tips?

Lynne 05-21-2009 03:09 PM

Best place to start is with the manual - Plugin System
See if that makes any sense and then post back with any questions.

Steven W Hill 07-01-2009 08:36 PM

I've done this myself, and it works perfectly. However, I'd like to find a way of deactivating the filter in posts but not in thread titles.

If I put this into fetch_postinfo instead of fetch_foruminfo, will it deactivate the filter in posts (in the specified forum) but retain the default filter setting for thread titles?

Lynne 07-01-2009 10:55 PM

Quote:

Originally Posted by Steven W Hill (Post 1840978)
If I put this into fetch_postinfo instead of fetch_foruminfo, will it deactivate the filter in posts (in the specified forum) but retain the default filter setting for thread titles?

I don't know, I've never tried it. Try it on your test site and see. Or do a quick test on your live board if you don't have a test site. You may have to replace $forumid with $thread['forumid'], but I'm not sure.

Steven W Hill 07-01-2009 11:52 PM

Yes, seems to have worked! Same exact code, just placed into fetch_postinfo instead of fetch_foruminfo.

I retained the fetch_foruminfo plug, but disabled it.

--------------- Added [DATE]1246503774[/DATE] at [TIME]1246503774[/TIME] ---------------

Quote:

Originally Posted by Steven W Hill (Post 1841085)
Yes, seems to have worked! Same exact code, just placed into fetch_postinfo instead of fetch_foruminfo.

I retained the fetch_foruminfo plug, but disabled it.

Ah, sadly, no, I was wrong. Thread titles censored, yes. Previous posts in threads not censored, yes. BUT new posts in threads are censored. I've set it back to the way it was until I can think of other things to try.


All times are GMT. The time now is 06:59 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.01033 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete