<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/32/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aborrow</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/32/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Aborrow"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/Special:Contributions/Aborrow"/>
	<updated>2026-04-14T08:51:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Using_Git_to_backup_moodledata&amp;diff=116694</id>
		<title>Using Git to backup moodledata</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Using_Git_to_backup_moodledata&amp;diff=116694"/>
		<updated>2015-01-13T23:38:17Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: actually it does not hurt to backup /muc/config.php&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[GIT]] [https://docs.moodle.org/en/Development:Tracking_Moodle_CVS_with_git] is a distributed source code management system. For the purpose of this document, GIT&#039;s basic feature is that it allows to keep the whole history of a directory tree and track all changes. The basic idea of using GIT as a backup tool is that you can clone you moodledata directory on other disk and/or computer.&lt;br /&gt;
&lt;br /&gt;
Create new file called .gitignore in the moodledata with the following content:&lt;br /&gt;
&lt;br /&gt;
 cache&lt;br /&gt;
 lang&lt;br /&gt;
 localcache&lt;br /&gt;
 lock&lt;br /&gt;
 sessions&lt;br /&gt;
 temp&lt;br /&gt;
 trashdir&lt;br /&gt;
&lt;br /&gt;
Transform your moodledata into the git repository:&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git init&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -m &amp;quot;Initial commit of moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Put following commands into the cronjob&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -a -m &amp;quot;AUTO: committed changes in moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a backup clone on local machine, e.g. on a separate disk&lt;br /&gt;
&lt;br /&gt;
 cd /mnt/backup&lt;br /&gt;
 git clone --no-hardlinks --bare /srv/www/moodledata/.git datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Push changes into a bare clone&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git push /mnt/backup/datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Or, pull changes from the clone (here created on a separate machine)&lt;br /&gt;
&lt;br /&gt;
 git --bare fetch ssh://your.moodle.serv.er/backup/datamoodle.git master:master&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Using_Git_to_backup_moodledata&amp;diff=116693</id>
		<title>Using Git to backup moodledata</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Using_Git_to_backup_moodledata&amp;diff=116693"/>
		<updated>2015-01-13T23:35:30Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: adding some other directories that I think are save to ignore&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[GIT]] [https://docs.moodle.org/en/Development:Tracking_Moodle_CVS_with_git] is a distributed source code management system. For the purpose of this document, GIT&#039;s basic feature is that it allows to keep the whole history of a directory tree and track all changes. The basic idea of using GIT as a backup tool is that you can clone you moodledata directory on other disk and/or computer.&lt;br /&gt;
&lt;br /&gt;
Create new file called .gitignore in the moodledata with the following content:&lt;br /&gt;
&lt;br /&gt;
 cache&lt;br /&gt;
 lang&lt;br /&gt;
 localcache&lt;br /&gt;
 lock&lt;br /&gt;
 muc&lt;br /&gt;
 sessions&lt;br /&gt;
 temp&lt;br /&gt;
 trashdir&lt;br /&gt;
&lt;br /&gt;
Transform your moodledata into the git repository:&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git init&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -m &amp;quot;Initial commit of moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Put following commands into the cronjob&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git add .&lt;br /&gt;
 git commit -a -m &amp;quot;AUTO: committed changes in moodledata&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create a backup clone on local machine, e.g. on a separate disk&lt;br /&gt;
&lt;br /&gt;
 cd /mnt/backup&lt;br /&gt;
 git clone --no-hardlinks --bare /srv/www/moodledata/.git datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Push changes into a bare clone&lt;br /&gt;
&lt;br /&gt;
 cd /srv/www/moodledata&lt;br /&gt;
 git push /mnt/backup/datamoodle.git&lt;br /&gt;
&lt;br /&gt;
Or, pull changes from the clone (here created on a separate machine)&lt;br /&gt;
&lt;br /&gt;
 git --bare fetch ssh://your.moodle.serv.er/backup/datamoodle.git master:master&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116111</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116111"/>
		<updated>2014-11-24T08:12:41Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Replaced content with &amp;quot;#REDIRECT Upload_cohorts&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Upload_cohorts]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116110</id>
		<title>Upload cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116110"/>
		<updated>2014-11-24T08:11:53Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]].  {{New features}}&lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used.&lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116109</id>
		<title>Upload cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116109"/>
		<updated>2014-11-24T08:10:53Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: adding new features&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}} {{New features}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used.&lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116108</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116108"/>
		<updated>2014-11-24T08:10:10Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Creating cohorts in bulk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[Upload_cohorts|Upload cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[[cohort/upload|Upload cohorts]]&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116107</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116107"/>
		<updated>2014-11-24T08:09:27Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Creating cohorts in bulk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[Upload_cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[[cohort/upload|Upload cohorts]]&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116106</id>
		<title>admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116106"/>
		<updated>2014-11-24T08:08:10Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Replaced content with &amp;quot;#REDIRECT User_default_preferences&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[User_default_preferences]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116105</id>
		<title>admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116105"/>
		<updated>2014-11-24T07:59:04Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: redirecting to User default preferences page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[User_default_preferences]]&lt;br /&gt;
&lt;br /&gt;
{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
User default preferences allow a site administrator to specify the default values for some of the user profile options including:&lt;br /&gt;
==Email display==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow only other course members to see my email address&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Hide my email address from everyone&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow everyone to see my email address&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email format==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Pretty HTML format&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Plain text format&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email digest type==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No digest (single email per forum post)&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Complete (daily email with full posts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Subjects (daily email with subjects only)&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum auto-subscibe==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: when I post, subscibe me to that forum discussion&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t automatically subscibe me to forum discussions&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum tracking==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t keep track of posts I have seen&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: highlight new posts for me&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=User_default_preferences&amp;diff=116104</id>
		<title>User default preferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=User_default_preferences&amp;diff=116104"/>
		<updated>2014-11-24T07:56:11Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: creating User default preferences page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
User default preferences allow a site administrator to specify the default values for some of the user profile options including:&lt;br /&gt;
==Email display==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow only other course members to see my email address&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Hide my email address from everyone&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow everyone to see my email address&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email format==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Pretty HTML format&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Plain text format&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email digest type==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No digest (single email per forum post)&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Complete (daily email with full posts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Subjects (daily email with subjects only)&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum auto-subscibe==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: when I post, subscibe me to that forum discussion&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t automatically subscibe me to forum discussions&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum tracking==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t keep track of posts I have seen&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: highlight new posts for me&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116103</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116103"/>
		<updated>2014-11-24T07:52:00Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Redirected page to Upload cohorts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Upload_cohorts]]&lt;br /&gt;
&lt;br /&gt;
{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used.&lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116102</id>
		<title>Upload cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Upload_cohorts&amp;diff=116102"/>
		<updated>2014-11-24T07:51:08Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: creating upload cohorts page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used.&lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Talk:admin/setting/userdefaultpreferences&amp;diff=116096</id>
		<title>Talk:admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Talk:admin/setting/userdefaultpreferences&amp;diff=116096"/>
		<updated>2014-11-23T23:14:26Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Created page with &amp;quot;Similarly to the upload cohorts page, I created this using the auto-generate link at the bottom of the page; however, I wonder if it should redirect or be renamed to a page wi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Similarly to the upload cohorts page, I created this using the auto-generate link at the bottom of the page; however, I wonder if it should redirect or be renamed to a page with a reader friendlier name like Default user preferences.&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Talk:cohort/upload&amp;diff=116095</id>
		<title>Talk:cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Talk:cohort/upload&amp;diff=116095"/>
		<updated>2014-11-23T23:12:07Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Created page with &amp;quot;Should this page be renamed to Upload cohorts? I just used the auto-generate URL from within Moodle so that there would be a help page but visually it appears awkward on the A...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Should this page be renamed to Upload cohorts? I just used the auto-generate URL from within Moodle so that there would be a help page but visually it appears awkward on the Accounts page - https://docs.moodle.org/32/en/Category:Accounts.&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116094</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116094"/>
		<updated>2014-11-23T23:07:22Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: reverting adding accounts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[cohort/upload|upload cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[[cohort/upload|Upload cohorts]]&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116093</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116093"/>
		<updated>2014-11-23T23:04:54Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}} {{Accounts}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[cohort/upload|upload cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[[cohort/upload|Upload cohorts]]&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116092</id>
		<title>admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116092"/>
		<updated>2014-11-23T23:00:35Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
User default preferences allow a site administrator to specify the default values for some of the user profile options including:&lt;br /&gt;
==Email display==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow only other course members to see my email address&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Hide my email address from everyone&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow everyone to see my email address&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email format==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Pretty HTML format&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Plain text format&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Email digest type==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No digest (single email per forum post)&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Complete (daily email with full posts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Subjects (daily email with subjects only)&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum auto-subscibe==&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: when I post, subscibe me to that forum discussion&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t automatically subscibe me to forum discussions&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Forum tracking==&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t keep track of posts I have seen&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: highlight new posts for me&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116090</id>
		<title>admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116090"/>
		<updated>2014-11-23T22:58:25Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
User default preferences allow a site administrator to specify the default values for some of the user profile options including:&lt;br /&gt;
*Email display&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow only other course members to see my email address&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Hide my email address from everyone&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Allow everyone to see my email address&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Email format&lt;br /&gt;
:&amp;lt;pre&amp;gt;Pretty HTML format&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Plain text format&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Email digest type&lt;br /&gt;
:&amp;lt;pre&amp;gt;No digest (single email per forum post)&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Complete (daily email with full posts)&amp;lt;/pre&amp;gt;&lt;br /&gt;
:&amp;lt;pre&amp;gt;Subjects (daily email with subjects only)&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Forum auto-subscibe&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: when I post, subscibe me to that forum discussion&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t automatically subscibe me to forum discussions&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Forum tracking&lt;br /&gt;
:&amp;lt;pre&amp;gt;No: don&#039;t keep track of posts I have seen&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
:&amp;lt;pre&amp;gt;Yes: highlight new posts for me&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116089</id>
		<title>admin/setting/userdefaultpreferences</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=admin/setting/userdefaultpreferences&amp;diff=116089"/>
		<updated>2014-11-23T22:53:58Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: Creating admin/setting/userdefaultpreferences&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
&lt;br /&gt;
User default preferences allow a site administrator to specify the default values for some of the user profile options including:&lt;br /&gt;
*Email display&lt;br /&gt;
;Allow only other course members to see my email address [default]&lt;br /&gt;
;Hide my email address from everyone&lt;br /&gt;
;Allow everyone to see my email address&lt;br /&gt;
*Email format&lt;br /&gt;
;Pretty HTML format [default]&lt;br /&gt;
;Plain text format&lt;br /&gt;
*Email digest type&lt;br /&gt;
;No digest (single email per forum post) [default]&lt;br /&gt;
;Complete (daily email with full posts)&lt;br /&gt;
;Subjects (daily email with subjects only)&lt;br /&gt;
Forum auto-subscibe&lt;br /&gt;
;&amp;lt;pre&amp;gt;Yes: when I post, subscibe me to that forum discussion&amp;lt;/pre&amp;gt;&lt;br /&gt;
;&amp;lt;pre&amp;gt;No: don&#039;t automatically subscibe me to forum discussions&amp;lt;/pre&amp;gt;&lt;br /&gt;
Forum tracking&lt;br /&gt;
;&amp;lt;pre&amp;gt;No: don&#039;t keep track of posts I have seen&amp;lt;/pre&amp;gt; [default]&lt;br /&gt;
;&amp;lt;pre&amp;gt;Yes: highlight new posts for me&amp;lt;/pre&amp;gt; [default]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116088</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116088"/>
		<updated>2014-11-23T22:39:25Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* See also */ - adding a link to cohort/upload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[cohort/upload|upload cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[[cohort/upload|Upload cohorts]]&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116087</id>
		<title>Cohorts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohorts&amp;diff=116087"/>
		<updated>2014-11-23T22:33:52Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Creating cohorts in bulk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grouping users}}&lt;br /&gt;
Cohorts are site-wide or category-wide groups. Cohorts enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically&lt;br /&gt;
 &lt;br /&gt;
==Creating a cohort==&lt;br /&gt;
&lt;br /&gt;
Cohorts can be created by site administrators and other users with appropriate permissions.&lt;br /&gt;
&lt;br /&gt;
* Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts&#039;&#039;&lt;br /&gt;
[[File:Createcohort1.png|thumb|center|400px]]&lt;br /&gt;
* Click the Add button&lt;br /&gt;
*&#039;&#039;&#039;NOTE&#039;&#039;&#039; In the dropdown you can choose between making your cohort available throughout the site &amp;quot;system&amp;quot; or in a named category.&lt;br /&gt;
*Cohorts are visible to teachers by default but unchecking the &#039;Visible&#039; link will mean they are not available for teachers to use in their courses. {{New features}}&lt;br /&gt;
*Complete the details and save the changes.&lt;br /&gt;
* Follow the assign link opposite the cohort name in the list of available cohorts.&lt;br /&gt;
[[File:cohortscreen.png|thumb|center|600px]]&lt;br /&gt;
* Select potential users from the list then click the Add button.&lt;br /&gt;
&lt;br /&gt;
To synchronise cohort members with course participants, the [[Cohort sync]] enrolment plugin should be enabled in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Creating cohorts in bulk==&lt;br /&gt;
{{New features}}&lt;br /&gt;
#Cohorts can be created with a csv file upload to the system or to a named category from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&amp;gt;Upload cohorts&#039;&#039;. More detailed information can be found on the [[cohort/upload|upload cohorts]] page.  &lt;br /&gt;
#Category managers can upload csv files to create cohorts from the Cohorts link in the Administration block of their category. &lt;br /&gt;
#An example file is below. The &#039;Students 2014-15&#039; cohort will be created in the system and the &#039;History&#039; cohort will be created in the (already existing) Humanities category:&lt;br /&gt;
&lt;br /&gt;
[[File:cohortupload.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
==Adding users to a cohort in bulk==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Bulk user actions&#039;&#039;&lt;br /&gt;
#Find users by setting an appropriate filter&lt;br /&gt;
#Add users from the available list to the selected list&lt;br /&gt;
#Choose &#039;Add to cohort&#039; with selected users&lt;br /&gt;
&lt;br /&gt;
==Uploading users to a cohort==&lt;br /&gt;
&lt;br /&gt;
An administrator can [[Upload users|upload users]] via CSV file to existing cohorts as follows:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
#Upload a text file with the following format:&lt;br /&gt;
&lt;br /&gt;
 username,password,firstname,lastname,email, cohort1&lt;br /&gt;
 tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3&lt;br /&gt;
 marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4&lt;br /&gt;
&lt;br /&gt;
where year3 and year4 are the &#039;&#039;&#039;cohort ids&#039;&#039;&#039; of existing cohorts (i.e. &#039;&#039;not their names&#039;&#039;).&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: If the users already exist on the system, then you only need their username with the chosen cohort in your csv file.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It is also possible to create the cohort at the same time as the users are uploaded to the system.&lt;br /&gt;
 username,password, firstname,lastname,email,cohort1&lt;br /&gt;
 jackbrown,Pass5678,Jack,Brown,jbrown@example.com,London Contingent&lt;br /&gt;
In the above example, the cohort named London Contingent will be created upon upload of the csv file.&lt;br /&gt;
&lt;br /&gt;
==Searching cohorts==&lt;br /&gt;
When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available &lt;br /&gt;
cohorts. &lt;br /&gt;
&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
An All Cohorts screen accessed from &#039;&#039;Site administration&amp;gt;Users&amp;gt;Accounts&amp;gt;Cohorts&#039;&#039; allows an administrator to view and search through system and category cohorts.&lt;br /&gt;
&lt;br /&gt;
[[File:AllCohortsscreen.png|thumb|center|600px]]&lt;br /&gt;
&lt;br /&gt;
==Managing category cohorts==&lt;br /&gt;
Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the &#039;&#039;Cohorts&#039;&#039; link in &#039;&#039;Administration&amp;gt;Category (name)&amp;gt;Cohorts&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Cohort capabilities==&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/moodle/cohort:assign|Add and remove cohort members]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:manage|Create, delete and move cohorts]]&lt;br /&gt;
*[[Capabilities/enrol/cohort:config|Configure cohort instances]]&lt;br /&gt;
*[[Capabilities/moodle/cohort:view|View site-wide cohorts]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Cohort sync]] enrolment method&lt;br /&gt;
*[http://youtu.be/FQ6RjeU3ybQ?list=PLxcO_MFWQBDdJmqW4tD5qXJ6pPXWTP7GL Cohorts 2.8 screencast] from Moodle HQ&lt;br /&gt;
*MDL-34189 Make category cohorts visible site-wide for site administrators&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/11/22/using-cohorts-with-moodle-2-2/ Using cohorts with Moodle 2.2] blog entry by Gavin Henrick&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Cohortes]]&lt;br /&gt;
[[de:Globale Gruppen]]&lt;br /&gt;
[[es:Cohortes]]&lt;br /&gt;
[[ja:コーホート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Managing_accounts&amp;diff=116086</id>
		<title>Managing accounts</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Managing_accounts&amp;diff=116086"/>
		<updated>2014-11-23T22:31:19Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing a Moodle site}}&lt;br /&gt;
&lt;br /&gt;
An administrator can perform various tasks relating to user accounts in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts&#039;&#039;. The links below provide more information:&lt;br /&gt;
&lt;br /&gt;
* [[Browse list of users]] - how to search for, find and edit user accounts&lt;br /&gt;
* [[Bulk user actions]] - how to message, confirm, download or perform other actions on a  large group of users globally&lt;br /&gt;
* [[Add a new user]] - how to create one individual user account&lt;br /&gt;
* [[admin/setting/userdefaultpreferences|User default preferences]] - how to set user default preferences &lt;br /&gt;
* [[User profile fields]] -  how to create customised profile fields&lt;br /&gt;
* [[Cohorts]] - how to create cohorts of users &lt;br /&gt;
* [[Upload users]] - how to  bulk create new user accounts&lt;br /&gt;
* [[Upload user pictures]] - how to bulk upload profile pictures for users&lt;br /&gt;
&lt;br /&gt;
* [[Additional name fields]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Accounts FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Accounts]]&lt;br /&gt;
&lt;br /&gt;
[[de:Nutzerverwaltung]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116085</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116085"/>
		<updated>2014-11-23T22:24:41Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Default context */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used.&lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116084</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116084"/>
		<updated>2014-11-23T22:22:58Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextd&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used. &lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;br /&gt;
* [[Cohorts#Creating_cohorts_in_bulk|Creating cohorts in bulk]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116083</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116083"/>
		<updated>2014-11-23T22:21:25Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* File */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the [[cohort/upload#File_format_for_the_upload_cohorts_file|File format for the upload cohorts file]] section for more detailed information about the cohorts upload file.&lt;br /&gt;
&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextd&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used. &lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116082</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116082"/>
		<updated>2014-11-23T22:19:56Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* CSV delimiter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the File format for the upload cohorts file section for more detailed information about the cohorts upload file.&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  - uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  - uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  - uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  - uses \t (tab) as the field delimiter&lt;br /&gt;
&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextd&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used. &lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116081</id>
		<title>cohort/upload</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=cohort/upload&amp;diff=116081"/>
		<updated>2014-11-23T22:18:59Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: creating an initial page for cohort/upload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple cohorts from a CSV (comma separated values) formatted text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&#039;. Cohorts can be created in both the system (site-wide) context or in the [[Course_categories|course category context]]. &lt;br /&gt;
&lt;br /&gt;
==Upload cohort process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create cohort file for uploading (CSV text file with a &#039;name&#039; column and the name of each new cohort on a new line)&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Cohorts &amp;gt; Upload cohorts&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload cohort preview - review settings and check for any errors. If errors are reported with the file, correct as needed.&lt;br /&gt;
# Upload cohorts - click &amp;quot;Upload cohorts&amp;quot;&lt;br /&gt;
# Upload cohorts results - shows how many cohorts were created &lt;br /&gt;
# Upload cohorts results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
===Settings===&lt;br /&gt;
====File====&lt;br /&gt;
The CSV formatted text file containing cohort data to be uploaded. See the File format for the upload cohorts file section for more detailed information about the cohorts upload file.&lt;br /&gt;
====CSV delimiter====&lt;br /&gt;
The character used as a delimiter between fields in the cohort upload file. The delimiter separates the various fields on a single line. By default, a comma (&#039;,&#039;) is used as the delimiter; however, other options are available.&lt;br /&gt;
; &amp;lt;pre&amp;gt;,&amp;lt;/pre&amp;gt;  : uses the comma character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;;&amp;lt;/pre&amp;gt;  : uses the semicolon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;:&amp;lt;/pre&amp;gt;  : uses the colon character as the field delimiter&lt;br /&gt;
; &amp;lt;pre&amp;gt;\t&amp;lt;/pre&amp;gt;  : uses \t (tab) as the field delimiter&lt;br /&gt;
====Encoding====&lt;br /&gt;
You can specify the character encoding of the upload cohorts file. The default character encoding is UTF-8.&lt;br /&gt;
====Default context====&lt;br /&gt;
You can specify the default context to use from a list of available contexts. The default context is the System context (i.e. site-wide). A list of course categories will be listed and one of those course categories can be selected as the default context if one is not provided in the upload cohorts file. If the &amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; (or one of the available fields to lookup the &amp;lt;code&amp;gt;contextd&amp;lt;/code&amp;gt;) is provided, then that value will be used; however, if a contextid is not provided for a particular cohort the default context will be used. &lt;br /&gt;
&lt;br /&gt;
==File format for the upload cohorts file==&lt;br /&gt;
The upload cohorts CSV text file has fields separated by a comma (or other delimiter).  The first line contains valid field names (preferrably lower case). The rest of the lines (records) contain information about each new cohort.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. &lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spreadsheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can then be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload cohorts file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;name,idnumber,description&#039;&#039;&#039;&lt;br /&gt;
Class of 2019,2019,Members of the Class of 2019&lt;br /&gt;
Class of 2020,2020,Members of the Class of 2020&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; - the name of the cohort to be created&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of the following optional fields:&lt;br /&gt;
:&amp;lt;code&amp;gt;contextid&amp;lt;/code&amp;gt; - used to specify the context id number of the cohorts you are uploading. For example, the context id number of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;idnumber&amp;lt;/code&amp;gt; - used to provide an id number for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;description&amp;lt;/code&amp;gt; - used to provide a description for the cohorts you are uploading&lt;br /&gt;
:&amp;lt;code&amp;gt;descriptionformat&amp;lt;/code&amp;gt; - used to specify the text format of the description. By default, the descriptionformat is set to the recommended value of 1 (FORMAT_HTML); however, values of 0 (FORMAT_MOODLE) and 2 (FORMAT_PLAIN) are also available. These format values are defined in lib/weblib.php.&lt;br /&gt;
:&amp;lt;code&amp;gt;visible&amp;lt;/code&amp;gt; - used to specify whether the cohorts you are uploading should be visible (1) or not (0). &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Additional fields&#039;&#039;&#039; : If needed, there are some additional fields that while not normally used can be utilized. Additional fields typically require looking up information in other tables (such as the course categories or context tables). The additional fields provide an alternative way of finding the course category context id. A bit of extra caution is recommended in using these additional fields. The list of additional fields includes: &lt;br /&gt;
:&amp;lt;code&amp;gt;context&amp;lt;/code&amp;gt; - used to specify the name of the context name for each of the cohorts you are uploading. &lt;br /&gt;
:&amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; - used to specify the name of the category name for each of the cohorts you are uploading. For example, the category name of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_id&amp;lt;/code&amp;gt; - used to specify the course category id (not idnumber) of the category for each of the cohorts you are uploading. For example, the course category id of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_idnumber&amp;lt;/code&amp;gt; - used to specify the course category idnumber (not id) of the category for each of the cohorts you are uploading. For example, the course category idnumber of a particular course category.&lt;br /&gt;
:&amp;lt;code&amp;gt;category_path&amp;lt;/code&amp;gt; - used to specify the course category path of the category for each of the cohorts you are uploading. For example, the course category path of a particular course category.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cohorts]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Context&amp;diff=116080</id>
		<title>Context</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Context&amp;diff=116080"/>
		<updated>2014-11-23T20:42:56Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main page}}&lt;br /&gt;
A context is a space in Moodle where [[Roles_and_capabilities|roles]] can be assigned. For example, a Moodle site is one context and that contains a number of other contexts within it. A category is a context, within a site context, that contains courses and sub-categories that have a context of their own. &lt;br /&gt;
&lt;br /&gt;
A [[Courses|course]] may hold, within its own context, an activity, or a [[Question bank]]&#039;s question category, which are also contexts. A context might contain other contexts and Roles can be assigned to each context. &lt;br /&gt;
&lt;br /&gt;
There is a hierarchy of contexts which helps locate and define a specific space. A course can have many contexts in its space.  These might include lesson, assignment, forum and quiz modules and blocks. &lt;br /&gt;
&lt;br /&gt;
Generally speaking, this hierarchy allows a lower context to receive information from a higher context.  Thus a student in the context of Course A, will initially be considered a student in a Quiz context that is located in Course A. Or when a theme has been set for the Biology course categories, that is passed on to Biology 101. &lt;br /&gt;
&lt;br /&gt;
==Roles  and contexts==&lt;br /&gt;
A context is combined with role permissions to define a User&#039;s [[Roles and capabilities|capabilities]] on any page in Moodle.  Typically contexts have their own organization structure which allow a User&#039;s role to be passed along to the context &amp;quot;below&amp;quot; but not to the one above it.[[Image:context.png|right|thumb|150px|Each context can have a different role assigned to a User]]  &lt;br /&gt;
&lt;br /&gt;
It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of &amp;quot;student&amp;quot; for a course but be given a teacher&#039;s role in the context of one specific forum. Or a user can be a teacher of one course and a student in another course.  &lt;br /&gt;
&lt;br /&gt;
Many Moodle contexts have a place to grant exceptions to specific roles within that context. Those exceptions are non-transferable from that context. That is, an exception can be applied to the next context downward, but cannot applied sideways nor upward from that context.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Graphic showing contexts within contexts ==&lt;br /&gt;
&lt;br /&gt;
The image below shows a few contexts and their relationships.  The &amp;quot;System&amp;quot; or Moodle site is the overall context.  The user is defined initially in this context.   &lt;br /&gt;
*The System context has 2 contexts under it, with other context under them&lt;br /&gt;
**The Front page context has &lt;br /&gt;
*** An activity module context and &lt;br /&gt;
*** A block context within it&lt;br /&gt;
**The Course Category context has&lt;br /&gt;
***A Course context within it.  The course context has&lt;br /&gt;
**** An activity module context and &lt;br /&gt;
****A block context within it&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle-contexts-1.8.png]]&lt;br /&gt;
&lt;br /&gt;
(Source: [[Development:Roles#Context]])&lt;br /&gt;
&lt;br /&gt;
==Another graphic of hierarchy==&lt;br /&gt;
[[File:Hierarchycategories.png|thumb|center|Showing the Site &amp;gt; Category &amp;gt; Course contexts but not activities]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Roles FAQ]]&lt;br /&gt;
*[[Course_categories|Course categories context]]&lt;br /&gt;
&lt;br /&gt;
[[es:Contexto]]&lt;br /&gt;
[[fr:Contextes]]&lt;br /&gt;
[[ja:コンテクスト]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Context&amp;diff=116079</id>
		<title>Context</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Context&amp;diff=116079"/>
		<updated>2014-11-23T20:40:03Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* See also */ - adding the course categories context&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main page}}&lt;br /&gt;
A context is a space in Moodle where [[Roles_and_capabilities|roles]] can be assigned. For example, a Moodle site is one context and that contains a number of other contexts within it. A category is a context, within a site context, that contains courses and sub-categories that have a context of their own. &lt;br /&gt;
&lt;br /&gt;
A [[Courses|course]] may hold, within its own context, an activity, or a [[Question bank]]&#039;s question category, which are also contexts. A context might contain other contexts and Roles can be assigned to each context. &lt;br /&gt;
&lt;br /&gt;
There is a hierarchy of contexts which helps locate and define a specific space. A course can have many contexts in its space.  These might include lesson, assignment, forum and quiz modules and blocks. &lt;br /&gt;
&lt;br /&gt;
Generally speaking, this hierarchy allows a lower context to receive information from a higher context.  Thus a student in the context of Course A, will initially be considered a student in a Quiz context that is located in Course A. Or when a theme has been set for the Biology course categories, that is passed on to Biology 101. &lt;br /&gt;
&lt;br /&gt;
==Roles  and contexts==&lt;br /&gt;
A context is combined with role permissions to define a User&#039;s [[Roles and capabilities|capabilities]] on any page in Moodle.  Typically contexts have their own organization structure which allow a User&#039;s role to be passed along to the context &amp;quot;below&amp;quot; but not to the one above it.[[Image:context.png|right|thumb|150px|Each context can have a different role assigned to a User]]  &lt;br /&gt;
&lt;br /&gt;
It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of &amp;quot;student&amp;quot; for a course but be given a teacher&#039;s role in the context of one specific forum. Or a user can be a teacher of one course and a student in another course.  &lt;br /&gt;
&lt;br /&gt;
Many Moodle contexts have a place to grant exceptions to specific roles within that context. Those exceptions are non-transferable from that context. That is, an exception can be applied to the next context downward, but cannot applied sideways nor upward from that context.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Graphic showing contexts within contexts ==&lt;br /&gt;
&lt;br /&gt;
The image below shows a few contexts and their relationships.  The &amp;quot;System&amp;quot; or Moodle site is the overall context.  The user is defined initially in this context.   &lt;br /&gt;
*The System context has 2 contexts under it, with other context under them&lt;br /&gt;
**The Front page context has &lt;br /&gt;
*** An activity module context and &lt;br /&gt;
*** A block context within it&lt;br /&gt;
**The Course Category context has&lt;br /&gt;
***A Course context within it.  The course context has&lt;br /&gt;
**** An activity module context and &lt;br /&gt;
****A block context within it&lt;br /&gt;
&lt;br /&gt;
[[Image:Moodle-contexts-1.8.png]]&lt;br /&gt;
&lt;br /&gt;
(Source: [[Development:Roles#Context]])&lt;br /&gt;
&lt;br /&gt;
==Another graphic of hierarchy==&lt;br /&gt;
[[File:Hierarchycategories.png|thumb|center|Showing the Site &amp;gt; Category &amp;gt; Course contexts but not activities]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Roles FAQ]]&lt;br /&gt;
*[[Course_categories]]&lt;br /&gt;
&lt;br /&gt;
[[es:Contexto]]&lt;br /&gt;
[[fr:Contextes]]&lt;br /&gt;
[[ja:コンテクスト]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Upload_users&amp;diff=116057</id>
		<title>Upload users</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Upload_users&amp;diff=116057"/>
		<updated>2014-11-22T23:01:35Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: updating from 2.7 version of the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
An administrator can upload multiple user accounts via text file in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
There are many robust options for uploading information (fields associated with a user) with this method: from enrolling users in multiple courses with course specific [[Roles|roles]] to updating user information in the [[User profile]] to deleting users from the site.&lt;br /&gt;
&lt;br /&gt;
Rather than uploading the text file, it can simply dragged from the desktop and dropped into the upload area, as demonstrated in the screencast [http://youtu.be/6E-TQXTkZB0 Drag and drop new users into Moodle 2.3] (by Mary Cooch).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039; It is usually not necessary to upload users in bulk with Upload users.  To keep maintenance work down you should first explore forms of authentication that do not require manual maintenance, such as [[External database authentication|connecting to existing external databases]] or letting the users create their own accounts ([[Self enrolment]]). See [[Authentication]] for more information.&lt;br /&gt;
&lt;br /&gt;
[[File:uploadusersnew.png|thumb|500px|center|Initial upload users screen]]&lt;br /&gt;
&lt;br /&gt;
==Upload user process==&lt;br /&gt;
Here is an outline of the process:&lt;br /&gt;
&lt;br /&gt;
# Create file for uploading&lt;br /&gt;
# Go to &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload users preview - check settings and default user profile settings&lt;br /&gt;
# Upload users preview - click &amp;quot;Upload users&amp;quot;&lt;br /&gt;
# Upload users results - shows list of users, exceptions made in upload and summary of number of users&lt;br /&gt;
# Upload users results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
==Updating users preview==&lt;br /&gt;
There are various settings to better control the desired upload behaviour. These settings are found on the &amp;quot;Upload users preview&amp;quot; page.&lt;br /&gt;
[[File:Upload users preview 2.0.JPG|thumb|center|Upload users preview in Moodle 2.x]]&lt;br /&gt;
&lt;br /&gt;
===Settings=== &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039;: errors updating existing accounts can affect your users badly. &#039;&#039;&#039;&#039;&#039;Be careful&#039;&#039;&#039;&#039;&#039; when using the options to update.&lt;br /&gt;
&lt;br /&gt;
====Upload type====&lt;br /&gt;
The Upload type specifies how to handle existing accounts.&lt;br /&gt;
;Add new only, skip existing users : is the default Moodle upload type. It creates a new user account for each new record in the uploaded file. If an existing &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; is found (i.e., the &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; in the uploaded file matches an existing &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;, that record is &#039;&#039;&#039;skipped&#039;&#039;&#039;. By skipping the existing user account, the data in the existing record is not touched (in contrast to the &amp;quot;Add new and update existing users&amp;quot; option) and a second new user account is &#039;&#039;&#039;not&#039;&#039;&#039; created (in contrast to the &amp;quot;Add all, append number to usernames if needed&amp;quot; option). &lt;br /&gt;
;Add all, append number to usernames if needed : creates a new user account for each record in the uploaded file. If an existing user account is found, a new account will be created with a number appended to the &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;. For example, if a user account for &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; &#039;jsmith&#039; already exists and a new record in the uploaded file contains a record for &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; &#039;jsmith&#039; an additional user account is created with a 1 &#039;&#039;&#039;appended&#039;&#039;&#039; to the &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; to produce user &#039;jsmith1&#039;. &lt;br /&gt;
;Add  new and update existing users : creates a new user account for each new user in the upload file. If an existing user account with the same &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; is found, the account information is &#039;&#039;&#039;updated&#039;&#039;&#039; by the data in the uploaded file. &lt;br /&gt;
;Update existing users only : ignores any new users found in the upload file and updates the user account if a matching &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; record is found in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
====New user password====&lt;br /&gt;
When creating a new user account Moodle can create a new password (if one is not provided) or require a password in the uploaded file.&lt;br /&gt;
;Create password if needed : creates a default password for the new user account if one is not provided in the uploaded file.&lt;br /&gt;
;Field required in file : requires that a password be provided in the uploaded file in order. If a password is not provided, an error is generated and the user account is not created.&lt;br /&gt;
&lt;br /&gt;
====Existing user details====&lt;br /&gt;
The Existing user details options are only available when the Upload type allows existing user accounts to be updated. It specifies how Moodle should process user detail information for existing users.&lt;br /&gt;
;No changes : ignores user detail data in the uploaded and leaves the existing user account data unchanged.&lt;br /&gt;
;Override with file : overwrites data in the existing user account with the data provided in the uploaded file.&lt;br /&gt;
;Override with file and defaults : overwrites data in the existing user account with data provided in the uploaded file and fills in the default values for existing user details when no data is provided in the uploaded file.&lt;br /&gt;
;Fill in missing from file and defaults : adds data in the existing user account with data provided in the uploaded file if the field is empty (does not already contain data) and fills in the default values for existing user details when no data is provided in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
====Existing user password====&lt;br /&gt;
The Existing user password option specifies how to handle password data for existing user accounts when Existing user details is set to overwrite data.&lt;br /&gt;
;No changes : ignores password field in the uploaded user file and leaves the existing user account password untouched&lt;br /&gt;
;Update : overwrites the existing user account password with the password provided in the uploaded file&lt;br /&gt;
&lt;br /&gt;
====Force password change====&lt;br /&gt;
The Force password change option specifies when to tag a user account so that the next login attempt will require the user to change the user&#039;s password.&lt;br /&gt;
;Users having a weak password : If the user account has a weak password as defined by the stie&#039;s [[Password_policy#Password_policy|Password policy]] then the user will be forced to change the password during the next login attempt. This option is not shown if there the site does not have a [[Password_policy#Password_policy|Password policy]], in other words &amp;lt;code&amp;gt;$CFG-&amp;gt;passwordpolicy&amp;lt;/code&amp;gt; must be set to see this option. &lt;br /&gt;
;None : None of the users in the uploaded file will be forced to change the password during the user&#039;s next login attempt.&lt;br /&gt;
;All : All of the users in the uploaded file will be forced to change the password during the user&#039;s next login attempt.&lt;br /&gt;
&lt;br /&gt;
====Allow renames====&lt;br /&gt;
If the uploaded flie contains the special &amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt; field, it is possible to rename a user from the &amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt; to a new &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;. The default setting is to &#039;&#039;&#039;not&#039;&#039;&#039; allow renames. Keep in mind that renaming a user will require the user to use the new username when logging in.&lt;br /&gt;
;No : ignores the &amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt; field and leaves the existing user account&#039;s &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; field unchanged.&lt;br /&gt;
;Yes : allows the existing user account&#039;s &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; to be changed by the data provided in the uploaded file&#039;s &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; field. The &amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt; will be searched for and then updated with the data provided in the &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; column. &lt;br /&gt;
&lt;br /&gt;
====Allow deletes====&lt;br /&gt;
If the uploaded file contains the &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt; special field, it is possible to use the upload file to delete existing user accounts. The default setting is to &#039;&#039;&#039;not&#039;&#039;&#039; allow deletes. Keep in mind that deleting a user account will prevent that user from logging in. As a protection, site administrator user accounts cannot be deleted with this method. &lt;br /&gt;
;No : ignores the &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt; special field in the uploaded file and leaves the existing user account unchanged&lt;br /&gt;
;Yes : allows the existing user account to be deleted when the value of the of the &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt; field is 1. &lt;br /&gt;
&lt;br /&gt;
====Allow suspending and activating of accounts====&lt;br /&gt;
If the uploaded file contains the &amp;lt;code&amp;gt;suspended&amp;lt;/code&amp;gt; special field, it is possible to use the upload file to either suspend or make active (unsuspend) existing user accounts. The default setting is to allow suspending/activating of existing user accounts. Keep in mind that suspending an existing user account will prevent that user from logging in. &lt;br /&gt;
;Yes : allows the existing user account to be suspended when the value of the of the &amp;lt;code&amp;gt;suspended&amp;lt;/code&amp;gt; field is 1. &lt;br /&gt;
;No : ignores the &amp;lt;code&amp;gt;suspended&amp;lt;/code&amp;gt; special field in the uploaded file and leaves the existing user account status unchanged.&lt;br /&gt;
&lt;br /&gt;
====Prevent email address duplicates====&lt;br /&gt;
It is possible, but &#039;&#039;&#039;not&#039;&#039;&#039; recommended to upload users with duplicate email addresses. By default, uploading users with duplicate email addresses is prevented. See MDL-38104 for some discussion. Further, since MDL-41115 added the ability for users to login with their email address it is even more important that duplicate email addresses be avoided.&lt;br /&gt;
;Yes : prevents user accounts from being created from the uploaded if an existing user account already has the same email address as found in the uploaded file&#039;s  &amp;lt;eode&amp;gt;email&amp;lt;/code&amp;gt; column.&lt;br /&gt;
;No : allows user accounts to be created if an existing user account already has the same email address found in the uploaded file&#039;s  &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; column.&lt;br /&gt;
&lt;br /&gt;
====Standardise usernames====&lt;br /&gt;
Standardise usernames is used by default to convert the username to all lower case and to strip out illegal characters. It is possible to not standardise the usernames; however, doing so is &#039;&#039;&#039;not&#039;&#039;&#039; recommended.&lt;br /&gt;
;Yes : standardises usernames found in the uploaded file before updating existing or creating new user accounts so that the username contains only lowercase letters and numbers.&lt;br /&gt;
;No : skips standardising usernames found in the uploaded file so that the newly created or updated usernames will be exactly as they are in the uploaded file (&#039;&#039;&#039;not recommended&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
For those seeking a more technical explanation, the process for standardising the usernames consists of ensuring the characters are all UTF-8 (fix_utf8) encoded, converting the username to lower case, and then stripping out non-letters/non-number characters (unless &amp;lt;code&amp;gt;$CFG-&amp;gt;extendedusernamechars&amp;lt;/code&amp;gt; is set to true) with something similar to: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$username = preg_replace(&#039;/[^-\.@_a-z0-9]/&#039;, &#039;&#039;, $username);&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Select for bulk user actions====&lt;br /&gt;
After the uploaded file has finished being processed (all new accounts have been created and existing accounts updated as specified by the previous settings), there is an option to select some of those user accounts to perform additional [[admin/user/user_bulk|bulk user actions]] such as &lt;br /&gt;
*Confirm user accounts created through Email-based self-registration which are not yet confirmed by the user&lt;br /&gt;
*Send a message (requires Messaging to be enabled)&lt;br /&gt;
*Delete user accounts&lt;br /&gt;
*Display a list of users on a page&lt;br /&gt;
*Download user data in text, ODS or Excel file format&lt;br /&gt;
*Force users to change their passwords&lt;br /&gt;
*Add users to a cohort&lt;br /&gt;
&lt;br /&gt;
By default, no users are selected for [[admin/user/user_bulk|bulk user actions]].&lt;br /&gt;
&lt;br /&gt;
;No : No users are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;New users : Only newly created users are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;Updated users : Only updated user accounts are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;All users : All users found (existing updated users and newly created user accounts) in the uploaded file are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
&lt;br /&gt;
===Default values===&lt;br /&gt;
&lt;br /&gt;
You can provide default user values for some fields not included in the uploaded file. Some fields include:&lt;br /&gt;
*Email display&lt;br /&gt;
*Forum auto-subscribe&lt;br /&gt;
*City/town&lt;br /&gt;
*ID number&lt;br /&gt;
*Insttitution&lt;br /&gt;
*Department&lt;br /&gt;
&lt;br /&gt;
==Upload user results ==&lt;br /&gt;
After accepting the preview settings by clicking on &amp;quot;Upload users&amp;quot;, you should see the the Upload users results screen.&lt;br /&gt;
[[File:Upload users results 2.0.JPG|thumb|center|The results screen; everything went well!]]&lt;br /&gt;
This screen will show you any exceptions or changes that were made to each user in the upload process.   For example if you were updating user information, the updated information will be shown.  Or if a user was not added that record will be highlighted.&lt;br /&gt;
&lt;br /&gt;
The screen will summarize how many users were uploaded or updated, indicate the number of weak passwords and the number of errors.&lt;br /&gt;
&lt;br /&gt;
==File formats for upload users file==&lt;br /&gt;
The upload users file has fields separated by a comma (or other delimiter) ONLY - no space.   The first line contains the valid field names.  The rest of the lines (records) contain information about each user.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload. Remember there are other ways to authenticate users on you site or enroll users in a course.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; You can use a spread sheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can be opened with simple text editors for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details)&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;username,password,firstname,lastname,email,course1,group1,cohort1&#039;&#039;&#039;&lt;br /&gt;
 jonest,verysecret,Tom,Jones,jonest@someplace.edu,math102,Section 1,year 3&lt;br /&gt;
 reznort,somesecret,Trent,Reznor,reznort@someplace.edu,math102,Section 3,year 4&lt;br /&gt;
&lt;br /&gt;
===Fields that can be included===&lt;br /&gt;
&#039;&#039;:Tip:&#039;&#039; We strongly recommend that you test a file that contains fields you proposed to use with one user before attempting a file upload for the first time.  http://demo.moodle.net might be a good place to see if your test file works.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Required fields&#039;&#039;&#039;: &lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;username,firstname,lastname,email&amp;lt;/code&amp;gt;&lt;br /&gt;
:Validity checks are performed for:&lt;br /&gt;
#&amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt; can only contain alphabetical &#039;&#039;&#039;lowercase&#039;&#039;&#039; letters , numbers, hypen &#039;-&#039;, underscore &#039;_&#039;, period &#039;.&#039;, or at-sign &#039;@&#039; &lt;br /&gt;
#&amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; is in the form: &#039;&#039;name@example.com&#039;&#039; .&amp;lt;/p&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Password field&#039;&#039;&#039;: &amp;quot;password&amp;quot; field is optional if &amp;quot;Create password if needed&amp;quot; setting is chosen (default). &lt;br /&gt;
**If included, values should meet the requirements for the site&#039;s [[Site_policies#Password_policy|Password policy]]. To force password change for a particular user, set the password field to &amp;lt;code&amp;gt;changeme&amp;lt;/code&amp;gt;. &lt;br /&gt;
**If omitted, a password will be generated for each user (during the next Cron job) and welcome e-mails sent out.&lt;br /&gt;
**Note: the text for the welcome e-mail is in the language settings. Please refer to this [https://moodle.org/mod/forum/discuss.php?d=210359&amp;amp;parent=917138 forum thread]for details.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Optional fields&#039;&#039;&#039;: To provide values other than the default include one or more of these&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;institution,department,city,country,lang,auth,timezone,idnumber,icq,phone1,phone2,address,url,description,mailformat,maildisplay,htmleditor,autosubscribe&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[Additional name fields]]&#039;&#039;&#039;&lt;br /&gt;
*Country- use a country TWO LETTER CODE&lt;br /&gt;
*Some fields have a maximum number of characters that are allowed (notably institution should be &#039;&#039;&#039;at most 40 characters&#039;&#039;&#039; long).  See hints below.&lt;br /&gt;
*Maildisplay, htmleditor and autosubscribe can be set from an import screen.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Custom profile field names&#039;&#039;&#039;: (Optional). xxxxx is the real custom user profile field name (i.e. the unique shortname)&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;profile_field_xxxxx&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
: Create the custom fields BEFORE importing. Use the standard header. The &amp;quot;shortname&amp;quot; for your custom field is xxxxx (NB the shortname must be all lowercase, otherwise won&#039;t be recognised). The first record must include &amp;quot;profile_field_xxxxx&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039;: To create a custom field &amp;quot;genre&amp;quot;, you must write a shortname &amp;quot;genre&amp;quot; in the new field, and write &amp;quot;profile_field_genre&amp;quot; in the header of the .csv file.&lt;br /&gt;
&lt;br /&gt;
: For custom profile fields that are a menu, use the corresponding value (new in Moodle 2.3 onwards).&lt;br /&gt;
&lt;br /&gt;
For custom profile fields that are dates, use the ISO standard format YYYY-MM-DD, eg. 2014-06-19 which will then be properly localized in the interfaced.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039;: A custom field &#039;Department&#039; with one of three values &#039;HR&#039;, &#039;Marketing&#039; or &#039;Training&#039;. Just insert one of those three words (e.g. &#039;Training&#039;) as the value for that field. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Special fields&#039;&#039;&#039;: Used for changing of usernames or deleting of users&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;oldusername&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;suspended&amp;lt;/code&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
*&#039;&#039;&#039;Enrolment fields&#039;&#039;&#039;: (Optional):&lt;br /&gt;
:&amp;lt;code&amp;gt;course1,type1,role1,group1,enrolperiod1,enrolstatus1,course2,type2,role2,group2,enrolperiod2,enrolstatus2&amp;lt;/code&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
:* Header fields must have a numeric suffix such that &amp;lt;code&amp;gt;type1&amp;lt;/code&amp;gt;,&amp;lt;code&amp;gt;role1&amp;lt;/code&amp;gt;,&amp;lt;code&amp;gt;group1&amp;lt;/code&amp;gt;,&amp;lt;code&amp;gt;enrolperiod1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;enrolstatus1&amp;lt;/code&amp;gt; all apply to &amp;lt;code&amp;gt;course1&amp;lt;/code&amp;gt; for course&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; to course&amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt;.&lt;br /&gt;
:*&amp;lt;code&amp;gt;course&amp;lt;/code&amp;gt; is the &amp;quot;shortname&amp;quot; of the course, if present the user will be enrolled in that course.&lt;br /&gt;
:* &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; sets the role to be used for the enrolment. A value of &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; is default course role, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;  is legacy Teacher role and &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt; is legacy Non-editing Teacher.&lt;br /&gt;
:* &amp;lt;code&amp;gt;role&amp;lt;/code&amp;gt; may be used to specify roles directly, using either role short name or id (numeric names of roles are not supported).&lt;br /&gt;
:* &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; may be used to assign users to groups in course, using name or id (numeric group names are not supported)&lt;br /&gt;
:* &amp;lt;code&amp;gt;enrolperiod&amp;lt;/code&amp;gt; may be used to set the enrolment duration, in days, for each course.&lt;br /&gt;
:* &amp;lt;code&amp;gt;enrolstatus&amp;lt;/code&amp;gt; can suspend users from a course when set to 1 or left blank for enrolled.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Cohort field&#039;&#039;&#039;: (Optional):&lt;br /&gt;
:&amp;lt;code&amp;gt;cohort1&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
:Internal cohort id numbers or non-numeric Cohort IDs of existing cohorts must be used; names are not allowed.&lt;br /&gt;
*&#039;&#039;&#039;mnethostid&#039;&#039;&#039; (Optional)&lt;br /&gt;
&lt;br /&gt;
Existing [[MNet]]users can be added to courses, groups or cohorts as below:&lt;br /&gt;
#enrolling to courses: username+mnethostid+course required&lt;br /&gt;
# adding to group: username+mnethostid+course+group required&lt;br /&gt;
#adding to cohort: username+mnethostid+cohort required&lt;br /&gt;
#suspending/reviving accounts: username+mnethostid+suspended required&lt;br /&gt;
All other operations are ignored. You can not add users, delete them or update them (such as change names or email, profile fields, etc.)&lt;br /&gt;
&lt;br /&gt;
Commas within  a field must be encoded as &amp;amp;#44 - the script will decode these back to commas.&lt;br /&gt;
&lt;br /&gt;
For Boolean fields, use &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; for false and &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; for true.&lt;br /&gt;
&lt;br /&gt;
To prevent users from receiving a large number of emails from courses or forced subscription forums use the &#039;&#039;&#039;maildigest&#039;&#039;&#039;.  The options for this field are 0 = No digest, 1 = Complete digest and 2 = Digest with just subjects.&lt;br /&gt;
&lt;br /&gt;
==Advanced potentials of Upload user==&lt;br /&gt;
===Templates===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: This section needs checking and updating if necessary for Moodle 2.0. Please do so and remove this note when finished.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The default values are processed as templates in which the following codes are allowed:&lt;br /&gt;
&lt;br /&gt;
* %l - will be replaced by the lastname&lt;br /&gt;
* %f - will be replaced by the firstname&lt;br /&gt;
* %u - will be replaced by the username&lt;br /&gt;
* %% - will be replaced by the %&lt;br /&gt;
&lt;br /&gt;
Between the percent sign (%) and any code letter (l, f or u) the following modifiers are allowed:&lt;br /&gt;
&lt;br /&gt;
* (-) minus sign - the information specified by the code letter will be converted to lowercase&lt;br /&gt;
* (+) plus sign - the information specified by the code letter will be converted to UPPERCASE&lt;br /&gt;
* (~) tilde sign - the information specified by the code letter will be converted to Title Case&lt;br /&gt;
* a decimal number - the information specified by the code letter will be truncated to that many characters&lt;br /&gt;
&lt;br /&gt;
For example, if the firstname is John and the lastname is Doe, the following values will be obtained with the specified templates:&lt;br /&gt;
&lt;br /&gt;
* %l%f = DoeJohn&lt;br /&gt;
* %l%1f = DoeJ&lt;br /&gt;
* %-l%+f = doeJOHN&lt;br /&gt;
* %-f_%-l = john_doe&lt;br /&gt;
*&amp;lt;nowiki&amp;gt; http://www.example.com/~%u/&amp;lt;/nowiki&amp;gt; results in  &amp;lt;nowiki&amp;gt;http://www.example.com/~jdoe/&amp;lt;/nowiki&amp;gt; (if the username is jdoe or %-1f%-l)&lt;br /&gt;
&lt;br /&gt;
Template processing is done only on default values, and not on the values retrieved from the CSV file.&lt;br /&gt;
&lt;br /&gt;
In order to create correct Moodle usernames, the username is always converted to lowercase. Moreover, if the &amp;quot;Allow extended characters in usernames&amp;quot; option in the Site policies page is off, characters different to letters, digits, dash (-) and dot (.) are removed. For example if the firstname is John Jr. and the lastname is Doe, the username %-f_%-l will produce john jr._doe when Allow extended characters in usernames is on, and johnjr.doe when off.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;New username duplicate handling&amp;quot; setting is set to Append counter, an auto-increment counter will be append to duplicate usernames produced by the template. For example, if the CSV file contains the users named John Doe, Jane Doe and Jenny Doe without explicit usernames, the default username is %-1f%-l and New username duplicate handling is set to Append counter, then the usernames produced will be jdoe, jdoe2 and jdoe3.&lt;br /&gt;
&lt;br /&gt;
===Deleting accounts===&lt;br /&gt;
&lt;br /&gt;
If the &amp;lt;code&amp;gt;deleted&amp;lt;/code&amp;gt; field is present, users with value 1 for it will be deleted. In this case, all the fields may be omitted, except for &amp;lt;code&amp;gt;username&amp;lt;/code&amp;gt;. After uploading the file, be sure to change the &amp;quot;Upload type&amp;quot; to &amp;quot;Update existing users only&amp;quot; and the &amp;quot;Allow deletes&amp;quot; option to &amp;quot;Yes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039;  A similar field is available for &amp;lt;code&amp;gt;suspended&amp;lt;/code&amp;gt;. This enables a user account to be temporarily disabled rather than completely removed.&lt;br /&gt;
&lt;br /&gt;
Deleting and uploading accounts could be done with a single CSV file. For example, the following file will add the user Tom Jones and delete the user reznort:&lt;br /&gt;
&lt;br /&gt;
 username,firstname,lastname,deleted&lt;br /&gt;
 jonest,Tom,Jones,0&lt;br /&gt;
 reznort,,,1&lt;br /&gt;
&lt;br /&gt;
==Encoding file format==&lt;br /&gt;
On the initial Upload user screen, you may select the file encoding format from a pull down list.  These include UTF-8 (the default), ASCII,  ISO-8859-1 to ISO-8859-11 or any one of over 36 formats.&lt;br /&gt;
&lt;br /&gt;
==Hints==&lt;br /&gt;
&lt;br /&gt;
===Spreadsheet===&lt;br /&gt;
&lt;br /&gt;
If you use a spreadsheet program such as Excel to create your .csv file, check the resulting output in a text editor before you upload it.  It is possible to get trailing commas on each line from an empty field if you have added and deleted columns of information prior to saving the final file. Also check the character encoding. A csv file is a simple text file (ASCII or Unicode) that can be used to upload user accounts.&lt;br /&gt;
&lt;br /&gt;
Excel translates passwords that begin with - (minus) or + (plus) as zero. Even when saving as .csv and saying &amp;quot;Yes&amp;quot; to &amp;quot;Keep this format, and leave out any incompatible features.&amp;quot; Check for this before uploading, as a zero halts the upload process.&lt;br /&gt;
&lt;br /&gt;
If you use a formula in Excel to create fields (for example, the concatenate function to create a user name), then remember to copy the cells with the formula and use special paste with values checked to make them into an acceptable data for a csv file.&lt;br /&gt;
&lt;br /&gt;
The upload will also fail if you have trailing spaces at the end of your data fields. Often, this can not be removed with a simple Find &amp;quot; &amp;quot; and Replace with &amp;quot;&amp;quot;. If information has been copied from web sources than it is possible to include non-breaking spaces which will prevent your upload from being completed correctly. To find these invisible spaces, use the Find and Replace function in Excel. In the find field, hold alt and type 0160. Leave the replace field blank. &lt;br /&gt;
&lt;br /&gt;
===Country===&lt;br /&gt;
The country should be written as a two letter code, in capitals. For example, use BE for Belgium or NL for the Netherlands.  Using &amp;quot;be&amp;quot; or &amp;quot;nl&amp;quot; as a country code will result in a database error.&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039;  If you are having trouble working out the two-letter code for a country, you can consult the list of [http://www.iso.org/iso/country_names_and_code_elements country names and code elements] available on the ISO Website. A common error is to use UK for United Kingdom; it should be GB.&lt;br /&gt;
&lt;br /&gt;
===Field size limits===&lt;br /&gt;
Some fields have maximum character lengths.  Typically the file will import to the preview list screen but not finish the process.  Turn on debug to see the fields that are too long.  Common fields to cause problems are &amp;quot;Institution&amp;quot; which is limited to 40 characters, and &amp;quot;City&amp;quot;, also limited (20 characters).  The error will be &amp;quot;User not added - error&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Time zones===&lt;br /&gt;
&lt;br /&gt;
The entry is case sensitive so Europe/London will work but europe/london will not.&lt;br /&gt;
&lt;br /&gt;
===All fields listed here===&lt;br /&gt;
:All the fields that are valid are listed below, except for any custom fields you may have created. &lt;br /&gt;
firstname, lastname, username, email, city, country, lang, timezone, mailformat, maildisplay, maildigest, htmleditor, ajax, autosubscribe ,institution, department, idnumber, skype , msn, aim, yahoo, icq, phone1, phone2, address, url, description, descriptionformat, password, auth, oldusername , deleted, suspended, course1, course2, course3, course4&lt;br /&gt;
&lt;br /&gt;
===Enroll users to Cohorts (system groups)===&lt;br /&gt;
You can enroll users to any Cohort (system level group) by using only the &amp;quot;username&amp;quot; and the &amp;quot;Cohort ID&amp;quot;.&lt;br /&gt;
Here is a sample CSV file:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;username,cohort1&#039;&#039;&#039;&lt;br /&gt;
 teacher1,system-teachers&lt;br /&gt;
 teacher2,system-teachers&lt;br /&gt;
 teacher3,system-teachers&lt;br /&gt;
&lt;br /&gt;
Make sure you set &amp;quot;Upload type&amp;quot; to &amp;quot;Update existing users only&amp;quot; (So you are not asked to add firstname, lastname and email fields too)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [http://youtu.be/PFGLZnuu_JI Adding users by using a CSV in Moodle]  MoodleBites video on YouTube&lt;br /&gt;
*[[Flat file]] enrolment&lt;br /&gt;
* [[User profile fields]] for details of how to include data about custom user profile fields in the upload users file&lt;br /&gt;
* [[Upload courses]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36851 Can I auto enroll from Excel?]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=97903 Uploading users to custom roles]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=181259 User upload option: standardise usernames]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=144569 Matriculacion con flat file csv] - discussion in Spanish&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des utilisateurs]]&lt;br /&gt;
[[ja:ユーザのアップロード]]&lt;br /&gt;
[[de:Nutzerliste hochladen]]&lt;br /&gt;
[[es:Subir usuarios]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Venus_theme&amp;diff=103837</id>
		<title>Venus theme</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Venus_theme&amp;diff=103837"/>
		<updated>2013-04-04T04:59:29Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: adding link to tracker&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Venus Theme&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Infobox plugin&lt;br /&gt;
|type = Theme&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=theme_venus&lt;br /&gt;
|tracker = https://tracker.moodle.org/browse/CONTRIB/component/12641&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=225388&lt;br /&gt;
|maintainer = [[User:Gordon McLeod|Gordon McLeod]]&lt;br /&gt;
|float = left&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Earth_theme&amp;diff=103836</id>
		<title>Earth theme</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Earth_theme&amp;diff=103836"/>
		<updated>2013-04-04T04:58:46Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: adding tracker component url&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Earth Theme&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Infobox plugin&lt;br /&gt;
|type = Theme&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=theme_earth&lt;br /&gt;
|tracker = https://tracker.moodle.org/browse/CONTRIB/component/12642&lt;br /&gt;
|discussion = https://moodle.org/mod/forum/discuss.php?d=225388&lt;br /&gt;
|maintainer = [[User:Maintainer name|Gordon McLeod]]&lt;br /&gt;
|float = left&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Count_user_block&amp;diff=103783</id>
		<title>Count user block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Count_user_block&amp;diff=103783"/>
		<updated>2013-03-29T20:26:36Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: updating name of Github.com repository&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This plug-in is the block which counts the number assigned to the roll within a course like moodle1.9.&lt;br /&gt;
Only an administrator can use.&lt;br /&gt;
When it installs in the front page of moodle, this block considers the load of a server and a total button is not displayed.&lt;br /&gt;
&lt;br /&gt;
github:&lt;br /&gt;
&lt;br /&gt;
https://github.com/h-honda/moodle-block_countuser&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Database_templates&amp;diff=94984</id>
		<title>Database templates</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Database_templates&amp;diff=94984"/>
		<updated>2012-01-08T02:59:42Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Tag usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Database}}&lt;br /&gt;
{{Update}}&lt;br /&gt;
Templates for the [[Database activity module]] allow you to control the visual layout of information when listing, viewing or editing database entries. It is a similar to the technique used to &#039;&#039;mail merge&#039;&#039; letters in word processors such as Open Office Writer or Microsoft Word. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tag usage ==&lt;br /&gt;
&lt;br /&gt;
The content of each [[Database fields|field]] you create for your database and some special tags (listed below) can be inserted into the output template by the use of tags.&lt;br /&gt;
&lt;br /&gt;
Fields have the format &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[fieldname]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. All other tags have the format &amp;lt;code&amp;gt;##sometag##&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To use the tags in the box on the left of the page, use the HTML viewer, place your cursor in the text area of your target edit and then click on the tag you want to place. Alternatively, you may simply type the appropriate name within the required symbols like &amp;lt;code&amp;gt;##this##&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[this]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, respectively.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;##edit##&amp;lt;/code&amp;gt; creates a clickable icon link that allows you to edit the current entry (only appears if you have the rights to do this)&lt;br /&gt;
* &amp;lt;code&amp;gt;##delete##&amp;lt;/code&amp;gt; creates a link that lets you delete the current entry (only appears if you have the rights to do this)&lt;br /&gt;
* &amp;lt;code&amp;gt;##approve##&amp;lt;/code&amp;gt; create a link that lets you approve the current database entry (only appears if you have the rights to do this)&lt;br /&gt;
* &amp;lt;code&amp;gt;##more##&amp;lt;/code&amp;gt; creates a link to the single view, which may contain more detailed info&lt;br /&gt;
* &amp;lt;code&amp;gt;##moreurl##&amp;lt;/code&amp;gt; creates just the URL for the above link, useful for creating your own links. You can click on the link icon and type &amp;lt;code&amp;gt;##moreurl##&amp;lt;/code&amp;gt; into URL field or in source view type &amp;lt;pre&amp;gt;&amp;lt;a href=&amp;quot;##moreurl##&amp;quot;&amp;gt;[[fieldname]]&amp;lt;/a&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;##comments##&amp;lt;/code&amp;gt; creates a link to the view/edit comments page, the link text is the current number of comments (only appears if comments are turned on)&lt;br /&gt;
* &amp;lt;code&amp;gt;##user##&amp;lt;/code&amp;gt; creates a link to the user page of the user who submitted the entry, link text is their name&lt;br /&gt;
* &amp;lt;code&amp;gt;##timeadded##&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;##timemodified##&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List template ==&lt;br /&gt;
&lt;br /&gt;
This template allows you to control the fields used and their layout when viewing multiple entries at once (e.g. search results). It is possible that this view may simply provide an overview with more detailed information available by clicking on an entry to access the single view of the entry.&lt;br /&gt;
&lt;br /&gt;
See [http://tracker.moodle.org/secure/attachment/23333/moodle_databse_activity_list_formatting.pdf Designing a list view in Moodle database activity] for instructions on how to create a list template table.&lt;br /&gt;
&lt;br /&gt;
The list template can also be used as a way to [[Database export|export your database]] as a CSV file.&lt;br /&gt;
&lt;br /&gt;
== Single template ==&lt;br /&gt;
This is used to display a single entry at a time and so has more space for display and can use, for example, larger versions of images or optionally provide more information than shown in the list view.&lt;br /&gt;
&lt;br /&gt;
[[Image:Databasesingletemplate.png]]&lt;br /&gt;
&lt;br /&gt;
== Advanced search template ==&lt;br /&gt;
&lt;br /&gt;
An advanced search template is for creating the interface form used in the advanced search. &lt;br /&gt;
&lt;br /&gt;
== Add template ==&lt;br /&gt;
&lt;br /&gt;
This template creates the interface form used when adding or editing database entries. &lt;br /&gt;
&lt;br /&gt;
== RSS template ==&lt;br /&gt;
&lt;br /&gt;
Lets you control the content of the [[RSS]] feed for database entries.&lt;br /&gt;
&lt;br /&gt;
== CSS template ==&lt;br /&gt;
&lt;br /&gt;
If any of the [[HTML in Moodle|HTML]] in your other templates requires [[CSS]] to provide visual style you can specify it here.&lt;br /&gt;
&lt;br /&gt;
== Javascript template ==&lt;br /&gt;
&lt;br /&gt;
You can use javascript to manipulate the way elements are displayed in either the List, Single or Add templates. Basically you need to enclose the part you want to manipulate in some named html element. The naming is essential as it allows you to identify the element for manipulation. &lt;br /&gt;
&lt;br /&gt;
Let&#039;s say, for example, you have a field in your database that stores a person&#039;s name and when you display the names in the List View you want to count the times a name matches some criteria and display the result.&lt;br /&gt;
&lt;br /&gt;
Your database will contain a field which we will call &amp;quot;name&amp;quot;. In your List template you will be able to display the contents of that field by using the &amp;lt;nowiki&amp;gt;[[name]]&amp;lt;/nowiki&amp;gt; construct at the place where you want that information displayed. For example in the &#039;&#039;Repeated entry&#039;&#039; on the list template you will have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;table&amp;gt;&lt;br /&gt;
   &amp;lt;tr&amp;gt;&lt;br /&gt;
     &amp;lt;td&amp;gt;Name: [[name]]&amp;lt;/td&amp;gt;&lt;br /&gt;
   &amp;lt;/tr&amp;gt;&lt;br /&gt;
 &amp;lt;table&amp;gt;  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You now need to modify that entry to ensure that the part you want to manipulate is a named element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;table&amp;gt;&lt;br /&gt;
   &amp;lt;tr&amp;gt;&lt;br /&gt;
     &amp;lt;td name=&amp;quot;named&amp;quot;&amp;gt;Name: [[name]]&amp;lt;/td&amp;gt;&lt;br /&gt;
   &amp;lt;/tr&amp;gt;&lt;br /&gt;
 &amp;lt;table&amp;gt;  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The footer of your list view can then contain another named element to display the result.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;lt;div name=&amp;quot;result&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your javascript template can now look as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 var cnt = 0;&lt;br /&gt;
 var re = /foo|Foo/;&lt;br /&gt;
 &lt;br /&gt;
 function init(){&lt;br /&gt;
   var namedElements = document.getElementsByName(&amp;quot;named&amp;quot;);&lt;br /&gt;
   for (i=0; i &amp;lt; namedElements.length; i++) {&lt;br /&gt;
       if(re.test(namedElements[i].innerHTML)) cnt++;&lt;br /&gt;
     }&lt;br /&gt;
   var namedResult = document.getElementsByName(&amp;quot;result&amp;quot;);&lt;br /&gt;
   namedResult[0].innerHTML = cnt;&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
 window.onload = init;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will display a table of names as is usual in the list view. Now at the bottom there will also be the count of the names that matched foo or Foo.&lt;br /&gt;
&lt;br /&gt;
== Reset templates button ==&lt;br /&gt;
&lt;br /&gt;
When you first create a database the templates will be pre-filled with appropriate HTML. If you later add fields then you can press the &#039;&#039;reset templates&#039;&#039; button and it will add HTML for the new fields in a similar fashion. If you have edited any of the templates in the meantime then your changes will be lost. It is recommended that you finalize the database fields before changing the template code.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Database presets]]&lt;br /&gt;
*[http://video.google.com/videoplay?docid=7026851446099005477 Video demonstrating tag usage]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions: &lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=55338 Look of the database module]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74243 How can I list database information horizontally instead of vertically?]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=61179 For those who want the display of Moodle Site&#039;s Modules and plugins]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=84050 Can&#039;t get columns to line up in list view]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=86927 Time stamp for database entries?]&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank-Vorlagen]]&lt;br /&gt;
[[fr:Modèles]]&lt;br /&gt;
[[ru:Шаблоны]]&lt;br /&gt;
[[ja:データベーステンプレート]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=89617</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=89617"/>
		<updated>2011-09-15T13:29:36Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Importing data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Importing data===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included Upload users] page. In 1.9, the data imported was a text string of a date in either ISO, EUR, or USA format. In 2.0 and beyond, the data imported for the date of birth should be a Unix timestamp.&lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [https://docs.moodle.org/20/en/User:Anthony_Borrow Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901 Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86693</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86693"/>
		<updated>2011-07-31T03:48:36Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Importing data===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included Upload users] page. &lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [https://docs.moodle.org/20/en/User:Anthony_Borrow Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901 Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86692</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86692"/>
		<updated>2011-07-31T03:47:53Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Contributor/Maintainer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Advanced Options===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included Upload users] page. &lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [https://docs.moodle.org/20/en/User:Anthony_Borrow Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901 Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86691</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86691"/>
		<updated>2011-07-31T03:47:29Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Contributor/Maintainer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Advanced Options===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included Upload users] page. &lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [User:Anthony_Borrow Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901 Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86690</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86690"/>
		<updated>2011-07-31T03:47:11Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Advanced Options===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included Upload users] page. &lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [User:Anthony_Borrow|Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901 Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86689</id>
		<title>Birthday block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Birthday_block&amp;diff=86689"/>
		<updated>2011-07-31T03:46:04Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Birthday Block==&lt;br /&gt;
&lt;br /&gt;
The Birthday Block makes use of a user profile date field to store the date of birth (or anniversary) for each user. The Birthday Block alphabettically displays the user&#039;s full name with picture and the ability to click on the send message icon to directly send the user a Moodle message. &lt;br /&gt;
&lt;br /&gt;
The settings page allows the site admin to select which user profile date field to use (currently only one can be used throughout the site). The data stored in the user profile date field is now a unix timestamp (this was not the case in the 1.9 version). Typically institutions auto-populate this field using a CSV upload of the data and then prevent the users from editing the data. &lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
*Copy the files into the \blocks folder. &lt;br /&gt;
*Go to the \admin page and allow the block to be installed&lt;br /&gt;
*Go to Users, Accounts, User profile fields&lt;br /&gt;
*Create a new user profile date field &lt;br /&gt;
*Input a Shortname (for example, dob), Name (for example, Birthday), and a Description&lt;br /&gt;
*Generally speaking, it is recommended that the field not be required, that it be locked, and visible to user&lt;br /&gt;
*Click on the Save Changes button&lt;br /&gt;
*In the Site Administration Block, click on Modules, Blocks, and the settings link for the Birthday block&lt;br /&gt;
*Select the newly created user profile date field you wish to use to store the birth dates&lt;br /&gt;
*Enter the Birth Dates into the created user profile date field (or upload them via a CSV file)&lt;br /&gt;
*Add the Birthday block to your page to see a list of those celebrating birthdays&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
&lt;br /&gt;
Thanks to the generosity of translators, the Birthday Block is available in many languages:&lt;br /&gt;
*English&lt;br /&gt;
*Spanish&lt;br /&gt;
*French&lt;br /&gt;
*Japanese&lt;br /&gt;
*German&lt;br /&gt;
*Italian&lt;br /&gt;
*and many more&lt;br /&gt;
&lt;br /&gt;
If the block is not available in your language feel free to contact me so that we can create one.&lt;br /&gt;
&lt;br /&gt;
===Advanced Options===&lt;br /&gt;
&lt;br /&gt;
It is possible to mass import the user profile date field data when importing users. More detailed instructions are available on the [https://docs.moodle.org/20/en/Upload_users#Fields_that_can_be_included|Upload users] page. &lt;br /&gt;
&lt;br /&gt;
===Styling===&lt;br /&gt;
&lt;br /&gt;
Styling varies from theme to theme. The following has been setup in the birthday block&#039;s styles.php file:&lt;br /&gt;
&lt;br /&gt;
.block_birthday .listentry div.user { float: left; }&lt;br /&gt;
.block_birthday .listentry div.message { float: right; }&lt;br /&gt;
&lt;br /&gt;
Some themes allow for the styles.css to be overridden or added to. &lt;br /&gt;
&lt;br /&gt;
===Contributor/Maintainer===&lt;br /&gt;
The Birthday Block was contributed and is maintained by [User:Anthony_Borrow|Anthony Borrow].&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
[http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=901|Birthday block&#039;s Modules and Plugins database entry]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=MNet&amp;diff=85570</id>
		<title>MNet</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=MNet&amp;diff=85570"/>
		<updated>2011-07-01T02:36:50Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Authentication}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Authentication|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;The network feature allows a Moodle administrator to establish a link with another Moodle, and to share some resources with the users of that Moodle. This features was introduced in Moodle 1.8.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
The initial release of MNet is bundled with a Authentication Plugin, which makes single-sign-on between Moodles possible. A user with the username &amp;lt;em&amp;gt;jody&amp;lt;/em&amp;gt; logs in to her Moodle server as normal, and clicks on a link that takes her to a page on another Moodle server. Normally, she would have only the privileges of a guest on the remote Moodle, but behind the scenes, single-sign-on has established a fully authenticated session for Jody on the remote site.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING:&#039;&#039;&#039;  MNet requires the use of &#039;&#039;&#039;xmlrpc&#039;&#039;&#039;. Please go to your phpinfo page if you are interested in using this and search for --with-xmlrpc.  If your php has not been compiled with xmlrpc then you need to address that first! At present it appears that PEAR xmlrpc will not work.&lt;br /&gt;
[[Image:Administration Block Users Authentication MoodleNetwork.jpg|thumb|MNet setting in &#039;&#039;Admin &amp;gt; User &amp;gt; Authentication &amp;gt; Moodle Network]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; An [http://moodle.org/mod/forum/discuss.php?d=175158 initial announcement to end support for MNet in Moodle 2.3] was made in the MNet forums.&lt;br /&gt;
&lt;br /&gt;
==Security==&lt;br /&gt;
The MNet feature requires that your server has the &#039;&#039;&#039;Curl&#039;&#039;&#039; and &#039;&#039;&#039;OpenSSL&#039;&#039;&#039; extensions installed. When you install or upgrade to Moodle 1.8, your system will generate a new OpenSSL certificate for encrypted communication with other Moodles, and will thereafter rotate encryption keys on a monthly basis (approx).&lt;br /&gt;
&lt;br /&gt;
Communication takes place over an XML-RPC transport, and the XML-RPC documents are wrapped first in an XMLDSIG (XML digital signature) envelope, and then in an XMLENC (XML encryption) envelope. The encryption all happens within PHP, and does not require an https (Apache SSL) server.&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://www.w3.org/TR/xmldsig-core/ XML Digital Signatures]&lt;br /&gt;
*[http://www.w3.org/TR/xmlenc-core/ XML Encryption]&lt;br /&gt;
&lt;br /&gt;
A special mode can be enabled which would allow a machine with a specified IP address to make calls to the XML-RPC layer without using either encryption or signature envelopes. This mode is provided to enable Moodle to communicate with other software systems in which the integration of signatures and encryption might be prohibitively difficult. It is not envisioned that unencrypted inter-Moodle networking will ever be enabled.&lt;br /&gt;
&lt;br /&gt;
==Peer to Peer Network==&lt;br /&gt;
&lt;br /&gt;
This is the basic layout of the system. It can be very useful to run one Moodle per faculty or departments, each with its own user management, and yet permit users to roam across the Moodle installs... subject to permissions of course. &lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
&lt;br /&gt;
The instructions will cover 2 Moodle installations: MoodleA and MoodleB. Both are installed correctly and have never had a Moodle Network configuration.&lt;br /&gt;
&lt;br /&gt;
Note: If you experience problems, ensure debugging is turned on in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; Debugging&#039;&#039;. Extra diagnostic messages may be displayed (particularly from Moodle 1.9.2)&lt;br /&gt;
&lt;br /&gt;
For Moodle 2.0, you need to enable Networking (under the Site Administration &amp;gt; Advanced Features menu). This will add the &amp;quot;Networking&amp;quot; menu to the Site Administration menu.&lt;br /&gt;
&lt;br /&gt;
# Get them to talk to each other&lt;br /&gt;
## Ensure &#039;&#039;Admin &amp;gt; Server &amp;gt; Environment&#039;&#039; indicates you have curl installed&lt;br /&gt;
## If MoodleA and MoodleB are hosted in the same domain, ensure they have a different cookie prefix. Note that changing the cookie prefix will log you out! You can change the cookie prefix via &#039;&#039;Admin &amp;gt; Server &amp;gt; Session Handling&#039;&#039;.&lt;br /&gt;
## On both, go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Settings&#039;&#039; and turn Networking ON.&lt;br /&gt;
## On MoodleA go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Peers&#039;&#039; - put the URL of MoodleB under &amp;quot;Add New Host&amp;quot; and click Add. The URL should include the directory where your Moodle code is located, for example &#039;&#039;www.mymoodle.org/moodle&#039;&#039;.&lt;br /&gt;
## Do the equivalent on MoodleB.&lt;br /&gt;
# Get user roaming going&lt;br /&gt;
## (Although discussion exists about removing this setting, it is still required as of 2.0.1)  [http://moodle.org/mod/forum/discuss.php?d=141491] ). On both servers: &lt;br /&gt;
### For 2.0, go to &#039;&#039;Administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;. Enable &#039;&#039;MNet Authentication&#039;&#039; by clicking the &#039;enable&#039; icon.&lt;br /&gt;
### For 1.9, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;  and enable Moodle Network authentication plugin. Click on &#039;Settings&#039; and enable auto_add_remote_users.&#039;&#039;&lt;br /&gt;
## On MoodleA go to &#039;&#039;Admin &amp;gt; Networking &amp;gt; (Manage) Peers&#039;&#039;, click on &#039;MoodleB&#039;, and click on &#039;Services&#039;. Enable SSO-IDP(SSO Identity Provider) publish and subscribe, and SSO-SP(SSO Service Provider) publish and subscribe.&lt;br /&gt;
## Do the equivalent on MoodleB. (By both publishing and subscribing you allow users to move freely between the two servers. By only publishing or subscribing between servers you create a one way traversal)&lt;br /&gt;
## On both, go to &#039;&#039;Admin &amp;gt; Users &amp;gt; Permissions &amp;gt; Define Roles&#039;&#039;, only roles that have &amp;quot;Roam to a remote Moodle moodle/site:mnetlogintoremote&amp;quot; will be allowed to roam. Grant the privilege as appropriate.&lt;br /&gt;
### eg. enabling for &#039;&#039;Authenticated user&#039;&#039; allows any authenticated user to roam between servers.&lt;br /&gt;
## On both servers, go to the homepage, and add the &#039;Network Servers&#039; block.&lt;br /&gt;
## To test, it is recommended to use a different browser (even on a different machine) that is logged in to neither. Login to MoodleA with a non-administrator account that has the permissions to roam. You should see the Network Servers block, and clicking on it you should go to MoodleB with a newly autocreated account. &lt;br /&gt;
# Get remote enrolments going -- this is optional. It allows an administrator of MoodleB to enrol users that are &amp;quot;native&amp;quot; to MoodleB in remote courses in MoodleA, and viceversa.&lt;br /&gt;
## On both, go to &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039; in 2.0 onwards or &#039;&#039;Administration &amp;gt; Courses &amp;gt; Enrolments&#039;&#039; pre-2.0 and enable Moodle Network enrolment plugin (click Save). Click on &#039;Edit&#039; and enable &#039;allow_allcourses&#039; or select some courses or categories to be remotely enrolled.&lt;br /&gt;
## On the server you want to receive enrolments:&lt;br /&gt;
### For 2.0, go to &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;. Enable &#039;&#039;MNet remote enrolments&#039;&#039; by clicking the &#039;enable&#039; icon. (For &#039;&#039;MNet remote enrolments&#039;&#039; settings info see [[MNet_remote_enrolments|MNet remote enrolments]])&lt;br /&gt;
### For 1.9, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039;  and enable Moodle Network authentication plugin. Click on &#039;Settings&#039; and enable auto_add_remote_users.&#039;&#039;&lt;br /&gt;
## On MoodleA go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Peers&#039;&#039;, click on &#039;MoodleB&#039;, and click on &#039;Services&#039;. Enable Enrolment publish and/or subscribe.&lt;br /&gt;
## Do the equivalent on MoodleB.&lt;br /&gt;
## On every course you want to allow enrolments into:&lt;br /&gt;
### Enter course and go to &#039;&#039;Settings -&amp;gt; Course administration -&amp;gt; Users -&amp;gt; Enrolment methods&#039;&#039;&lt;br /&gt;
### From &#039;&#039;Add method&#039;&#039; drop-down select &#039;&#039;MNet remote enrolments&#039;&#039;&lt;br /&gt;
### On the new screen select the &#039;&#039;Remote host&#039;&#039; you want to allow enrolments from, the Role for the enrolled users, and click save. (Note: you can only add a single &#039;&#039;MNet remote enrolments&#039;&#039; method per course.)&lt;br /&gt;
&lt;br /&gt;
===Using it===&lt;br /&gt;
# For 1.9: in MoodleA go to &#039;&#039;Admin &amp;gt; Networking &amp;gt; Enrolments&#039;&#039;. You will see MoodleB listed. Click on MoodleB and you will see a list of courses that MoodleB offers for remote enrolment. Select the course you want, and then enroll the users you want to that course.&lt;br /&gt;
# For 2.0: in MoodleA go to &#039;&#039;Admin &amp;gt; Networking &amp;gt; Remote enrolments client&#039;&#039;. You will see MoodleB listed. Click on &#039;&#039;Edit enrolments&#039;&#039; button beside MoodleB and you will see a list of courses that MoodleB offers for remote enrolment. Click &#039;Edit enrolments&#039;&#039;, select the users you want to enroll, and then click Add to enroll them in the course.&lt;br /&gt;
&lt;br /&gt;
==Connecting to a Mnet hub==&lt;br /&gt;
A Mnet hub (do not confuse it with the [[Community hub]] project of Moodle 2.0) is a Moodle server that is configured to accept connections from other Moodle servers, and to provide a set of services to users of these other servers. This guideline will direct you to connect to a Mnet hub, assess the services it has to offer, and enable those services for your users.&lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
# Get talking to the Hub&lt;br /&gt;
## Ensure that the &#039;&#039;Admin &amp;gt; Server &amp;gt; Environment&#039;&#039; page indicates you have curl and openssl installed&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Settings&#039;&#039; and turn Networking on&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Peers&#039;&#039; and enter the URL of Mnet Hub under &amp;quot;Add New Host&amp;quot;. Click &amp;lt;em&amp;gt;Add&amp;lt;/em&amp;gt;&lt;br /&gt;
## The host details for the Mnet Hub should appear with the Site Name field already populated. Click &amp;lt;em&amp;gt;Save changes&amp;lt;/em&amp;gt;&lt;br /&gt;
## The details will be written to your database and two new tabs will appear in this window: &#039;Services&#039; and &#039;Logs&#039;. Click &amp;lt;em&amp;gt;Services&amp;lt;/em&amp;gt;&lt;br /&gt;
##A list of services will appear, each with a checkbox for &#039;publish&#039; and &#039;subscribe&#039;. Check the checkboxes for any services you want to publish or subscribe to&lt;br /&gt;
&lt;br /&gt;
===Using it===&lt;br /&gt;
If the Mnet Hub has already enabled a service for you, there will be a tick alongside the appropriate checkbox, for example: if the Hub is &amp;lt;em&amp;gt;publishing&amp;lt;/em&amp;gt; Moodle Networked Enrolment, then a tick will appear alongside the &amp;lt;em&amp;gt;subscribe&amp;lt;/em&amp;gt; checkbox for this service. Note that in order to enable some functionality, prominently &amp;lt;em&amp;gt;single-sign-on&amp;lt;/em&amp;gt;, you may have to &amp;lt;em&amp;gt;publish&amp;lt;/em&amp;gt; a service, e.g. the &amp;lt;em&amp;gt;Identity Provider&amp;lt;/em&amp;gt; service. The Mnet Hub will access this service on your Moodle, asking it to authenticate your users.&lt;br /&gt;
# Enable Roaming&lt;br /&gt;
## Subscribe to &amp;lt;em&amp;gt;SSO (Service Provider)&amp;lt;/em&amp;gt; by checking the box&lt;br /&gt;
## Publish &amp;lt;em&amp;gt;SSO (Identity Provider)&amp;lt;/em&amp;gt; by checking the box&lt;br /&gt;
## Click &amp;lt;em&amp;gt;Save changes&amp;lt;/em&amp;gt;&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Users &amp;gt; Permissions &amp;gt; Define Roles&#039;&#039;, and grant the capability &amp;lt;em&amp;gt;Roam to a remote Moodle moodle/site:mnetlogintoremote&amp;lt;/em&amp;gt; to an appropriate role&lt;br /&gt;
## Go to &#039;&#039;Administration &amp;gt; Plugins &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039; in 2.0 onwards or &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; Manage authentication&#039;&#039; in 1.9 and enable the &amp;lt;em&amp;gt;Moodle Network authentication&amp;lt;/em&amp;gt; plugin&lt;br /&gt;
## Go to your homepage, turn on editing, and add the &#039;Network Servers&#039; block&lt;br /&gt;
## Using a different web-browser, log on as a non-admin user who inhabits the role you granted the roaming capability to&lt;br /&gt;
## Note that the Mnet Hub is listed in the Network Servers block on the homepage. Click on the link to that server&lt;br /&gt;
## Some of your user details will be transferred to the Mnet Hub server, and a browsing session will be started for you as if you had logged on there directly&lt;br /&gt;
# Enable Networked Enrolment&lt;br /&gt;
## Return to the web browser you&#039;ve been using as the site administrator&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Peers&#039;&#039; and click on the entry for the Mnet Hub.&lt;br /&gt;
## Click on the Services tab&lt;br /&gt;
## Subscribe to &amp;lt;em&amp;gt;Moodle Networked Enrolment&amp;lt;/em&amp;gt;&lt;br /&gt;
## Go to &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039; in 2.0 onwards or &#039;&#039;Administration &amp;gt; Courses &amp;gt; Enrolments&#039;&#039; pre-2.0 and enable the &amp;lt;em&amp;gt;Moodle Network enrolment&amp;lt;/em&amp;gt; plugin. Click &amp;lt;em&amp;gt;Save changes&amp;lt;/em&amp;gt;&lt;br /&gt;
## Click on &amp;lt;em&amp;gt;edit&amp;lt;/em&amp;gt; to view the details for networked enrolments.&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Networking &amp;gt; Enrolments&#039;&#039; to see a list of Moodle servers that offer this service to you&lt;br /&gt;
## Click on a server name to view a list of courses that the server offers to your users&lt;br /&gt;
## Click on a course name, to view a list users that you can enrol in this course&lt;br /&gt;
## Enrol users&lt;br /&gt;
## Profit!&lt;br /&gt;
&lt;br /&gt;
==Running a Mnet hub==&lt;br /&gt;
A Mnet hub is a regular Moodle site that runs in a special mode. As a Moodle Administrator, when you add another Moodle site to your list of network peers, your Moodle will contact that site to find out what it is called, and to request its public key for encrypted communication. Normally, the remote server will simply provide this information without making any record of the transaction.&lt;br /&gt;
&lt;br /&gt;
A Mnet hub is different. As soon as you add an entry for a Mnet hub to your system, the Mnet hub will create an entry for your server in its list of hosts, and may immediately begin to offer services to the users of your site.&lt;br /&gt;
&lt;br /&gt;
This section will guide you to set up a Mnet hub, and select services to offer to all comers.&lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
# Enable Networking&lt;br /&gt;
## Ensure that the &#039;&#039;Admin &amp;gt; Server &amp;gt; Environment&#039;&#039; page indicates you have curl and openssl installed&lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Settings&#039;&#039; and turn Networking on &lt;br /&gt;
## Go to &#039;&#039;Admin &amp;gt; Network &amp;gt; Peers&#039;&#039; and tick the checkbox for &amp;lt;em&amp;gt;Register all hosts&amp;lt;/em&amp;gt;. Click on &amp;lt;em&amp;gt;Save Changes&amp;lt;/em&amp;gt;&lt;br /&gt;
## On the same page, the first entry in your list of hosts should be &amp;lt;em&amp;gt;All hosts&amp;lt;/em&amp;gt;. Click this link&lt;br /&gt;
## Click on &amp;lt;em&amp;gt;Services&amp;lt;/em&amp;gt; and enable any services you want to offer to all comers&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Moodle Network FAQ]]&lt;br /&gt;
* [[Development:Moodle Network|Moodle Network development notes]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=6976 MNet forum]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=92749 Examples of how people are using Moodle networks] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:Enrolment]]&lt;br /&gt;
[[Category:MNet]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Réseau Moodle]]&lt;br /&gt;
[[ja:Moodleネットワーク]]&lt;br /&gt;
[[es:Red Moodle]]&lt;br /&gt;
[[cs:Síťové služby]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85557</id>
		<title>Database export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85557"/>
		<updated>2011-06-30T07:48:20Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Database}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Choose the format you wish to export to ==&lt;br /&gt;
&lt;br /&gt;
The Database activity module provides an Export tab that allows users to export database entries to either the CSV (comma separated values) or ODS (OpenOffice Calc) formats. Previously, it was possible to export to the XLS (Microsoft Excel) format; however, problems with creating that format have led to it being removed. The workaround is to use either CSV or ODS formats both of which can be opened with the latest version of Microsoft Excel. &lt;br /&gt;
&lt;br /&gt;
When using the CSV format, the user can select either the comma, semicolon, or tab to separate the fields. The selection of the proper character is important. If users select to use a comma to separate the fields and some of the fields contain data with commas then the number of columns is going to be misaligned and likely cause confusion. &lt;br /&gt;
&lt;br /&gt;
== Choose the fields you wish to export ==&lt;br /&gt;
&lt;br /&gt;
Users can select which fields from the database they wish to have exported. By default, all fields are checked to be included. Choose the fields that you wish to have included in the export.&lt;br /&gt;
&lt;br /&gt;
== Export entries ==&lt;br /&gt;
&lt;br /&gt;
Once the export type and the fields to be exported have been selected, clicking on the Export entries pushbutton will generate the file. The user will usually have the option of either opening or saving the file. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Adding a database entry]] - including import.&lt;br /&gt;
* See http://tracker.moodle.org/browse/MDL-19864 - regarding errors related to XLS export&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank_Export]]&lt;br /&gt;
[[ru:Экспорт базы данных]]&lt;br /&gt;
[[ja:データベースのエクスポート]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Database_activity_module]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85556</id>
		<title>Database export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85556"/>
		<updated>2011-06-30T07:45:46Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Database}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Choose the format you wish to export to ==&lt;br /&gt;
&lt;br /&gt;
The Database activity module provides an Export tab that allows users to export database entries to either the CSV (comma separated values) or ODS (OpenOffice Calc) formats. Previously, it was possible to export to the XLS (Microsoft Excel) format; however, problems with creating that format have led to it being removed. The workaround is to use either CSV or ODS formats both of which can be opened with the latest version of Microsoft Excel. &lt;br /&gt;
&lt;br /&gt;
When using the CSV format, the user can select either the comma, semicolon, or tab to separate the fields. The selection of the proper character is important. If users select to use a comma to separate the fields and some of the fields contain data with commas then the number of columns is going to be misaligned and likely cause confusion. &lt;br /&gt;
&lt;br /&gt;
== Choose the fields you wish to export ==&lt;br /&gt;
&lt;br /&gt;
Users can select which fields from the database they wish to have exported. By default, all fields are checked to be included. Choose the fields that you wish to have included in the export.&lt;br /&gt;
&lt;br /&gt;
== Export entries ==&lt;br /&gt;
&lt;br /&gt;
Once the export type and the fields to be exported have been selected, clicking on the Export entries pushbutton will generate the file. The user will usually have the option of either opening or saving the file. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Adding a database entry]] - including import.&lt;br /&gt;
* See [http://tracker.moodle.org/browse/MDL-19864 MDL-19864] for errors related to XLS export&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank_Export]]&lt;br /&gt;
[[ru:Экспорт базы данных]]&lt;br /&gt;
[[ja:データベースのエクスポート]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Database_activity_module]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85553</id>
		<title>Database export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85553"/>
		<updated>2011-06-30T07:36:02Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Database}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Choose the format you wish to export to ==&lt;br /&gt;
&lt;br /&gt;
The Database activity module provides an Export tab that allows users to export database entries to either the CSV (comma separated values) or ODS (OpenOffice Calc) formats. Previously, it was possible to export to the XLS (Microsoft Excel) format; however, problems with creating that format have led to it being removed. The workaround is to use either CSV or ODS formats both of which can be opened with the latest version of Microsoft Excel. &lt;br /&gt;
&lt;br /&gt;
When using the CSV format, the user can select either the comma, semicolon, or tab to separate the fields. The selection of the proper character is important. If users select to use a comma to separate the fields and some of the fields contain data with commas then the number of columns is going to be misaligned and likely cause confusion. &lt;br /&gt;
&lt;br /&gt;
== Choose the fields you wish to export ==&lt;br /&gt;
&lt;br /&gt;
Users can select which fields from the database they wish to have exported. By default, all fields are checked to be included. Choose the fields that you wish to have included in the export.&lt;br /&gt;
&lt;br /&gt;
== Export entries ==&lt;br /&gt;
&lt;br /&gt;
Once the export type and the fields to be exported have been selected, clicking on the Export entries pushbutton will generate the file. The user will usually have the option of either opening or saving the file. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Adding a database entry]] - including import.&lt;br /&gt;
* See [http://tracker.moodle.org/browse/MDL-19864] for errors related to XLS export&lt;br /&gt;
&lt;br /&gt;
[[de:Datenbank_Export]]&lt;br /&gt;
[[ru:Экспорт базы данных]]&lt;br /&gt;
[[ja:データベースのエクスポート]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Database_activity_module]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85550</id>
		<title>Database export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Database_export&amp;diff=85550"/>
		<updated>2011-06-30T07:35:09Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Database}}&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&#039;&#039;&#039;Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.&#039;&#039;&#039;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Choose the format you wish to export to ==&lt;br /&gt;
&lt;br /&gt;
The Database activity module provides an Export tab that allows users to export database entries to either the CSV (comma separated values) or ODS (OpenOffice Calc) formats. Previously, it was possible to export to the XLS (Microsoft Excel) format; however, problems with creating that format have led to it being removed. The workaround is to use either CSV or ODS formats both of which can be opened with the latest version of Microsoft Excel. &lt;br /&gt;
&lt;br /&gt;
When using the CSV format, the user can select either the comma, semicolon, or tab to separate the fields. The selection of the proper character is important. If users select to use a comma to separate the fields and some of the fields contain data with commas then the number of columns is going to be misaligned and likely cause confusion. &lt;br /&gt;
&lt;br /&gt;
== Choose the fields you wish to export ==&lt;br /&gt;
&lt;br /&gt;
Users can select which fields from the database they wish to have exported. By default, all fields are checked to be included. Choose the fields that you wish to have included in the export.&lt;br /&gt;
&lt;br /&gt;
== Export entries ==&lt;br /&gt;
&lt;br /&gt;
Once the export type and the fields to be exported have been selected, clicking on the Export entries pushbutton will generate the file. The user will usually have the option of either opening or saving the file. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Adding a database entry]] - including import.&lt;br /&gt;
* See [http://tracker.moodle.org/browse/MDL-19864|MDL-19864] for errors related to XLS export&lt;br /&gt;
&lt;br /&gt;
[[]]&lt;br /&gt;
[[de:Datenbank_Export]]&lt;br /&gt;
[[ru:Экспорт базы данных]]&lt;br /&gt;
[[ja:データベースのエクスポート]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Database_activity_module]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Category:Contributed_code&amp;diff=85196</id>
		<title>Category:Contributed code</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Category:Contributed_code&amp;diff=85196"/>
		<updated>2011-06-14T08:17:10Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An index of documentation pages about contributed code.&lt;br /&gt;
&lt;br /&gt;
Contributed code, or &amp;quot;contrib&amp;quot; for short, is understood to be all code contributed to Moodle which is not included in the standard Moodle distribution. The standard Moodle distribution, sometimes known as &amp;quot;Core&amp;quot; code is the code stored and developed at [http://git.moodle.org/gw?p=moodle.git;a=summary git.moodle.org].&lt;br /&gt;
&lt;br /&gt;
Contributed code is usually managed by the developer of the plugin or patch; however, as people change jobs or move on for whatever reason others can volunteer to step in to serve as the primary maintainer of a contribution. &lt;br /&gt;
&lt;br /&gt;
The code is hosted on a the version control system (VCS) of the developers choice. Previously, CVS was used for both [http://cvs.moodle.org/moodle/ core Moodle code] and [http://cvs.moodle.org/contrib/ CONTRIB code]. Git is now the preferred VCS for both Moodle core and CONTRIB code. There are various Git repositories; however, the most commonly used Git repository is [http://github.com/ Github.com]. &lt;br /&gt;
&lt;br /&gt;
Developers of CONTRIB code can create their own publicly accessible Git repository of the code (for an example see https://github.com/moodlehq/). Plugins typically use the following naming convention: moodle-{type}_{name} so that the book activity module would be named moodle-mod_book. Developers are encouraged to be consistent. &lt;br /&gt;
&lt;br /&gt;
At the moment, all CONTRIB code (and core code) should be indexed in the [http://moodle.org/mod/data/view.php?id=6009 Modules and plugins database]. That said, work is being done to create a new Plugins database that will allow much more flexibility in how CONTRIB code is shared and reviewed. Those interested can follow that work at [http://tracker.moodle.org/browse/MDLSITE-571 MDLSITE-571].&lt;br /&gt;
&lt;br /&gt;
Anthony Borrow, the CONTRIB Coordinator, is happy to answer any questions related to CONTRIB code and will help direct folks to the appropriate developer. Feel free to contact the CONTRIB Coordinator via Moodle message. &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Installing contributed modules or plugins]]&lt;br /&gt;
*[[Contributed code FAQ]]&lt;br /&gt;
*[[Development:Guidelines for contributed code]]&lt;br /&gt;
*[[Development:contrib]]&lt;br /&gt;
*[http://moodle.org/mod/data/view.php?id=6009 Modules and plugins database]&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Kategoria:Kode ezestandarra]]&lt;br /&gt;
[[ja:Category:ブロック ( 非標準 )]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Git&amp;diff=83116</id>
		<title>Git</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Git&amp;diff=83116"/>
		<updated>2011-04-29T15:52:32Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://git-scm.com/ Git] is a free and open source version control system. Git is a more sophisticated replacement for [[CVS]]. You can find the official Git Moodle repository at http://git.moodle.org/ or mirror at https://github.com/moodle/moodle. The particular advantage of Git is its distributed model, making it ideal for managing local customisations to Moodle. It is also suitable for development of contrib plugins for Moodle.&lt;br /&gt;
&lt;br /&gt;
Use the &#039;&#039;Git&#039;&#039; category link at the end of this page to get a list of all Git related pages.&lt;br /&gt;
&lt;br /&gt;
==Books and tutorials==&lt;br /&gt;
* [http://progit.org/ Pro Git Book]&lt;br /&gt;
* [http://book.git-scm.com/ Git Community Book]&lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html Official Git tutorial]&lt;br /&gt;
* [http://help.github.com/ GitHub Help]&lt;br /&gt;
&lt;br /&gt;
==Moodle specific guides==&lt;br /&gt;
* [[Installing Moodle from Git repository]] - WIP&lt;br /&gt;
* [[Maintaining Moodle customisations with Git]] - WIP&lt;br /&gt;
* Submitting patches and pull requests - TODO&lt;br /&gt;
* [[Git repositories for contrib modules]] - WIP&lt;br /&gt;
&lt;br /&gt;
==Tools==&lt;br /&gt;
The most powerful tool you can git is probably command line git. If you prefer clicking you can try one of the following, more information at [http://git-scm.com/tools http://git-scm.com/tools].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IDE integrations&#039;&#039;&#039;&lt;br /&gt;
* [http://www.eclipse.org/egit/ EGit plugin for Eclipse IDE]&lt;br /&gt;
* [http://netbeans.org/projects/versioncontrol/pages/Git_main Netbeans] - early access official Git plugin for Netbeans&lt;br /&gt;
* [http://www.jetbrains.com/phpstorm/ PHPStorm] - commercial IDE with Git support&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Frontends&#039;&#039;&#039;&lt;br /&gt;
* [http://code.google.com/p/tortoisegit/ TortoiseGit] - Windows only UI&lt;br /&gt;
* [http://gitx.frim.nl/ GitX] - OS X only UI&lt;br /&gt;
* [http://www.syntevo.com/smartgit/index.html SmartGit] - feature rich multiplatform UI (free for non-commercial use)&lt;br /&gt;
&lt;br /&gt;
==Hosting==&lt;br /&gt;
* [http://github.com/ GitHub] - probably the best hosting choice for beginners&lt;br /&gt;
* [http://gitorious.org/ Gitorious] - free hosting running on open source code&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Development:Git Migration]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=162723 Moving from CVS to git in November 2010] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Development:Guidelines_for_contributed_code&amp;diff=80936</id>
		<title>Development:Guidelines for contributed code</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Development:Guidelines_for_contributed_code&amp;diff=80936"/>
		<updated>2011-01-28T22:20:10Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page describes the various ways to share and work collaboratively on contributed code. In the past, Moodle CONTRIB code was often stored on the Moodle CVS server. As Moodle code transitions to [https://docs.moodle.org/en/Git Git], CONTRIB code will also be transitioning with a goal of having all code maintained via git repositories by August 2011. Don&#039;t worry if you have code on CVS and do not know Git as there are many people willing to help you with the transition especially [https://docs.moodle.org/en/User:Anthony_Borrow Anthony Borrow]. &lt;br /&gt;
&lt;br /&gt;
For those neither familiar with CVS nor Git, it is recommended that you [https://docs.moodle.org/en/Git#Books_and_tutorials learn Git basics]. The nice thing about using Git is that it will leave control of the code in the hands of contributor. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Sharing code&#039;&#039;&#039; - Contributed code will be shared and maintained using a public Git repository (i.e. github.com, gitorious.org, etc.).&lt;br /&gt;
*&#039;&#039;&#039;Reviewing code&#039;&#039;&#039; - If you would like your code to be tested and reviewed, please create an issue in the [http://tracker.moodle.org/ Moodle Tracker] under [http://tracker.moodle.org/browse/CONTRIB CONTRIB]. &lt;br /&gt;
*&#039;&#039;&#039;Documenting code&#039;&#039;&#039; - You can maintain helpful documentation of the features and installation instructions in [https://docs.moodle.org Moodle Docs]&lt;br /&gt;
*&#039;&#039;&#039;Distributing code&#039;&#039;&#039; - You can help others find your code by adding an entry to the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins database] &lt;br /&gt;
*&#039;&#039;&#039;Discussing the code&#039;&#039;&#039; - You can discuss the functionality and answer questions about how to use your code in the [http://moodle.org/course/view.php?id=5 Using Moodle forums]. Users can ask questions, discuss possible ideas for improvement, etc. Once the discussion matures to a point where you may want to take action, then you can create an issue in the [http://tracker.moodle.org/ Moodle Tracker]. &lt;br /&gt;
*&#039;&#039;&#039;Maintaining code&#039;&#039;&#039; - You can further develop your code by fixing issues, adding features, and responding to other issues with the [http://tracker.moodle.org/ Moodle Tracker]. Each plugin or patch can have its own component in the CONTRIB project; however, you will need to request that the component be created in the CONTRIB project. Once created, users can easily create issues related to your contributed code. The primary maintainer of the code will be assigned as the component lead and have their tracker privileges bumped so that they can manage issues related to their contributed code. Those issues will automatically be assigned to the component lead/primary maintainer. &lt;br /&gt;
&lt;br /&gt;
==The CONTRIB Frequently Asked Question (FAQ)==&lt;br /&gt;
&#039;&#039;&#039;Question:&#039;&#039;&#039; I have written a new block, activity, patch or theme to share with the Moodle community. What is the process for contributing the code? &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Answer:&#039;&#039;&#039; First, thank you for your generosity and desire to share your work with the rest of the Moodle community. Code contributions are highly valued and Moodle wants to encourage creativity and generosity in keeping with [https://docs.moodle.org/en/Pedagogy Moodle&#039;s social constructionist pedagogy]. &lt;br /&gt;
&lt;br /&gt;
As mentioned, there are various tools to help you share and support your contribution. By using a consistent methodology, your Moodle related code will be more easily found, tested, used, maintained, documented, and evaluated by fellow Moodlers and developers. Learning to use the various tools common among Moodle developers will help you to efficiently and effectively develop, share and maintain your contributed code. &lt;br /&gt;
&lt;br /&gt;
==How to submit code==&lt;br /&gt;
You have created some code that you would like to contribute to the Moodle community.  The first step is to choose which Git code hosting site you want to use. Both [http://github.com/ github.com] and [http://gitorious.org/ gitorious.org] are popular. Follow the instructions for creating a public repository for your code. This will allow others to download your code as well as suggest possible patches. As you become more familiar with collaborating with others you can also control who else you want to be able to push changes into your repository (i.e. write access). &lt;br /&gt;
&lt;br /&gt;
In order to facilitate a common naming convention of Moodle related repositories, it is suggested that you use the following format: moodle-{plugintype}_{pluginname}. For example, the birthday block has a repository name of moodle-block_birthday and is located at https://github.com/arborrow/moodle-block_birthday. Other developers can fork the code and work from their repositories.&lt;br /&gt;
&lt;br /&gt;
==How to request that your code be tested/reviewed==&lt;br /&gt;
&lt;br /&gt;
#If you do not already have an account on the [http://tracker.moodle.org] Moodle Tracker], create one and login. &lt;br /&gt;
#Create a new &amp;quot;Task&amp;quot; issue in the &amp;quot;Non-core contributed modules&amp;quot; project. Your issue will be a request that the code be tested and reviewed. &lt;br /&gt;
#Provide the link to the repository (i.e. https://github.com/arborrow/moodle-block_birthday) &lt;br /&gt;
#Provide a clear description of what the code does and the functionality that it adds to Moodle. &lt;br /&gt;
#Provide any other links to supporting documentation&lt;br /&gt;
&lt;br /&gt;
The Contrib Coordinator will then work directly with the code contributor via the Tracker to help evaluate the code, work on resolving any questions/issues found, etc. &lt;br /&gt;
&lt;br /&gt;
*Contributors are encouraged to follow Moodle&#039;s coding guidelines [[Development:Coding]].&lt;br /&gt;
&lt;br /&gt;
*Contributors are encouraged to maintain a branch for each major Moodle release (i.e. 1.8, 1.9, etc.). The HEAD branch should be used as the development branch. &lt;br /&gt;
&lt;br /&gt;
*Contributors are encouraged to associate each change made to an issue in the tracker. This practice is done by Moodle core developers and it is a good habit to get into so that you can go back and see why various changes were made to the code. Simple practices like these help to create good documentation of the code as it develops and matures. Commits should begin with the Moodle tracker issue number followed by a brief description of the change. &lt;br /&gt;
&lt;br /&gt;
==How to provide documentation==&lt;br /&gt;
Having great code available to the community is wonderful. It is also important to educate users about how to use the code with documentation in [[Main Page|Moodle Docs]]. See [[MoodleDocs:Guidelines for contributors|guidelines for contributors]] for more help. &lt;br /&gt;
&lt;br /&gt;
A documentation page for a contributed module should have some basic elements.  A brief introduction of what the code does, a &amp;quot;Features&amp;quot; heading, perhaps a &amp;quot;Installation&amp;quot;, &amp;quot;Tips and tricks&amp;quot; and &amp;quot;See also&amp;quot; headings, all with content of course.  Sometimes a screenshot is worth 1000 words. In the &amp;quot;See also&amp;quot; put a link to the Modules and Plug database, with a note that this is the place to download versions, and the forum where questions can be answered at moodle.org.&lt;br /&gt;
&lt;br /&gt;
Other information might include: Languages Supported, Known Issues, Supported Versions (for Moodle 1.8, 1.9), and maybe which are being actively supported. The page should be added to the contributed code category by typing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Contributed code]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
===Possible format for a contributed code Moodle Docs page===&lt;br /&gt;
You can copy and paste the below into your Moodle documentation page.  Please add the URL links. &#039;&#039;&#039;This is only a suggestion&#039;&#039;&#039;. &lt;br /&gt;
 Start with a 2-4 line introduction. The Plug In Name works with the activity module. &lt;br /&gt;
 It makes the life of the teacher easier by ... &lt;br /&gt;
 ==Features==&lt;br /&gt;
 * Add features list or overview description here &amp;lt;nowiki&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; [[Image:Sample_screen_shot|thumb|500px|center|Title of screenshot]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 ==Installation==&lt;br /&gt;
 Place install instructions here&lt;br /&gt;
 ==Tips and tricks==&lt;br /&gt;
 *Optional section, usually added by users later&lt;br /&gt;
 ==See also==&lt;br /&gt;
 *[Place http_address_for_M&amp;amp;P_entry_here  Name of Entry here] is a Modules and plugins database page that has download links and more information.&lt;br /&gt;
 *Discussions: [Place http_address_for_moodle_forum_or_thread_here Name of forum]&lt;br /&gt;
 &lt;br /&gt;
When no thread or forum exists for discussion, put a link to the Contributed Code forum.&lt;br /&gt;
 *Discussions: Please create or find a discussion topic in the &amp;lt;nowiki&amp;gt;[http://moodle.org/mod/forum/view.php?id=44  Contributed Code forum]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Share code with modules and plugins database==&lt;br /&gt;
Now you have a place for users to get your code, how will they know it exists? Moodle users can easily find information about contributed code in the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins database]. When you add an entry to this database, remember that it is searchable by any field. Every field is not required, but providing as much information as possible will help people who would like to find, read about, and then install your contribution.  In particular, the name of the module and the description of its function are important.  Screen shots are helpful (but please, not larger than 350px wide!). Links to discussion (on Moodle.org or other forum) and documentation (link to your page in the [https://docs.moodle.org Moodle docs] or another location) should be included if possible.  &lt;br /&gt;
&lt;br /&gt;
Users may leave comments on your entry, so please check it periodically for questions and bug reports.  If you include contact information or a link to a discussion, your users may be able to contact you more directly.  The comments are not emailed automatically.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that entries added to the [http://moodle.org/mod/data/view.php?id=6009 Modules and Plugins database] require approval by a moderator before they will be visible to other Moodle users.&lt;br /&gt;
&lt;br /&gt;
==Support code and get feedback with forums==&lt;br /&gt;
As users become familiar with the contributed code, discussions about the code are likely to emerge. We strongly urge you to place links to at least one forum at moodle.org in your Modules and Plugins entry as well as in MoodleDocs. &lt;br /&gt;
&lt;br /&gt;
It is important to respond to users who have questions about how to use the code, suggestions for how to make it better, etc. If it looks like there is sufficient need for some contributed code to have its own forum, please create a request via the tracker in the MDL-SITE section. Moodle has included many contributed code projects and ideas into its core. &lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/view.php?id=44 Contributed code forum] is a generic forum.  Maybe create a thread &amp;quot;New Mousetrap module&amp;quot;.&lt;br /&gt;
*[http://moodle.org/course/view.php?id=5 Using Moodle forums] The English speaking list of forums on many different subjects. &lt;br /&gt;
*[http://moodle.org/course/ A list of] other language forums and special areas in Moodle&lt;br /&gt;
&lt;br /&gt;
==Maintain and refine code with Tracker==&lt;br /&gt;
&lt;br /&gt;
In order to facilitate keeping track of feature requests, bugs, and other code issues, the contributor may request that a component be created in the CONTRIB section of the Moodle tracker. (This is the section where you initially made the request to have code included in CVS.moodle.org.)&lt;br /&gt;
&lt;br /&gt;
The contributor can be added to the group of CONTRIB developers in the tracker to manage the issues assigned to them and better coordinate with other developers. Users of the contributed code can then add issues which can be assigned directly to the maintainer. The tracker helps to manage the work flow involved in fixing bugs, working through feature requests, and maintaining the code. When committing changes, maintainers are strongly encouraged to begin the commit comment with a tracker number. &lt;br /&gt;
&lt;br /&gt;
We strongly encourage users to involve themselves in the process of creating a useful issue in tracker.  For the developer and code contributor,  describing the fix can help clarify the need for the code change. Further, it helps to establish good documentation about how the code developed. Others will be able to identify the issues addressed and understand why a particular decision was made.&lt;br /&gt;
&lt;br /&gt;
==Summary==&lt;br /&gt;
&lt;br /&gt;
It is hoped that following this procedure, will help guide contributors of code in the process of learning the tools and skills used by the Moodle developers. Learning to submit code by using the tracker, work the code with CVS, support the code by providing documentation, share code in Modules and Plugins, maintain the code by using the tracker, and evolve the code by using the Moodle.org forums will assist you in successfully contributing to the Moodle community and working with Moodle&#039;s developers. &lt;br /&gt;
&lt;br /&gt;
Throughout this process, the CONTRIB Coordinator is here to encourage and support those contributing code to the Moodle community and fostering the development of tomorrow&#039;s Moodle developers.&lt;br /&gt;
&lt;br /&gt;
Eventually, the community may wish for the code to become part of the Moodle core. By following the steps above, the developers will be able to evaluate the merit of the contributed code, understand how users have used the code, see the issues that have emerged and thus have more information to make an informed decision about whether or not to incorporate the contributed code into core.&lt;br /&gt;
&lt;br /&gt;
==Most common recommendations for contributed code==&lt;br /&gt;
&lt;br /&gt;
There are several small issues that the CONTRIB Coordinator will typically check for when reviewing the code prior to committing to the CVS server. These issues help to ensure consistency and quality of code. Any suggestions made by the CONTRIB Coordinator should be considered recommendations aimed to help folks new to the Moodle community collaborate in a way consistent with standard practices within the Moodle community. The suggestions are meant to help avoid potential issues and facilitate the acceptance of your code.&lt;br /&gt;
&lt;br /&gt;
=== Does the file structure conform to Moodle standards? ===&lt;br /&gt;
Generally speaking, each file should have an appropriate extension (i.e. php, html, css, txt, etc.). To avoid issues with case sensitivity, folders and files are normally lower case; however, there are exceptions to this. Another common recommendation is to place the lang folder within the block or module rather than asking the user to copy files into the main lang folder. Changes made in the get_string function for Moodle 1.9 and onward make it possible to do this which goes a long way in keeping things modular. Similarly, to respect the modular nature of Moodle if a block requires a library it is usually preferred to keep it as a subdirectory in the block&#039;s folder. This can be especially helpful if your code is dependent upon a particular version of an external library.&lt;br /&gt;
&lt;br /&gt;
=== Does the code work without any obvious errors? ===&lt;br /&gt;
The CONTRIB Coordinator will try to install the block or module on a fresh Moodle installation and report back any errors. This testing is done with Debugging set to show All PHP notices and errors (not developer mode). The most common notices have to do with attempting to use a variable that has not been initialized or checked for existence. &lt;br /&gt;
&lt;br /&gt;
=== Does the code use the config_plugins table? ===&lt;br /&gt;
&lt;br /&gt;
Contributed blocks and modules are encouraged to make use of the &#039;&#039;&#039;config_plugins&#039;&#039;&#039; table rather than the config table. Maintainers are encouraged to read the documentation provided for the [http://xref.moodle.org/lib/moodlelib.php.html#get_config get_config()] and [http://xref.moodle.org/lib/moodlelib.php.html#set_config set_config()]] functions in the /lib/moodlelib.php file to help ensure that the footprint for the global $CFG variable does not become bloated.&lt;br /&gt;
&lt;br /&gt;
=== Does the code follow the [[Coding|Coding Guidelines]]? ===&lt;br /&gt;
The CONTRIB Coordinator will look at the code for general readability and point out any obvious deviations from the [[Coding|Coding Guidelines]]. While not all code needs to conform with each and every guideline, maintainers are encouraged to follow those guidelines as closely as possible.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Development:Migrating contrib code to 2.0]]&lt;br /&gt;
*[[Development:contrib]] CONTRIB is an area in the Moodle CVS &lt;br /&gt;
*[[Translation]] for information on the translation of contributed code&lt;br /&gt;
*[[Development:Overview]]&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=99037 Best practices for code modification?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|Guidelines for contributors]]&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Development_talk:Process&amp;diff=80006</id>
		<title>Development talk:Process</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Development_talk:Process&amp;diff=80006"/>
		<updated>2011-01-02T18:05:08Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* External developers */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I think &#039;User&#039; should be described as both &#039;finding issues&#039; and &#039;suggesting improvements&#039; for Moodle, even if the detail of how things are implemented are left for the Product Owner. Just thinking that a good chunk of the things I add to the Tracker are suggestions for improvement rather than &#039;issues&#039; as such and that we should promote this idea as a general rule - maybe :)&lt;br /&gt;
&lt;br /&gt;
:I agree with Mark.  Bug tracker should be used for actual bugs.  Discussion about future roadmaps, enhcnements and improvements is a separate matter, and in actual fact it is hard to engage in this.  I don&#039;t have an answer at the moment.  Maybe a place to discuss, and notification of when discussions have heated up (like specs are being prepared and a new roadmap developed for a component)  ie owners manage the discussion, but there is a clear place to go to engage, some indication of timelines etc.  --[[User:Derek Chirnside|Derek Chirnside]] 19:39, 25 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Well, &amp;quot;issues&amp;quot; there was meant to cover &amp;quot;bugs&amp;quot; and &amp;quot;suggestions&amp;quot;, as the tracker does both.  I&#039;ll make it more explicit though.  [[User:Martin Dougiamas|Martin Dougiamas]] 10:12, 30 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
OK - I could live with this.  But I still prefer this clearer distinction as suggested by Mark:&lt;br /&gt;
&lt;br /&gt;
===User role===&lt;br /&gt;
&lt;br /&gt;
# Uses Moodle&lt;br /&gt;
# Finds issues/bugs (report in tracker)&lt;br /&gt;
# Suggests improvements (report in tracker)&lt;br /&gt;
&lt;br /&gt;
Question: is there a way in the tracker to keep issues in two lists: bugs and suggestions?  Maybe even like Google: you can suggest anything, but at any given time there are a few suggestions up for vote?  In Moodle, you can discuss anything, but someone is highlighting at any given time a few topics for focused discussions. On reflection the answer may be No - on this basis I am back to my original suggestion.  &lt;br /&gt;
&lt;br /&gt;
A bug is a bug - it is not working as we know it should.  A suggestion for an enhancement is partly an invitation to dialogue, vote.  Voting for bugs is silly - all bugs need fixing, and priorities are best (IMO) determined centrally.  So:&lt;br /&gt;
&lt;br /&gt;
#Uses Moodle&lt;br /&gt;
#Finds and reports bugs (use tracker)&lt;br /&gt;
#Suggests improvements (use tracker)&lt;br /&gt;
#Takes part in dialogue around suggested improvements &lt;br /&gt;
&lt;br /&gt;
[[User:Derek Chirnside|Derek Chirnside]] 06:18, 4 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Derek, thanks for your comments. Regarding a way in the tracker to keep issues in two lists: bugs and suggestions, when you create an issue you have a choice of issue types - bug, new feature, task and improvement. Thus, a search for all new features and improvements should generate a list of suggestions. --[[User:Helen Foster|Helen Foster]] 14:31, 4 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Backlog naming == &lt;br /&gt;
&lt;br /&gt;
Regarding the latest change about naming backlog versions with &amp;quot;STABLEBACKLOG/DEVBACKLOG&amp;quot;, I&#039;d recommend to use instead something like: &amp;quot;1.9.x backlog/2.0.x backlog/2.1.x backlog&amp;quot; because:&lt;br /&gt;
&lt;br /&gt;
# It saves us to move things when a new major release happens (so it won&#039;t be necessary to move all the DEVBACKLOG =&amp;gt; STABLEBACKLOG&amp;quot;.&lt;br /&gt;
# It supports &#039;&#039;&#039;multiple&#039;&#039;&#039; stable branches, like we have now (1.9.x, 2.0.x...)&lt;br /&gt;
# It respects the format used by both the Affected Branches and Fixed Branches custom fields that are really useful for a lot of filters.&lt;br /&gt;
&lt;br /&gt;
Ciao, [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 23:33, 6 December 2010 (UTC) :-)&lt;br /&gt;
&lt;br /&gt;
:Addenda: Finally it has been decided to go to 2 backlogs only (stable/dev). Fair enough so developer (team) will look to the real branches were solution needs to be implemented. [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 10:23, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==This does not look like scrum to me at all==&lt;br /&gt;
&lt;br /&gt;
I think we need a certified scrum master. This proposal IMHO seems to break nearly all the good Scrum practises described in books.&lt;br /&gt;
&lt;br /&gt;
Ciao, [[User:Petr Škoda (škoďák)|Petr Škoda (škoďák)]] 10:03, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Agree! some points (see point 3 especially, both in STABLE/DEV teams, break the thing. It&#039;s (scrum, by team) master responsibility to discuss with product owner, not team itself! Isolation is a MUST.&lt;br /&gt;
&lt;br /&gt;
: Ciao, [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 10:12, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== If the issue is a bug in the current stable version requiring database changes, assign &amp;quot;Fix version&amp;quot; to DEVBACKLOG ==&lt;br /&gt;
&lt;br /&gt;
Hmm, maybe this should be governed up by bug severity too? You, sure, aren&#039;t going to say that every bug requiring DB update, however severe it is, should be left up to the next major release? --[[User:Oleg Sychev|Oleg Sychev]] 14:51, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I understand the idea of pulling from the items with the highest priority; however, how are we going to determine that priority. We have issue severity which has traditionally been seen as a priority indicator but we also have the number of votes. I am curious when paper cuts will be taken care of. These smaller issues can impact the user experience. I suspect in an ideal world, all the major issues will be dealt with but occasionally some simple fixes come along with patches in the tracker and it would be good to get those applied. Peace - Anthony&lt;br /&gt;
&lt;br /&gt;
: Well, in practice I expect people will choose items based on a cost/benefit analysis of fixing them - just like they always have in the past.--[[User:Tim Hunt|Tim Hunt]] 18:14, 16 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Suggested changes for &amp;quot;External Developers&amp;quot; ==&lt;br /&gt;
I had a really good conversation with David (He posted a screenshot that maybe does a better job of explaining what is described below: http://picasaweb.google.com/david.mudrak/Moodle#5551427587739059122), and we discussed one possible suggested workflow external developers can use if they choose to use their own GIT repo.  Here&#039;s how it would break down:&lt;br /&gt;
&lt;br /&gt;
=== Creating repo ===&lt;br /&gt;
==== Branch off MOODLE_20_STABLE (ie: UCLA_TRUNK) ====&lt;br /&gt;
 $ git --bare fetch git://git.moodle.org/moodle.git MOODLE_20_STABLE:MOODLE_20_STABLE&lt;br /&gt;
 $ git checkout -b UCLA_TRUNK origin/MOODLE_20_STABLE&lt;br /&gt;
&lt;br /&gt;
==== commit customizations into branch ====&lt;br /&gt;
 $ ... (hack something, git add, git commit)&lt;br /&gt;
 $ git push&lt;br /&gt;
&lt;br /&gt;
=== Contributing back ===&lt;br /&gt;
==== Create another branch off MOODLE_20_STABLE (ie: COOL_NEW_FEATURE) ====&lt;br /&gt;
 $ git --bare fetch git://git.moodle.org/moodle.git MOODLE_20_STABLE:MOODLE_20_STABLE&lt;br /&gt;
 $ git checkout -b COOL_NEW_FEATURE origin/MOODLE_20_STABLE&lt;br /&gt;
&lt;br /&gt;
==== git cherry-pick to selectively pick commits from UCLA_TRUNK to merge into COOL_NEW_FEATURE ====&lt;br /&gt;
 $ git cherry-pick 7300a6130d9447e18a931e898b64eefedea19544&lt;br /&gt;
&lt;br /&gt;
==== publish branch COOL_NEW_FEATURE ====&lt;br /&gt;
??&lt;br /&gt;
&lt;br /&gt;
==== create pull request in tracker ====&lt;br /&gt;
http://tracker.moodle.org/browse/PULL-18&lt;br /&gt;
&lt;br /&gt;
If accepted, it becomes part of core moodle&lt;br /&gt;
&lt;br /&gt;
=== Updating to next version of Moodle ===&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
== Contrib Code - Development process ==&lt;br /&gt;
&lt;br /&gt;
I think this may be a good time to give some thought to coming up with the process we want to implement and enforce for sharing CONTRIB code. What assumptions do we want to make from the beginning? Should shared code be in a git repository somewhere? We have folks that share everything from zip files of plugins, some use Google code, others may use git. My experience has been that many are not initially proficient at using CVS/GIT, etc. although this seems to be improving. In any case, I would love to see a clear diagram about what someone does when they create code that they want to share. It has worked well to initiate conversations in the tracker as I can them work them through the Guidelines for CONTRIB Code (https://docs.moodle.org/en/Development:Guidelines_for_contributed_code) but I think we need to update that now for how we want to handle things in the future. Perhaps the improved M&amp;amp;P database will be the point of first contact. In any case, I would love to see if we could create a page similar to the Development:Process called something like Development:CONTRIB process. Peace - Anthony&lt;br /&gt;
&lt;br /&gt;
== External developers ==&lt;br /&gt;
&lt;br /&gt;
I have a question about the historical integrity of providing patches via links. For external developers, we say &amp;quot;Suggest code via links in comments in Jira&amp;quot;. What happens if those links no longer work? Perhaps this is a trivial issue and will in practice hardly ever happen but I was thinking about going back to an older issue that it may be helpful to see an approach that was attempted but rejected. If the external developer removes the branch, then it would seem to me that perhaps their rejected patch would no longer be available to be reviewed later. Am I understanding this properly and if so, might we consider what the approach might be for getting patches in the tracker so that they can stay there? Peace - Anthony&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Development_talk:Process&amp;diff=79776</id>
		<title>Development talk:Process</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Development_talk:Process&amp;diff=79776"/>
		<updated>2010-12-26T01:20:41Z</updated>

		<summary type="html">&lt;p&gt;Aborrow: /* Contrib Code - Development process */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I think &#039;User&#039; should be described as both &#039;finding issues&#039; and &#039;suggesting improvements&#039; for Moodle, even if the detail of how things are implemented are left for the Product Owner. Just thinking that a good chunk of the things I add to the Tracker are suggestions for improvement rather than &#039;issues&#039; as such and that we should promote this idea as a general rule - maybe :)&lt;br /&gt;
&lt;br /&gt;
:I agree with Mark.  Bug tracker should be used for actual bugs.  Discussion about future roadmaps, enhcnements and improvements is a separate matter, and in actual fact it is hard to engage in this.  I don&#039;t have an answer at the moment.  Maybe a place to discuss, and notification of when discussions have heated up (like specs are being prepared and a new roadmap developed for a component)  ie owners manage the discussion, but there is a clear place to go to engage, some indication of timelines etc.  --[[User:Derek Chirnside|Derek Chirnside]] 19:39, 25 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Well, &amp;quot;issues&amp;quot; there was meant to cover &amp;quot;bugs&amp;quot; and &amp;quot;suggestions&amp;quot;, as the tracker does both.  I&#039;ll make it more explicit though.  [[User:Martin Dougiamas|Martin Dougiamas]] 10:12, 30 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
OK - I could live with this.  But I still prefer this clearer distinction as suggested by Mark:&lt;br /&gt;
&lt;br /&gt;
===User role===&lt;br /&gt;
&lt;br /&gt;
# Uses Moodle&lt;br /&gt;
# Finds issues/bugs (report in tracker)&lt;br /&gt;
# Suggests improvements (report in tracker)&lt;br /&gt;
&lt;br /&gt;
Question: is there a way in the tracker to keep issues in two lists: bugs and suggestions?  Maybe even like Google: you can suggest anything, but at any given time there are a few suggestions up for vote?  In Moodle, you can discuss anything, but someone is highlighting at any given time a few topics for focused discussions. On reflection the answer may be No - on this basis I am back to my original suggestion.  &lt;br /&gt;
&lt;br /&gt;
A bug is a bug - it is not working as we know it should.  A suggestion for an enhancement is partly an invitation to dialogue, vote.  Voting for bugs is silly - all bugs need fixing, and priorities are best (IMO) determined centrally.  So:&lt;br /&gt;
&lt;br /&gt;
#Uses Moodle&lt;br /&gt;
#Finds and reports bugs (use tracker)&lt;br /&gt;
#Suggests improvements (use tracker)&lt;br /&gt;
#Takes part in dialogue around suggested improvements &lt;br /&gt;
&lt;br /&gt;
[[User:Derek Chirnside|Derek Chirnside]] 06:18, 4 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Derek, thanks for your comments. Regarding a way in the tracker to keep issues in two lists: bugs and suggestions, when you create an issue you have a choice of issue types - bug, new feature, task and improvement. Thus, a search for all new features and improvements should generate a list of suggestions. --[[User:Helen Foster|Helen Foster]] 14:31, 4 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Backlog naming == &lt;br /&gt;
&lt;br /&gt;
Regarding the latest change about naming backlog versions with &amp;quot;STABLEBACKLOG/DEVBACKLOG&amp;quot;, I&#039;d recommend to use instead something like: &amp;quot;1.9.x backlog/2.0.x backlog/2.1.x backlog&amp;quot; because:&lt;br /&gt;
&lt;br /&gt;
# It saves us to move things when a new major release happens (so it won&#039;t be necessary to move all the DEVBACKLOG =&amp;gt; STABLEBACKLOG&amp;quot;.&lt;br /&gt;
# It supports &#039;&#039;&#039;multiple&#039;&#039;&#039; stable branches, like we have now (1.9.x, 2.0.x...)&lt;br /&gt;
# It respects the format used by both the Affected Branches and Fixed Branches custom fields that are really useful for a lot of filters.&lt;br /&gt;
&lt;br /&gt;
Ciao, [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 23:33, 6 December 2010 (UTC) :-)&lt;br /&gt;
&lt;br /&gt;
:Addenda: Finally it has been decided to go to 2 backlogs only (stable/dev). Fair enough so developer (team) will look to the real branches were solution needs to be implemented. [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 10:23, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==This does not look like scrum to me at all==&lt;br /&gt;
&lt;br /&gt;
I think we need a certified scrum master. This proposal IMHO seems to break nearly all the good Scrum practises described in books.&lt;br /&gt;
&lt;br /&gt;
Ciao, [[User:Petr Škoda (škoďák)|Petr Škoda (škoďák)]] 10:03, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
:Agree! some points (see point 3 especially, both in STABLE/DEV teams, break the thing. It&#039;s (scrum, by team) master responsibility to discuss with product owner, not team itself! Isolation is a MUST.&lt;br /&gt;
&lt;br /&gt;
: Ciao, [[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 10:12, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== If the issue is a bug in the current stable version requiring database changes, assign &amp;quot;Fix version&amp;quot; to DEVBACKLOG ==&lt;br /&gt;
&lt;br /&gt;
Hmm, maybe this should be governed up by bug severity too? You, sure, aren&#039;t going to say that every bug requiring DB update, however severe it is, should be left up to the next major release? --[[User:Oleg Sychev|Oleg Sychev]] 14:51, 9 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I understand the idea of pulling from the items with the highest priority; however, how are we going to determine that priority. We have issue severity which has traditionally been seen as a priority indicator but we also have the number of votes. I am curious when paper cuts will be taken care of. These smaller issues can impact the user experience. I suspect in an ideal world, all the major issues will be dealt with but occasionally some simple fixes come along with patches in the tracker and it would be good to get those applied. Peace - Anthony&lt;br /&gt;
&lt;br /&gt;
: Well, in practice I expect people will choose items based on a cost/benefit analysis of fixing them - just like they always have in the past.--[[User:Tim Hunt|Tim Hunt]] 18:14, 16 December 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Suggested changes for &amp;quot;External Developers&amp;quot; ==&lt;br /&gt;
I had a really good conversation with David (He posted a screenshot that maybe does a better job of explaining what is described below: http://picasaweb.google.com/david.mudrak/Moodle#5551427587739059122), and we discussed one possible suggested workflow external developers can use if they choose to use their own GIT repo.  Here&#039;s how it would break down:&lt;br /&gt;
&lt;br /&gt;
=== Creating repo ===&lt;br /&gt;
==== Branch off MOODLE_20_STABLE (ie: UCLA_TRUNK) ====&lt;br /&gt;
 $ git --bare fetch git://git.moodle.org/moodle.git MOODLE_20_STABLE:MOODLE_20_STABLE&lt;br /&gt;
 $ git checkout -b UCLA_TRUNK origin/MOODLE_20_STABLE&lt;br /&gt;
&lt;br /&gt;
==== commit customizations into branch ====&lt;br /&gt;
 $ ... (hack something, git add, git commit)&lt;br /&gt;
 $ git push&lt;br /&gt;
&lt;br /&gt;
=== Contributing back ===&lt;br /&gt;
==== Create another branch off MOODLE_20_STABLE (ie: COOL_NEW_FEATURE) ====&lt;br /&gt;
 $ git --bare fetch git://git.moodle.org/moodle.git MOODLE_20_STABLE:MOODLE_20_STABLE&lt;br /&gt;
 $ git checkout -b COOL_NEW_FEATURE origin/MOODLE_20_STABLE&lt;br /&gt;
&lt;br /&gt;
==== git cherry-pick to selectively pick commits from UCLA_TRUNK to merge into COOL_NEW_FEATURE ====&lt;br /&gt;
 $ git cherry-pick 7300a6130d9447e18a931e898b64eefedea19544&lt;br /&gt;
&lt;br /&gt;
==== publish branch COOL_NEW_FEATURE ====&lt;br /&gt;
??&lt;br /&gt;
&lt;br /&gt;
==== create pull request in tracker ====&lt;br /&gt;
http://tracker.moodle.org/browse/PULL-18&lt;br /&gt;
&lt;br /&gt;
If accepted, it becomes part of core moodle&lt;br /&gt;
&lt;br /&gt;
=== Updating to next version of Moodle ===&lt;br /&gt;
 $ git pull&lt;br /&gt;
&lt;br /&gt;
== Contrib Code - Development process ==&lt;br /&gt;
&lt;br /&gt;
I think this may be a good time to give some thought to coming up with the process we want to implement and enforce for sharing CONTRIB code. What assumptions do we want to make from the beginning? Should shared code be in a git repository somewhere? We have folks that share everything from zip files of plugins, some use Google code, others may use git. My experience has been that many are not initially proficient at using CVS/GIT, etc. although this seems to be improving. In any case, I would love to see a clear diagram about what someone does when they create code that they want to share. It has worked well to initiate conversations in the tracker as I can them work them through the Guidelines for CONTRIB Code (https://docs.moodle.org/en/Development:Guidelines_for_contributed_code) but I think we need to update that now for how we want to handle things in the future. Perhaps the improved M&amp;amp;P database will be the point of first contact. In any case, I would love to see if we could create a page similar to the Development:Process called something like Development:CONTRIB process. Peace - Anthony&lt;/div&gt;</summary>
		<author><name>Aborrow</name></author>
	</entry>
</feed>