vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Disable Swear Censor Per Forum (https://vborg.vbsupport.ru/showthread.php?t=98269)

ImportPassion 10-12-2005 10:00 PM

Disable Swear Censor Per Forum
 
Here you go. Updated for 3.5 as a plugin. First one too! :)

Change the array of forum id's to the ones you want excluded from the swear censor.

I noticed there is another hack like this after I did it, but this has no db calls.

1.01 - Ok, for some reason the var forumids was messing up the edit attachments page in profile. So I renamed it. I just add "the" in front of it. So it is now $theforumids. You just need to go into the plugin and edit that, no need to download again if you have it installed already.

1.02 - As per boofo, I forgot one of the above vars I had to edit. All good now.

Daniel 10-13-2005 12:52 AM

Wow, thanks a bunch!

dsotmoon 10-13-2005 01:31 AM

i coulda swore i installed this a week ago ? ? ?

ImportPassion 10-13-2005 03:33 AM

updated...please read the Edit if you installed this.

Boofo 10-13-2005 04:48 AM

Uh, you need to change this:

PHP Code:

 if (in_array($forumid$forumids)) { 

to this:

PHP Code:

 if (in_array($forumid$theforumids)) { 

or it's never going to work, sir. ;)

ImportPassion 10-13-2005 04:50 AM

ur right, missed that one. :o

Oblivion Knight 10-13-2005 05:02 AM

Quote:

Originally Posted by dsotmoon
i coulda swore i installed this a week ago ? ? ?

Perhaps you installed this version? ;)

I've not looked, but I dare say that the code is different.

ImportPassion 10-13-2005 05:06 AM

he prolly did. I didn't notice it till after. BUt mine has no db calls.

GamerzWorld 10-13-2005 09:05 AM

Maybe have an on/off switch for all forums per user ;)

Cyricx 10-14-2005 01:14 AM

Totally different code :)

I didn't want hard coded IDs, wanted something that I wouldn't have to go back and edit each time I made a new forum I wanted to be disabled but that would have a simple yes/no box with it :)

Both ideas work great :)


Gamerz, I haven't had any luck getting it to parse or not based on user. I've tried alot of things with no luck so far :(


All times are GMT. The time now is 10:10 AM.

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.01495 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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