The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable swear filter for certain forums?
Does anyone think it would be possible to create a hack so as to disable the swear filter on just a few forums? By and large, we don't allow swearing at my board, but I would like to enable it for just a couple of forums. Is it possible? If so, could someone do this for me? :classic:
|
#2
|
||||
|
||||
in newthread.php, newreply.php, editpost.php find:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Awesome! Thanks.
Would these settings carry over to sub-forums, or would I need to add each forumid? |
#4
|
|||
|
|||
What if you wanted to have more than one forum included? And if it were just one forum, would x and y be the same number?
|
#5
|
||||
|
||||
Quote:
Quote:
if ($foruminfo[forumid]!=X) 2 forums: if ($foruminfo[forumid]!=X AND $foruminfo[forumid]!=Y) 3 forums: if ($foruminfo[forumid]!=X AND $foruminfo[forumid]!=Y AND $foruminfo[forumid]!=Z) 4 Forums: if ($foruminfo[forumid]!=X AND $foruminfo[forumid]!=Y AND $foruminfo[forumid]!=Z AND $foruminfo[forumid]!=W) etc. |
#6
|
||||
|
||||
This modification works for the subject but not the message body. The swear filter is not implemented for the message subject (meaning the subject can contain words in the censoer list in the thread title) but the body text still gets censored. There is a missing piece here somewhere.
|
#7
|
|||||
|
|||||
Quote:
here is the missing part: edit functions.php, find: Quote:
Quote:
Quote:
Quote:
|
#8
|
||||
|
||||
Thank you, that works correctly.
|
#9
|
||||
|
||||
Is there some kind of evaluation I can add to that section in functions.php that could test if it was a private message? As it is this modification allows censored text in Private Message body text but not titles.
|
#10
|
||||
|
||||
yep.. put a variable like "$my_priv_variable=1;" in private message related scripts right before it calls the function bbcodeparse2 and use the same method: Add the variable to the global line of the function and return result accordingly like:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|