Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2007, 09:20 AM
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Location: Wales, UK.
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 01-21-2007, 12:46 PM
Artificial_Alex Artificial_Alex is offline
 
Join Date: Nov 2006
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Agreed.
Reply With Quote
  #3  
Old 05-20-2009, 10:42 AM
speedingpanther speedingpanther is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was this possible in the end?
Reply With Quote
  #4  
Old 05-20-2009, 03:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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';

Reply With Quote
  #5  
Old 05-21-2009, 09:05 AM
speedingpanther speedingpanther is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 05-21-2009, 03:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Best place to start is with the manual - Plugin System
See if that makes any sense and then post back with any questions.
Reply With Quote
  #7  
Old 07-01-2009, 08:36 PM
Steven W Hill Steven W Hill is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 07-01-2009, 10:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Steven W Hill View Post
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.
Reply With Quote
  #9  
Old 07-01-2009, 11:52 PM
Steven W Hill Steven W Hill is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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.
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 09:56 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.05205 seconds
  • Memory Usage 2,237KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete