PDA

View Full Version : Swear word filter per forum


trancetopia
01-21-2007, 09:20 AM
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?
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 (http://www.vbulletin.com/docs/html/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
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 1246503774 at 1246503774 ---------------

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.