Difference between revisions of "Word censorship filter"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Word censorship filter.

(Updated for Moodle 2.0, created sub sections)
Line 2: Line 2:
 
<p class="note">'''Please refer to [[Page_notes#Filters|these notes]] before editing this page.'''</p>
 
<p class="note">'''Please refer to [[Page_notes#Filters|these notes]] before editing this page.'''</p>
  
Location: Word Censorship settings link in ''Administration > Modules > Filters''
+
Location: Word Censorship settings can be found at: ''Site Administration > Plugins > Filters''
  
The word censorship filter enables certain user-selected words to be "blacked out" in the flow of the text. The primary use is for censoring obscene or other unwanted words in the text.
+
The word censorship filter enables certain user-selected words to be "blacked out" in the flow of any text submitted within a course. The primary use is for censoring obscene or other unwanted words entered by learners in activities like Forums and Wikis.
  
In Moodle 1.6 onwards, the word censorship settings page allows the administrator to edit a list of words via a web interface. For backwards compatibility, the old list in the language pack is retained and will be used if the list on the settings page is empty. To avoid inadvertently causing offence, there is no default list on the settings page.
+
==Custom list of censored Words==
  
==Previous word censorship==
+
In Moodle 2.0 onwards, the word censorship settings page allows a site administrator to edit a custom list of words to be censored within your Moodle installation.
  
Prior to Moodle 1.6, the list of words is contained in the language pack in the file ''censor.php'' (Example: for German use ''lang/de/censor.php''). To change the word list you need to directly edit this file. A default list is provided for many languages. Warning: You may find the content of this file offensive.  
+
To avoid inadvertently causing offense, there is no default list on the Word censorship settings page. If the custom list is empty, the default list from the language pack will be used.
 +
 
 +
==Default censored Words==
 +
 
 +
The default ''badword' list is contained within the censor.php file within each language pack installed on your Moodle site. To change the default badword list go to ''Site Administration > Language > Language Customization'' and check out the required language pack(s).  Select the censor.php file under the '''filters''' subheading from the strings list and click '''Show strings'''. Warning: You may find the content of this file offensive.
 +
 
 +
==Tips and Tricks==
 +
*If you would prefer not to display a custom list of censored words on the Work Censorship Settings page, customize the censor.php file the language directly
 +
*If you have multiple language packs installed and in use within your Moodle site, remember to edit each language pack and/or add custom censored words in all languages.
  
 
==See also==
 
==See also==

Revision as of 09:24, 26 August 2011

Please refer to these notes before editing this page.

Location: Word Censorship settings can be found at: Site Administration > Plugins > Filters

The word censorship filter enables certain user-selected words to be "blacked out" in the flow of any text submitted within a course. The primary use is for censoring obscene or other unwanted words entered by learners in activities like Forums and Wikis.

Custom list of censored Words

In Moodle 2.0 onwards, the word censorship settings page allows a site administrator to edit a custom list of words to be censored within your Moodle installation.

To avoid inadvertently causing offense, there is no default list on the Word censorship settings page. If the custom list is empty, the default list from the language pack will be used.

Default censored Words

The default badword' list is contained within the censor.php file within each language pack installed on your Moodle site. To change the default badword list go to Site Administration > Language > Language Customization and check out the required language pack(s). Select the censor.php file under the filters subheading from the strings list and click Show strings. Warning: You may find the content of this file offensive.

Tips and Tricks

  • If you would prefer not to display a custom list of censored words on the Work Censorship Settings page, customize the censor.php file the language directly
  • If you have multiple language packs installed and in use within your Moodle site, remember to edit each language pack and/or add custom censored words in all languages.

See also