Big Bang Burger Bar Welcome, Guest. Please login or register.

Login with username, password and session length
23 April 2024, 13:50:44 *
 
   Home   Help Latest Posts Calendar Links Login Register  
HHGG Quote:
Bloody hell, now that is what I call thinking. - Majikthise
Pages: [1]   Go Down
  Print  
Author Topic: Remove Word Censor from specific board  (Read 2627 times)
0 Members and 1 Guest are viewing this topic.
Zarniwoop
Sysop
Administrator
Deep One
*******

Karma: 37
Offline Offline

BoardgameGeek: Oridyne
Posts: 2136


"One who cares is one who listens."


WWW
« on: 23 December 2010, 19:36:52 »

Post by Anguz (SMF Forum)

Quote
Code:
<edit file>
Sources/Load.php
</edit file>

<search for>// Replace all vulgar words with respective proper words. (substring or whole words..)function &censorText(&$text){ global $modSettings, $options, $settings; static $censor_vulgar = null, $censor_proper;
</search for>

<add after>
// Uncensored board.
global $board;
if (!empty($board) && $board == 129.0)
return $text;
</add after>

Replace the 1 with the ID of the board you want uncensored. If you want to forgive more than one board, you'd change that line to this:

Code:
	if (!empty($board) && ($board == 1 || $board == 2))

That'd not censor boards 1 and 2, you can add more. Again, you use the correct board IDs, this is just an example.
Logged

Regards,
Zarniwoop

<*> I'm dangerous when I know what I'm doing <*>

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Privacy Policy
Valid XHTML 1.0! Valid CSS!
Mimipunk | www.iconshock.com icons used contain images © by Douglas Adams

Google visited last this page 30 June 2018, 19:13:26