<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/31/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Samstudent</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/31/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Samstudent"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/Special:Contributions/Samstudent"/>
	<updated>2026-04-21T08:17:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=123739</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=123739"/>
		<updated>2016-05-23T08:51:52Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: testing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test page for docs&lt;br /&gt;
&lt;br /&gt;
Testing email notification for 31&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing 2-&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Col1&lt;br /&gt;
!Col2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions and Examples==&lt;br /&gt;
&lt;br /&gt;
Following are the functions that constitute the basic log API for Moodle.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 add_to_log($courseid, $module, $action, $url=&#039;&#039;, $info=&#039;&#039;, $cm=0, $user=0)&lt;br /&gt;
 user_accesstime_log($courseid=0)&lt;br /&gt;
 get_logs($select, array $params=null, $order=&#039;l.time DESC&#039;, $limitfrom=&#039;&#039;, $limitnum=&#039;&#039;, &amp;amp;$totalcount)&lt;br /&gt;
 get_logs_usercourse($userid, $courseid, $coursestart)&lt;br /&gt;
 get_logs_userday($userid, $courseid, $daystart)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The basic working of these functions can be categorized into two categories:-&lt;br /&gt;
# Adding data to logs&lt;br /&gt;
# Fetching data from logs&lt;br /&gt;
Let us take a deeper look into both of these:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;something in pre tags&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;and something in code tags&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Insert formula here&amp;lt;/math&amp;gt;==First edit in sandbox==&lt;br /&gt;
An additional edit to sandbox&lt;br /&gt;
This is where you can edit the content.&lt;br /&gt;
Another edit to sandox.&lt;br /&gt;
One more edit to sandbox&lt;br /&gt;
&lt;br /&gt;
==Testing gallery==&lt;br /&gt;
==Testing gallery==8/11&lt;br /&gt;
==Testing gallery==8/11 again&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
File:Atto_27.jpg|Atto &lt;br /&gt;
File:Clean27.jpg|Clean&lt;br /&gt;
File:MathJax.jpg|MathJax&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Bootstrap stuff==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;alert alert-block&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;close&amp;quot; data-dismiss=&amp;quot;alert&amp;quot;&amp;gt;&amp;amp;times;&amp;lt;/span&amp;gt;&#039;&#039;&#039;Warning!&#039;&#039;&#039; Click the cross to close this label ...&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;alert alert-info&amp;quot;&amp;gt;Info here...&amp;lt;/div&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
[[de:Hauptseite]]&lt;br /&gt;
[[es:Zona de Pruebas]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123738</id>
		<title>Installing unoconv</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123738"/>
		<updated>2016-05-23T08:50:44Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing_Moodle}}&lt;br /&gt;
==What is unoconv?==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;unoconv&amp;quot; is a command line program that is used to convert between different office document file formats. It uses an instance of [http://libreoffice.org LibreOffice] to do the conversion and is used by the assignment module to convert documents to pdf so that they can be annotated. If unoconv is not installed - the only impact is that the assignment activities will only allow annotations when students upload a pdf document. &lt;br /&gt;
&lt;br /&gt;
The steps required to install unoconv are different depending on the operating system that you have installed Moodle on. &lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Linux ==&lt;br /&gt;
The required version of unoconv is at least 0.7. Depending on your flavour of linux, this may be available in your package manager and you can install it directly with:&lt;br /&gt;
&lt;br /&gt;
(Ubuntu 16.04 LTS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your package manager contains an older version of the package, you will have to find a newer version and install it manually ([https://packages.debian.org/stretch/unoconv Debian Testing]). Unoconv itself is just a python script, so it has few dependencies.&lt;br /&gt;
&lt;br /&gt;
Potential problems:&lt;br /&gt;
* On some systems the apache user home directory is set to a non existent folder. This can cause unoconv to fail. There are 2 solutions to this - one is to make a (writable) home directory for the apache user (like /home/www-data). The other is to run a unoconv listener (described below) as another user other than the apache user (someone with a valid, writable home directory).&lt;br /&gt;
* If you are still running 14.04LTS then unoconv won&#039;t work as shipped. This might not be the most efficient route but it worked by first installing unoconv (version 0.6) from the package manager as above. You will then need to grab unoconv 0.7 from Github (https://github.com/dagwieers/unoconv), then upgrade to the latest libreoffice using the PPA (https://launchpad.net/~libreoffice/+archive/ubuntu/ppa). Point moodle at the Github version of unoconv. You need to modify the Python unoconv file by changing &#039;python&#039; in the first line to &#039;python3&#039;. You also need to change the permissions on the directory /var/www so that the user www-data can write to it (www-data needs to write to its home directory which it cannot do by default).&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on OS X ==&lt;br /&gt;
Download and install LibreOffice for Mac. Unfortunately - newer versions of LibreOffice are not currently compatible with unoconv for mac and you will have to install LibreOffice 4.2 (Direct download link - https://downloadarchive.documentfoundation.org/libreoffice/old/4.2.5.2/mac/x86_64/LibreOffice_4.2.5.2_MacOS_x86-64.dmg).&lt;br /&gt;
&lt;br /&gt;
Get the latest version of the unoconv python script. One way to do this is with http://brew.sh/ brew.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t done it already - install ghostscript. One way to install ghostscript is also with http://brew.sh/ brew&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install ghostscript&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the paths to unoconv and ghostscript in Moodle (&#039;&#039;Site administration &amp;gt; Server &amp;gt; System paths&#039;&#039;). If you used brew, they will both be installed to /usr/local/bin.&lt;br /&gt;
&lt;br /&gt;
LibreOffice needs write access to the current users home directory to create some temporary files. When unoconv is run as the webserver user (_www) it does not normally have this permission.&lt;br /&gt;
&lt;br /&gt;
There are some ways to get around this - one way is just to give the &amp;quot;_www&amp;quot; user write access to /Library/WebServer. &lt;br /&gt;
&lt;br /&gt;
Another solution is to convince LibreOffice that this users home directory is somewhere else. This can be done by inserting this code into the top of the unoconv python script.&lt;br /&gt;
Code to insert:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Set home to a writable folder. &lt;br /&gt;
os.environ[&#039;HOME&#039;] = &#039;/tmp/&#039;                                                                                                        &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be inserted at line 36 immediately after the line &amp;quot;exitcode = 0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Windows ==&lt;br /&gt;
Download and install LibreOffice for windows.&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the unoconv script from https://github.com/dagwieers/unoconv/releases. &lt;br /&gt;
&lt;br /&gt;
Rename the downloaded script to C:\unoconv\unoconv.py&lt;br /&gt;
&lt;br /&gt;
Create a batch file C:\unoconv\unoconv.bat with these contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@cd &amp;quot;C:\Program Files (x86)\LibreOffice 5\program&amp;quot;&lt;br /&gt;
@&amp;quot;python-core-3.3.0\bin\python.exe&amp;quot; unoconv.py %* &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set paths in Moodle. &lt;br /&gt;
&lt;br /&gt;
Login as admin and go to &#039;&#039;Site administration &amp;gt; Server &amp;gt; System paths&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Set pathtogs setting to your ghostscript installation binary, (C:\gs\bin\gswin32.exe)&lt;br /&gt;
&lt;br /&gt;
Set pathtounoconv to the batch file created above (C:\unoconv\unoconv.bat)&lt;br /&gt;
&lt;br /&gt;
Test ghostscript and unoconv are working correctly in the admin test pages &amp;quot;Site administration &amp;gt; Plugins &amp;gt; Activity modules &amp;gt; Assignment &amp;gt; Feedback plugins &amp;gt; Annotate PDF&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Run a unoconv listener ==&lt;br /&gt;
unoconv utilises a client/server process when converting documents. By default, when there is no running server process - each time unoconv runs it will start a server process, send it&#039;s request and shutdown the server process when the request is complete. The drawback of this mode is that if 2 requests are submitted simultaneously - this can cause the first request to shutdown the server process when the second request is still in progress - and the second conversion request fails. A more robust way to configure unoconv is to start a server process at boot time, and/or run a script to monitor it and restart it if it crashes.&lt;br /&gt;
&lt;br /&gt;
To start a unoconv listener at boot time on linux - you need a start up script. Different linux distributions use different startup scripts - but here are some examples of startup scripts for linux systems.&lt;br /&gt;
&lt;br /&gt;
[[mod/assign/feedback/editpdf/testunoconv/initd | Init script for Debian]]&lt;br /&gt;
&lt;br /&gt;
[[mod/assign/feedback/editpdf/testunoconv/upstart | Upstart script for Ubuntu based systems]]&lt;br /&gt;
&lt;br /&gt;
== Offload processing to a different server ==&lt;br /&gt;
Processing office documents can put increased load on your webserver, which may impact on the responsiveness of your site. If you are installing unoconv on a large site you may want to consider running unoconv on a server that is not also serving web requests.&lt;br /&gt;
&lt;br /&gt;
How to do this:&lt;br /&gt;
&lt;br /&gt;
Install unoconv on each webservers and the remote server following the installation instructions above. &lt;br /&gt;
&lt;br /&gt;
Make sure unoconv is started at boot time on the remote server with the &amp;quot;--listener&amp;quot; argument and is monitored and restarted if it exits (see Debian init script for an example of how to do this). &lt;br /&gt;
&lt;br /&gt;
Open the firewall port 2002 between the moodle webservers and the machine running unoconv.&lt;br /&gt;
&lt;br /&gt;
Share the moodle data root between the webservers and the machine running unoconv. This folder must be mounted at the same path on all servers. &lt;br /&gt;
&lt;br /&gt;
Install a wrapper for unoconv on the webservers that forwards the requests to the remote server. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# Wrapper script for unoconv to forward processing.&lt;br /&gt;
# Install to /usr/bin/unoconv-remote with 755 permissions&lt;br /&gt;
/usr/bin/unoconv --server=&amp;lt;ip of remote server&amp;gt; &amp;quot;$@&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure the path to unoconv in the Moodle admin settings to point to this wrapper script.&lt;br /&gt;
&lt;br /&gt;
==Additional resources==&lt;br /&gt;
The unoconv [https://github.com/dagwieers/unoconv documentation] site has additional information on installation of unoconv and troubleshooting tips.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[es:mod/assign/feedback/editpdf/testunoconv]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123737</id>
		<title>Installing unoconv</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123737"/>
		<updated>2016-05-23T08:48:49Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing_Moodle}}&lt;br /&gt;
==What is unoconv?==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;unoconv&amp;quot; is a command line program that is used to convert between different office document file formats. It uses an instance of [http://libreoffice.org LibreOffice] to do the conversion and is used by the assignment module to convert documents to pdf so that they can be annotated. If unoconv is not installed - the only impact is that the assignment activities will only allow annotations when students upload a pdf document. &lt;br /&gt;
&lt;br /&gt;
The steps required to install unoconv are different depending on the operating system that you have installed Moodle on. &lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Linux ==&lt;br /&gt;
The required version of unoconv is at least 0.7. Depending on your flavour of linux, this may be available in your package manager and you can install it directly with:&lt;br /&gt;
&lt;br /&gt;
(Ubuntu 16.04 LTS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your package manager contains an older version of the package, you will have to find a newer version and install it manually ([https://packages.debian.org/stretch/unoconv Debian Testing]). Unoconv itself is just a python script, so it has few dependencies.&lt;br /&gt;
&lt;br /&gt;
Potential problems:&lt;br /&gt;
* On some systems the apache user home directory is set to a non existent folder. This can cause unoconv to fail. There are 2 solutions to this - one is to make a (writable) home directory for the apache user (like /home/www-data). The other is to run a unoconv listener (described below) as another user other than the apache user (someone with a valid, writable home directory).&lt;br /&gt;
* If you are still running 14.04LTS then unoconv won&#039;t work as shipped. This might not be the most efficient route but it worked by first installing unoconv (version 0.6) from the package manager as above. You will then need to grab unoconv 0.7 from Github (https://github.com/dagwieers/unoconv), then upgrade to the latest libreoffice using the PPA (https://launchpad.net/~libreoffice/+archive/ubuntu/ppa). Point moodle at the Github version of unoconv. You need to modify the Python unoconv file by changing &#039;python&#039; in the first line to &#039;python3&#039;. You also need to change the permissions on the directory /var/www so that the user www-data can write to it (www-data needs to write to its home directory which it cannot do by default).&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on OS X ==&lt;br /&gt;
Download and install LibreOffice for Mac. Unfortunately - newer versions of LibreOffice are not currently compatible with unoconv for mac and you will have to install LibreOffice 4.2 (Direct download link - https://downloadarchive.documentfoundation.org/libreoffice/old/4.2.5.2/mac/x86_64/LibreOffice_4.2.5.2_MacOS_x86-64.dmg).&lt;br /&gt;
&lt;br /&gt;
Get the latest version of the unoconv python script. One way to do this is with [[http://brew.sh/ brew]].&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t done it already - install ghostscript. One way to install ghostscript is also with [[http://brew.sh/ brew]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install ghostscript&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the paths to unoconv and ghostscript in Moodle (&#039;&#039;Site administration &amp;gt; Server &amp;gt; System paths&#039;&#039;). If you used brew, they will both be installed to /usr/local/bin.&lt;br /&gt;
&lt;br /&gt;
LibreOffice needs write access to the current users home directory to create some temporary files. When unoconv is run as the webserver user (_www) it does not normally have this permission.&lt;br /&gt;
&lt;br /&gt;
There are some ways to get around this - one way is just to give the &amp;quot;_www&amp;quot; user write access to /Library/WebServer. &lt;br /&gt;
&lt;br /&gt;
Another solution is to convince LibreOffice that this users home directory is somewhere else. This can be done by inserting this code into the top of the unoconv python script.&lt;br /&gt;
Code to insert:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Set home to a writable folder. &lt;br /&gt;
os.environ[&#039;HOME&#039;] = &#039;/tmp/&#039;                                                                                                        &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be inserted at line 36 immediately after the line &amp;quot;exitcode = 0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Windows ==&lt;br /&gt;
Download and install LibreOffice for windows.&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the unoconv script from https://github.com/dagwieers/unoconv/releases. &lt;br /&gt;
&lt;br /&gt;
Rename the downloaded script to C:\unoconv\unoconv.py&lt;br /&gt;
&lt;br /&gt;
Create a batch file C:\unoconv\unoconv.bat with these contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@cd &amp;quot;C:\Program Files (x86)\LibreOffice 5\program&amp;quot;&lt;br /&gt;
@&amp;quot;python-core-3.3.0\bin\python.exe&amp;quot; unoconv.py %* &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set paths in Moodle. &lt;br /&gt;
&lt;br /&gt;
Login as admin and go to &#039;&#039;Site administration &amp;gt; Server &amp;gt; System paths&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Set pathtogs setting to your ghostscript installation binary, (C:\gs\bin\gswin32.exe)&lt;br /&gt;
&lt;br /&gt;
Set pathtounoconv to the batch file created above (C:\unoconv\unoconv.bat)&lt;br /&gt;
&lt;br /&gt;
Test ghostscript and unoconv are working correctly in the admin test pages &amp;quot;Site administration &amp;gt; Plugins &amp;gt; Activity modules &amp;gt; Assignment &amp;gt; Feedback plugins &amp;gt; Annotate PDF&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Run a unoconv listener ==&lt;br /&gt;
unoconv utilises a client/server process when converting documents. By default, when there is no running server process - each time unoconv runs it will start a server process, send it&#039;s request and shutdown the server process when the request is complete. The drawback of this mode is that if 2 requests are submitted simultaneously - this can cause the first request to shutdown the server process when the second request is still in progress - and the second conversion request fails. A more robust way to configure unoconv is to start a server process at boot time, and/or run a script to monitor it and restart it if it crashes.&lt;br /&gt;
&lt;br /&gt;
To start a unoconv listener at boot time on linux - you need a start up script. Different linux distributions use different startup scripts - but here are some examples of startup scripts for linux systems.&lt;br /&gt;
&lt;br /&gt;
[[mod/assign/feedback/editpdf/testunoconv/initd | Init script for Debian]]&lt;br /&gt;
&lt;br /&gt;
[[mod/assign/feedback/editpdf/testunoconv/upstart | Upstart script for Ubuntu based systems]]&lt;br /&gt;
&lt;br /&gt;
== Offload processing to a different server ==&lt;br /&gt;
Processing office documents can put increased load on your webserver, which may impact on the responsiveness of your site. If you are installing unoconv on a large site you may want to consider running unoconv on a server that is not also serving web requests.&lt;br /&gt;
&lt;br /&gt;
How to do this:&lt;br /&gt;
&lt;br /&gt;
Install unoconv on each webservers and the remote server following the installation instructions above. &lt;br /&gt;
&lt;br /&gt;
Make sure unoconv is started at boot time on the remote server with the &amp;quot;--listener&amp;quot; argument and is monitored and restarted if it exits (see Debian init script for an example of how to do this). &lt;br /&gt;
&lt;br /&gt;
Open the firewall port 2002 between the moodle webservers and the machine running unoconv.&lt;br /&gt;
&lt;br /&gt;
Share the moodle data root between the webservers and the machine running unoconv. This folder must be mounted at the same path on all servers. &lt;br /&gt;
&lt;br /&gt;
Install a wrapper for unoconv on the webservers that forwards the requests to the remote server. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# Wrapper script for unoconv to forward processing.&lt;br /&gt;
# Install to /usr/bin/unoconv-remote with 755 permissions&lt;br /&gt;
/usr/bin/unoconv --server=&amp;lt;ip of remote server&amp;gt; &amp;quot;$@&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure the path to unoconv in the Moodle admin settings to point to this wrapper script.&lt;br /&gt;
&lt;br /&gt;
==Additional resources==&lt;br /&gt;
The unoconv [https://github.com/dagwieers/unoconv documentation] site has additional information on installation of unoconv and troubleshooting tips.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[es:mod/assign/feedback/editpdf/testunoconv]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123732</id>
		<title>Installing unoconv</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Installing_unoconv&amp;diff=123732"/>
		<updated>2016-05-23T08:42:48Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: template move&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing_Moodle}}&lt;br /&gt;
=Installing unoconv=&lt;br /&gt;
&lt;br /&gt;
&amp;quot;unoconv&amp;quot; is a command line program that is used to convert between different office document file formats. It uses an instance of [http://libreoffice.org LibreOffice] to do the conversion and is used by the assignment module to convert documents to pdf so that they can be annotated. If unoconv is not installed - the only impact is that the assignment module will only allow annotations when students upload a pdf document. &lt;br /&gt;
&lt;br /&gt;
The steps required to install unoconv are different depending on the operating system that you have installed Moodle on. &lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Linux ==&lt;br /&gt;
The required version of unoconv is at least 0.7. Depending on your flavour of linux, this may be available in your package manager and you can install it directly with:&lt;br /&gt;
&lt;br /&gt;
(Ubuntu 16.04 LTS)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your package manager contains an older version of the package, you will have to find a newer version and install it manually ([https://packages.debian.org/stretch/unoconv Debian Testing]). Unoconv itself is just a python script, so it has few dependencies.&lt;br /&gt;
&lt;br /&gt;
Potential problems:&lt;br /&gt;
* On some systems the apache user home directory is set to a non existent folder. This can cause unoconv to fail. There are 2 solutions to this - one is to make a (writable) home directory for the apache user (like /home/www-data). The other is to run a unoconv listener (described below) as another user other than the apache user (someone with a valid, writable home directory).&lt;br /&gt;
* If you are still running 14.04LTS then unoconv won&#039;t work as shipped. This might not be the most efficient route but it worked by first installing unoconv (version 0.6) from the package manager as above. You will then need to grab unoconv 0.7 from Github (https://github.com/dagwieers/unoconv), then upgrade to the latest libreoffice using the PPA (https://launchpad.net/~libreoffice/+archive/ubuntu/ppa). Point moodle at the Github version of unoconv. You need to modify the Python unoconv file by changing &#039;python&#039; in the first line to &#039;python3&#039;. You also need to change the permissions on the directory /var/www so that the user www-data can write to it (www-data needs to write to its home directory which it cannot do by default).&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on OS X ==&lt;br /&gt;
Download and install LibreOffice for Mac. Unfortunately - newer versions of LibreOffice are not currently compatible with unoconv for mac and you will have to install LibreOffice 4.2 (Direct download link - https://downloadarchive.documentfoundation.org/libreoffice/old/4.2.5.2/mac/x86_64/LibreOffice_4.2.5.2_MacOS_x86-64.dmg).&lt;br /&gt;
&lt;br /&gt;
Get the latest version of the unoconv python script. One way to do this is with [[http://brew.sh/ brew]].&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install unoconv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t done it already - install ghostscript. One way to install ghostscript is also with [[http://brew.sh/ brew]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
brew install ghostscript&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the paths to unoconv and ghostscript in Moodle (Site administration ▶︎ Server ▶︎ System paths ). If you used brew, they will both be installed to /usr/local/bin.&lt;br /&gt;
&lt;br /&gt;
LibreOffice needs write access to the current users home directory to create some temporary files. When unoconv is run as the webserver user (_www) it does not normally have this permission.&lt;br /&gt;
&lt;br /&gt;
There are some ways to get around this - one way is just to give the &amp;quot;_www&amp;quot; user write access to /Library/WebServer. &lt;br /&gt;
&lt;br /&gt;
Another solution is to convince LibreOffice that this users home directory is somewhere else. This can be done by inserting this code into the top of the unoconv python script.&lt;br /&gt;
Code to insert:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Set home to a writable folder. &lt;br /&gt;
os.environ[&#039;HOME&#039;] = &#039;/tmp/&#039;                                                                                                        &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be inserted at line 36 immediately after the line &amp;quot;exitcode = 0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Installing unoconv on Windows ==&lt;br /&gt;
Download and install LibreOffice for windows.&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the unoconv script from https://github.com/dagwieers/unoconv/releases. &lt;br /&gt;
&lt;br /&gt;
Rename the downloaded script to C:\unoconv\unoconv.py&lt;br /&gt;
&lt;br /&gt;
Create a batch file C:\unoconv\unoconv.bat with these contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@cd &amp;quot;C:\Program Files (x86)\LibreOffice 5\program&amp;quot;&lt;br /&gt;
@&amp;quot;python-core-3.3.0\bin\python.exe&amp;quot; unoconv.py %* &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set paths in Moodle. &lt;br /&gt;
&lt;br /&gt;
Login as admin and go to Site administration ► Server ► System paths&lt;br /&gt;
&lt;br /&gt;
Set pathtogs setting to your ghostscript installation binary, (C:\gs\bin\gswin32.exe)&lt;br /&gt;
&lt;br /&gt;
Set pathtounoconv to the batch file created above (C:\unoconv\unoconv.bat)&lt;br /&gt;
&lt;br /&gt;
Test ghostscript and unoconv are working correctly in the admin test pages &amp;quot;Site administration ► Plugins ► Activity modules ► Assignment ► Feedback plugins ► Annotate PDF&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Run a unoconv listener ==&lt;br /&gt;
unoconv utilises a client/server process when converting documents. By default, when there is no running server process - each time unoconv runs it will start a server process, send it&#039;s request and shutdown the server process when the request is complete. The drawback of this mode is that if 2 requests are submitted simultaneously - this can cause the first request to shutdown the server process when the second request is still in progress - and the second conversion request fails. A more robust way to configure unoconv is to start a server process at boot time, and/or run a script to monitor it and restart it if it crashes.&lt;br /&gt;
&lt;br /&gt;
To start a unoconv listener at boot time on linux - you need a start up script. Different linux distributions use different startup scripts - but here is an example of an init.d script for debian systems.&lt;br /&gt;
&lt;br /&gt;
[[mod/assign/feedback/editpdf/testunoconv/initd | Init script for Debian]]&lt;br /&gt;
&lt;br /&gt;
== Offload processing to a different server ==&lt;br /&gt;
Processing office documents can put increased load on your webserver, which may impact on the responsiveness of your site. If you are installing unoconv on a large site you may want to consider running unoconv on a server that is not also serving web requests.&lt;br /&gt;
&lt;br /&gt;
How to do this:&lt;br /&gt;
&lt;br /&gt;
Install unoconv on each webservers and the remote server following the installation instructions above. &lt;br /&gt;
&lt;br /&gt;
Make sure unoconv is started at boot time on the remote server with the &amp;quot;--listener&amp;quot; argument and is monitored and restarted if it exits (see Debian init script for an example of how to do this). &lt;br /&gt;
&lt;br /&gt;
Open the firewall port 2002 between the moodle webservers and the machine running unoconv.&lt;br /&gt;
&lt;br /&gt;
Share the moodle data root between the webservers and the machine running unoconv. This folder must be mounted at the same path on all servers. &lt;br /&gt;
&lt;br /&gt;
Install a wrapper for unoconv on the webservers that forwards the requests to the remote server. Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# Wrapper script for unoconv to forward processing.&lt;br /&gt;
# Install to /usr/bin/unoconv-remote with 755 permissions&lt;br /&gt;
/usr/bin/unoconv --server=&amp;lt;ip of remote server&amp;gt; &amp;quot;$@&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configure the path to unoconv in the Moodle admin settings to point to this wrapper script.&lt;br /&gt;
&lt;br /&gt;
==Additional Resources==&lt;br /&gt;
The unoconv [https://github.com/dagwieers/unoconv documentation] site has additional information on installation of unoconv and troubleshooting tips.&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;br /&gt;
&lt;br /&gt;
[[es:mod/assign/feedback/editpdf/testunoconv]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=123101</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=123101"/>
		<updated>2016-05-03T06:05:04Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: test edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test page for docs&lt;br /&gt;
&lt;br /&gt;
Testing email notification...&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing 2-&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Col1&lt;br /&gt;
!Col2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions and Examples==&lt;br /&gt;
&lt;br /&gt;
Following are the functions that constitute the basic log API for Moodle.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 add_to_log($courseid, $module, $action, $url=&#039;&#039;, $info=&#039;&#039;, $cm=0, $user=0)&lt;br /&gt;
 user_accesstime_log($courseid=0)&lt;br /&gt;
 get_logs($select, array $params=null, $order=&#039;l.time DESC&#039;, $limitfrom=&#039;&#039;, $limitnum=&#039;&#039;, &amp;amp;$totalcount)&lt;br /&gt;
 get_logs_usercourse($userid, $courseid, $coursestart)&lt;br /&gt;
 get_logs_userday($userid, $courseid, $daystart)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The basic working of these functions can be categorized into two categories:-&lt;br /&gt;
# Adding data to logs&lt;br /&gt;
# Fetching data from logs&lt;br /&gt;
Let us take a deeper look into both of these:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;something in pre tags&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;and something in code tags&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Insert formula here&amp;lt;/math&amp;gt;==First edit in sandbox==&lt;br /&gt;
An additional edit to sandbox&lt;br /&gt;
This is where you can edit the content.&lt;br /&gt;
Another edit to sandox.&lt;br /&gt;
One more edit to sandbox&lt;br /&gt;
&lt;br /&gt;
==Testing gallery==&lt;br /&gt;
==Testing gallery==8/11&lt;br /&gt;
==Testing gallery==8/11 again&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
File:Atto_27.jpg|Atto &lt;br /&gt;
File:Clean27.jpg|Clean&lt;br /&gt;
File:MathJax.jpg|MathJax&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Bootstrap stuff==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;alert alert-block&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;close&amp;quot; data-dismiss=&amp;quot;alert&amp;quot;&amp;gt;&amp;amp;times;&amp;lt;/span&amp;gt;&#039;&#039;&#039;Warning!&#039;&#039;&#039; Click the cross to close this label ...&amp;lt;/div&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
[[de:Hauptseite]]&lt;br /&gt;
[[es:Zona de Pruebas]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=121256</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=121256"/>
		<updated>2015-11-16T13:13:27Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: testing email notification&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test page for docs&lt;br /&gt;
&lt;br /&gt;
Testing email notification yet again&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing 2-&lt;br /&gt;
&lt;br /&gt;
-Testing 3-&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Col1&lt;br /&gt;
!Col2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions and Examples==&lt;br /&gt;
&lt;br /&gt;
Following are the functions that constitute the basic log API for Moodle.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 add_to_log($courseid, $module, $action, $url=&#039;&#039;, $info=&#039;&#039;, $cm=0, $user=0)&lt;br /&gt;
 user_accesstime_log($courseid=0)&lt;br /&gt;
 get_logs($select, array $params=null, $order=&#039;l.time DESC&#039;, $limitfrom=&#039;&#039;, $limitnum=&#039;&#039;, &amp;amp;$totalcount)&lt;br /&gt;
 get_logs_usercourse($userid, $courseid, $coursestart)&lt;br /&gt;
 get_logs_userday($userid, $courseid, $daystart)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The basic working of these functions can be categorized into two categories:-&lt;br /&gt;
# Adding data to logs&lt;br /&gt;
# Fetching data from logs&lt;br /&gt;
Let us take a deeper look into both of these:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;something in pre tags&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;and something in code tags&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==First edit in sandbox==&lt;br /&gt;
An additional edit to sandbox&lt;br /&gt;
This is where you can edit the content&lt;br /&gt;
&lt;br /&gt;
==Testing gallery==&lt;br /&gt;
==Testing gallery==8/11&lt;br /&gt;
==Testing gallery==8/11 again&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
File:Atto_27.jpg|Atto &lt;br /&gt;
File:Clean27.jpg|Clean&lt;br /&gt;
File:MathJax.jpg|MathJax&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
more testing...&lt;br /&gt;
 &lt;br /&gt;
[[de:Hauptseite]]&lt;br /&gt;
[[es:Zona de Pruebas]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=118550</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=118550"/>
		<updated>2015-05-11T14:44:26Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: Testing email notification again&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test page for docs&lt;br /&gt;
&lt;br /&gt;
Testing email notification again&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Col1&lt;br /&gt;
!Col2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions and Examples==&lt;br /&gt;
&lt;br /&gt;
Following are the functions that constitute the basic log API for Moodle.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 add_to_log($courseid, $module, $action, $url=&#039;&#039;, $info=&#039;&#039;, $cm=0, $user=0)&lt;br /&gt;
 user_accesstime_log($courseid=0)&lt;br /&gt;
 get_logs($select, array $params=null, $order=&#039;l.time DESC&#039;, $limitfrom=&#039;&#039;, $limitnum=&#039;&#039;, &amp;amp;$totalcount)&lt;br /&gt;
 get_logs_usercourse($userid, $courseid, $coursestart)&lt;br /&gt;
 get_logs_userday($userid, $courseid, $daystart)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The basic working of these functions can be categorized into two categories:-&lt;br /&gt;
# Adding data to logs&lt;br /&gt;
# Fetching data from logs&lt;br /&gt;
Let us take a deeper look into both of these:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;something in pre tags&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;and something in code tags&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==First edit in sandbox==&lt;br /&gt;
An additional edit to sandbox&lt;br /&gt;
This is where you can edit the content&lt;br /&gt;
&lt;br /&gt;
==Testing gallery==&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
File:Atto_27.jpg|Atto &lt;br /&gt;
File:Clean27.jpg|Clean&lt;br /&gt;
File:MathJax.jpg|MathJax&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
more testing...&lt;br /&gt;
 &lt;br /&gt;
[[de:Hauptseite]]&lt;br /&gt;
[[es:Zona de Pruebas]]&lt;br /&gt;
[[pt_br:Main_Page]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=115863</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=115863"/>
		<updated>2014-11-10T11:07:47Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: testing email notification&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Test page for docs&lt;br /&gt;
&lt;br /&gt;
Testing email notification&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
-Testing-&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Col1&lt;br /&gt;
!Col2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|-&lt;br /&gt;
|Test1&lt;br /&gt;
|Test2&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions and Examples==&lt;br /&gt;
&lt;br /&gt;
Following are the functions that constitute the basic log API for Moodle.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 add_to_log($courseid, $module, $action, $url=&#039;&#039;, $info=&#039;&#039;, $cm=0, $user=0)&lt;br /&gt;
 user_accesstime_log($courseid=0)&lt;br /&gt;
 get_logs($select, array $params=null, $order=&#039;l.time DESC&#039;, $limitfrom=&#039;&#039;, $limitnum=&#039;&#039;, &amp;amp;$totalcount)&lt;br /&gt;
 get_logs_usercourse($userid, $courseid, $coursestart)&lt;br /&gt;
 get_logs_userday($userid, $courseid, $daystart)&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The basic working of these functions can be categorized in two categories:-&lt;br /&gt;
# Adding data to logs&lt;br /&gt;
# Fetching data from logs&lt;br /&gt;
Let us take a deeper look into both of these:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;something in pre tags&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==First edit in sandbox==&lt;br /&gt;
&lt;br /&gt;
==Testing gallery==&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-hover&amp;quot;&amp;gt;&lt;br /&gt;
File:Atto_27.jpg|Atto &lt;br /&gt;
File:Clean27.jpg|Clean&lt;br /&gt;
File:MathJax.jpg|MathJax&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
more testing...&lt;br /&gt;
 &lt;br /&gt;
[[de:Hauptseite]]&lt;br /&gt;
[[es:Zona de Pruebas]]&lt;br /&gt;
[[pt_br:Main_Page]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=101619</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=101619"/>
		<updated>2012-10-31T06:18:49Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.youtube.com/watch?v=3xUqnoIzSbo Youtube embedded video test]&lt;br /&gt;
&lt;br /&gt;
testing email notification of watched pages...&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=98970</id>
		<title>Sandbox</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Sandbox&amp;diff=98970"/>
		<updated>2012-07-05T06:20:45Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: testing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.youtube.com/watch?v=3xUqnoIzSbo Youtube embedded video test]&lt;br /&gt;
&lt;br /&gt;
testing email notification of watched pages...&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Language_FAQ&amp;diff=98968</id>
		<title>Language FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Language_FAQ&amp;diff=98968"/>
		<updated>2012-07-04T13:31:21Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: /* How can I make a new language pack? */ link edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language}}&lt;br /&gt;
==Where can I set the default language for the site?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Site Administration &amp;gt; Language &amp;gt; [[Language settings]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==How can I change a word or phrase used in Moodle?==&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;Settings &amp;gt; Site Administration &amp;gt; Language &amp;gt; Language customization&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
See [[Language customization]] for details.&lt;br /&gt;
&lt;br /&gt;
==How can I find where a language string is located?==&lt;br /&gt;
&lt;br /&gt;
Tick the &#039;Show origin of languages strings&#039; checkbox in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Development &amp;gt; Debugging&#039;&#039; then visit the page containing the string you want to customize.&lt;br /&gt;
&lt;br /&gt;
==Why are my changes not saved if I edit a language pack with the Moodle language pack editor?==&lt;br /&gt;
&lt;br /&gt;
This could be caused by a PHP accelerator. Try switching it off (usually in php.ini).&lt;br /&gt;
&lt;br /&gt;
==I&#039;ve set a default site language but when I log in it switches to English. Why?==&lt;br /&gt;
&lt;br /&gt;
By default, Moodle detects a user&#039;s language from their browser setting. This language auto-detection may be disabled so that the default site language is used instead in &#039;&#039;Site administration &amp;gt; Language &amp;gt; [[Language settings]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How can I provide course content in more than one language?==&lt;br /&gt;
&lt;br /&gt;
Labels, web pages, activity descriptions etc. may be provided in more than one language using the [[Multi language content|Multi language content filter]].&lt;br /&gt;
&lt;br /&gt;
==How can I disable (hide) the language dropdown menu on the site front page?==&lt;br /&gt;
&lt;br /&gt;
Go to &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language &amp;gt; Language settings&#039;&#039; and un-tick the &#039;Display language menu&#039; checkbox.&lt;br /&gt;
&lt;br /&gt;
==Are there any short cuts for editing a language?==&lt;br /&gt;
Yes, but be careful.  You can make use of the customize language process.  Basically copy the php files that contain the strings you want to change to the moodledata/lang/local folder.   For example, copy the /lang/en/moodle.php file to someplace.  Edit the file with a search and replace with whole word and case sensitive turned on, change Teacher to Instructor and Teachers to Instructors, do the same for teacher and teachers.  Now copy that saved copy of the moodle.php file to the  moodledata/lang/en_local folder.   Be careful not to change the String name. &lt;br /&gt;
&lt;br /&gt;
Because it is a customization, Moodle will not erase the xx_local language files in Moodledata with an upgrade.   Moodle will upgrade any language folders it finds in the moodle/lang folder.&lt;br /&gt;
&lt;br /&gt;
==How can I make a new language pack?==&lt;br /&gt;
&lt;br /&gt;
See [[Translation]]. Even though your new language pack might be in a version of English (such as &amp;quot;Pirate talk!&amp;quot;) it is still classed as a translation.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Translation FAQ]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=26 Languages forum]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=131927#p604462 Edited Strings Not Visible]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=163375 Language customization in 2.0]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[fr:FAQ de langue]]&lt;br /&gt;
[[de:Sprache FAQ]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Using_Forum&amp;diff=98849</id>
		<title>Using Forum</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Using_Forum&amp;diff=98849"/>
		<updated>2012-06-26T09:03:24Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: /* Display options */ rearranging images&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Forum}}&lt;br /&gt;
The teacher can set the format of what the student sees under the introduction by selecting the forum type in [[Forum settings]].&lt;br /&gt;
&lt;br /&gt;
==Views==&lt;br /&gt;
&lt;br /&gt;
===A single simple discussion===&lt;br /&gt;
&lt;br /&gt;
Students will see the text you have placed in the [[Adding/editing_a_forum#Forum_introduction|Forum introduction setting]] as the first post of the discussion. Below you will find the replies that have been posted.  In the example below, the student sees that their reply was rated.&lt;br /&gt;
[[Image:Forum homepage view Simple student mu.png|650px|thumb|center|Student view of &amp;quot;A single simple discussion&amp;quot; forum type]]&lt;br /&gt;
&lt;br /&gt;
===Each person posts one discussion===&lt;br /&gt;
The view will be basically the same as in the previous case, the only difference being the &#039;Add a new discussion&#039; option. Viewing a forum page, the student will see the text you have written at the &#039;Forum introduction&#039; space while creating the forum, and, if there are any, the discussions that have been started. &lt;br /&gt;
&lt;br /&gt;
[[Image:Forum homepage view Single student mu.png|650px|thumb|center|Student view of &amp;quot;Each person posts one discussion&amp;quot; forum type]] &lt;br /&gt;
&lt;br /&gt;
===Standard forum for general use===&lt;br /&gt;
&lt;br /&gt;
In this forum type, students will see the introduction text in a separate space above the discussion field, in which you will see the information such as the title of the discussion (which means the forum&#039;s title), its author, the number of replies and the date of the last post. &lt;br /&gt;
[[Image:Forum homepage view student mu.png|650px|thumb|center|Student view of &amp;quot;Standard forum for general use&amp;quot; forum type]] &lt;br /&gt;
&lt;br /&gt;
===Question and Answer forum===&lt;br /&gt;
&lt;br /&gt;
[[Image:Forum homepage view QandA student mu.png|650px|thumb|center|Student view of &amp;quot;Question and Answer&amp;quot; forum type]] &lt;br /&gt;
&lt;br /&gt;
===Standard forum displayed in blog-like format===&lt;br /&gt;
[[Image:Bloglikeforum.png|634px|thumb|center|Student view of &amp;quot;Standard forum displayed in blog-like format&amp;quot; forum type]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the upper right corner of the home forum screen (above the introduction), the student may see the options the teacher has set for [[Adding/editing_a_forum#Force_everyone_to_be_subscribed.3F|subscriptions to the forum]], and the &#039;Jump to&#039; field, with which you can &#039;jump&#039; to any part of the course. This is also place where the teacher will find the &amp;quot;Update this forum&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Display options==&lt;br /&gt;
[[Image:forumviewoptions.jpg|thumb|Reply display options]]A discussion thread may be displayed in four ways. Use the pull down menu at the top of each forum discussion to select a display type.&lt;br /&gt;
&lt;br /&gt;
* Display replies flat, with oldest first&lt;br /&gt;
* Display replies flat, with newest first - The discussion will be displayed in one line and the chronological order from the newest to the oldest.  This is the same as the above, just a different sort order.&lt;br /&gt;
* Display replies in threaded form - Only the post starting the discussion will be displayed in its full form; replies will be reduced to the headlines (including information about its author and date of release) and organized chronologically; moreover, replies will be shifted towards the right so that only replies to the same post were in the same line.&lt;br /&gt;
* Display replies in nested form - All posts are displayed in their full forms; replies will be reduced to the headlines (including information about its author and date of release) and organized chronologically; moreover, replies will be shifted towards the right so that only replies to the same post were in the same line.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[Image:Forum Flat form mu.png|thumb|Flat Forum discussion, example from middle]]&lt;br /&gt;
| [[Image:Forum threaded form mu.png|thumb|Posts in threaded form]]&lt;br /&gt;
| [[Image:Forum nested form mu.png|thumb|&amp;quot;Nested reply example&amp;quot;]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Forum posting==&lt;br /&gt;
&lt;br /&gt;
The default content of &#039;&#039;&#039;Subject&#039;&#039;&#039; is usually &#039;Re: &amp;lt;the name of the &#039;parent&#039; post&amp;gt;&#039;. You can change it though. &lt;br /&gt;
&lt;br /&gt;
When writing text in Moodle there are several formats you can choose to produce your text, depending on your expertise and the type of browser you are using. Please refer to [[Formatting text]] for further information.&lt;br /&gt;
&lt;br /&gt;
=== Sharing images through forums ===&lt;br /&gt;
&lt;br /&gt;
*When an image is &amp;quot;attached&amp;quot; as a file to a forum message, it is immediately displayed full size after the message (i.e. no need to click on an attachment).  This an excellent way of sharing images without having to go through the process of uploading them as files and linking them from within web pages. &lt;br /&gt;
&lt;br /&gt;
*Images may be dragged and dropped into the box as well as uploading via the &amp;quot;add&amp;quot; link and the [[File picker]].{{New features}}&lt;br /&gt;
&lt;br /&gt;
[[File:forumdragdrop.png]]&lt;br /&gt;
&lt;br /&gt;
===Sharing sound and video through forums===&lt;br /&gt;
*If multimedia filters are enabled, a sound file (mp3) or accepted video file can be attached and it will be embedded into the forum post in an appropriate player.&lt;br /&gt;
*As with images in the previous section, multimedia files may be dragged and dropped from the desktop instead of uploaded via the [[File picker]].&lt;br /&gt;
&lt;br /&gt;
===Post length===&lt;br /&gt;
&lt;br /&gt;
Extra-long posts cause problems when doing a forum search and can be difficult to read on screen. Rather than creating a very long post, consider copying and pasting the text into a text file and add it as an attachment to your forum post. &lt;br /&gt;
&lt;br /&gt;
===Post editing time limit===&lt;br /&gt;
&lt;br /&gt;
There is a time limit for editing posts, usually 30 minutes. It is set by an administrator in &#039;&#039;Administration &amp;gt; Security &amp;gt; [[Site policies]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The Using Moodle forum discussion [http://moodle.org/mod/forum/discuss.php?d=5367 The philosophy underlying &amp;quot;no editing after 30 minutes&amp;quot;] includes reasons why it is a good idea to have a time limit for editing posts.&lt;br /&gt;
&lt;br /&gt;
===Mail now===&lt;br /&gt;
&lt;br /&gt;
A mail now checkbox is available for anyone with the [[Capabilities/moodle/course:manageactivities|capability to manage course activities]], normally teachers and admins.&lt;br /&gt;
&lt;br /&gt;
Checking the &amp;quot;Mail now&amp;quot; box results in an email being sent immediately (i.e. when the [[Cron|cron]] next runs) to everyone subscribed to the forum, rather than after the post editing time limit. &lt;br /&gt;
&lt;br /&gt;
==Exporting forum posts==&lt;br /&gt;
Users with the &#039;&#039;mod/forum:exportdiscussion&#039;&#039; or &#039;&#039;mod/forum:exportownpost&#039;&#039; or &#039;&#039;mod/forum:exportpost&#039;&#039; permission can export forum posts to any portfolio the administrator has enabled:&lt;br /&gt;
&lt;br /&gt;
[[File:Exportforum.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Moving a discussion==&lt;br /&gt;
&lt;br /&gt;
Teachers and other users with the [[Capabilities/mod/forum:movediscussions|capability to move discussions]] can move a discussion to any other forum in the course for which they have appropriate rights.&lt;br /&gt;
# Click on the arrow in the &#039;Move this discussion to...&#039; dropdown menu in the top right corner of the page and select a destination forum.&lt;br /&gt;
# Click the Move button.&lt;br /&gt;
&lt;br /&gt;
==Guidelines for Teaching and Learning Forums==&lt;br /&gt;
&lt;br /&gt;
When you decide to use a discussion forum as an activity in an e-learning environment, it is important to be aware that your time will be needed in some sense in order to make the activity successful. If your goal is to encourage discussion, the forum will only work if: &lt;br /&gt;
&lt;br /&gt;
a) &#039;&#039;&#039;participants feel there is a need/reason to participate and they will gain something from the experience.&#039;&#039;&#039; Incentives for learning, gathering support, etc. should be explored and encouraged early on in order to clearly convey the purpose of the forum to others. Anyone considering offering grades or marks for participation is advised to think very carefully about the difference between quantity and quality of discussions in forums.&lt;br /&gt;
&lt;br /&gt;
b) a sense of community and purpose can be fostered amongst participants. This sense of community can be fostered through tutor/teacher initiative and scaffolding, or primarily through the students/participants themselves depending on the intentions of the activity.&lt;br /&gt;
&lt;br /&gt;
==Selecting forum type==&lt;br /&gt;
&lt;br /&gt;
Moodle has four kinds of forums each with a slightly different [[Viewing a forum|layout]] and purpose.&lt;br /&gt;
&lt;br /&gt;
Which of the forums will best suit your needs for a particular activity? In order to answer this question, it is useful to think how you might lead such a discussion in a face-to-face environment. Would you throw the question out to the class and sit back to observe them in their answers? Or would you break them up into smaller groups first and ask them to have discussions with a partner before bringing them back to the main group? Or perhaps you would like to keep them focused on a particular aspect of a question and ensure that they do not wander away from the topic at hand? All of the above approaches are both valid and useful, depending on your learning outcomes, and you can replicate all of them in Moodle forums.&lt;br /&gt;
&lt;br /&gt;
===A standard forum for general use===&lt;br /&gt;
The standard forum ([[Viewing_a_forum#Standard_forum_for_general_use|view here]]) probably most useful for large discussions that you intend to monitor/guide or for social forums that are student led. This does not mean that you need to make a new posting for each reply in each topic, although, in order to ensure that the discussion does not get &#039;out of control&#039;, you may need to be prepared to spend a significant amount of time finding the common threads amongst the various discussions and weaving them together. Providing overall remarks for particular topics can also be a key aspect of your responsibilities in the discussion. Alternatively, you could ask students to summarize discussion topics at agreed points, once a week or when a thread comes to an agreed conclusion. Such a learner-centred approach may be particularly useful once the online community has been established and, perhaps, when you have modeled the summarizing process.&lt;br /&gt;
&lt;br /&gt;
===A single simple discussion=== &lt;br /&gt;
The simple forum ([[Viewing_a_forum#A_single_simple_discussion|view here]]) is most useful for short/time-limited discussion on a single subject or topic. This kind of forum is very productive if you are interested in keeping students focused on a particular issue. &lt;br /&gt;
&lt;br /&gt;
===Each person posts one discussion===&lt;br /&gt;
This forum ([[Viewing_a_forum#Each_person_posts_one_discussion|view here]]) is most useful when you want to achieve a happy medium between a large discussion and a short and focused discussion. A single discussion topic per person allows students a little more freedom than a single discussion forum, but not as much as a standard forum where each student can create as many topics as he or she wishes. Successful forums of this selection can be active, yet focused, as students are not limited in the number of times they can respond to others within threads.&lt;br /&gt;
&lt;br /&gt;
===Question and Answer forum=== &lt;br /&gt;
The Q &amp;amp; A forum ([[Viewing_a_forum#Question_and_Answer_forum|view here]]) is best used when you have a particular question that you wish to have answered. In a Q and A forum, tutors post the question and students respond with possible answers. By default a Q and A forum requires students to post once before viewing other students&#039; postings. After the initial posting and once the editing time (usually 30 minutes) has elapsed, students can view and respond to others&#039; postings. This feature allows equal initial posting opportunity among all students, thus encouraging original and independent thinking.&lt;br /&gt;
&lt;br /&gt;
===Standard forum displayed in blog-like format===&lt;br /&gt;
This forum  behaves in the same way as the default standard forum for general use, allowing users to start their own discussions. However, it displays differently in that the first post of each discussion is displayed (as in a blog) so that users can read it and then choose to respond by clicking the &amp;quot;Discuss this topic&amp;quot; button bottom right of the post.&lt;br /&gt;
&lt;br /&gt;
====Tips for Question and Answer====&lt;br /&gt;
When the Question and Answer mode is selected, Moodle hides the replies to the initial thread post by the teacher but not the entire forum itself. &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; Post each question as a thread in the forum and then have students post replies to the question. In this fashion, Moodle will protect the replies from being viewable (subject to the caveat above) by other students but allow the initial post/thread visible for reply by all students.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; Do not post the question in the forum summary because every student answer will become a thread and visible to all students. In this scenario, it may appear as if the Question and Answer forum is not working correctly, since the new initial posts in the thread are intentionally designed not to be hidden, just their replies.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you have set up groups for your forum the facilitator needs to post a question to each of the groups and not to &#039;all participants&#039; as questions asked of all participants (students) are able to be read by ALL students. Questions posed to group members are only visible to those group members and replies are only visible once a group member has posted a message.&lt;br /&gt;
&lt;br /&gt;
==Forum subscription==&lt;br /&gt;
&lt;br /&gt;
When a person is &#039;&#039;&#039;subscribed&#039;&#039;&#039; to a forum it means that they will be notified (according to their [[Messaging settings]] preferences) of every subsequent post in that forum. Posters have 30 minutes by default to edit their post before it is sent though this time limit can be changed by an administrator.&lt;br /&gt;
&lt;br /&gt;
People can usually choose whether or not they want to be subscribed to each forum. However, if a teacher forces subscription on a particular forum then this choice is taken away and everyone in the class will get notified.This is especially useful in the News forum and in forums towards the beginning of the course (before everyone has worked out that they can subscribe to these emails themselves).&lt;br /&gt;
&lt;br /&gt;
Note that even if you force subscriptions every user can elect not to  be notified in  [[Messaging settings]], or elect to have all email sent once a day in a digest contain either all posts or simply the subject headings.&lt;br /&gt;
&lt;br /&gt;
Choosing &#039;&#039;Everyone can choose to be subscribed&#039;&#039; enables you to check (and modify) the number of subscribers (&#039;Show/edit current subscribers&#039;) and to subscribe to (or unsubscribe from) the forum (&#039;Subscribe to this forum&#039; / &#039;Unsubscribe from this forum&#039;).&lt;br /&gt;
&lt;br /&gt;
An overview of your forum subscriptions is available on the forums index page e.g. http://moodle.org/mod/forum/index.php?id=5&lt;br /&gt;
&lt;br /&gt;
==Concepts for use in forums==&lt;br /&gt;
===Participation and Scaffolding ===&lt;br /&gt;
&lt;br /&gt;
Whilst one of the great advantages of e-learning is the flexibility it affords participants, this does not mean that days or weeks should pass without response and discussion in a forum (unless it is appropriate for it to do so). This is perhaps most especially true at the beginning of a course or programme when students and tutors are new to each other and in need of welcome messages/encouragement. Whilst e-learning, and discussions in particular, can support learning that is not always tutor/teacher-centred, your role will be important, especially as an online community begins to develop. It is during these initial stages of introductory material that a group of students can become a community of participants who begin to grow in their understandings of course material and individual contributions to the knowledge construction process.&lt;br /&gt;
&lt;br /&gt;
As the discussions progress and learners become accustomed to the mechanics and the tone of the forums then there are key ways in which your input can be reduced, thereby helping to foster a community that is less dependent on the tutor/teacher. Even then, however, you will probably want to be a presence in the discussions although you may choose to be one of many contributors rather than the font of all wisdom.&lt;br /&gt;
&lt;br /&gt;
===Commitment and Participation===&lt;br /&gt;
&lt;br /&gt;
Ask yourself if&lt;br /&gt;
&lt;br /&gt;
# you wish to have involvement in the forum or if you want the students to lead and own the space&lt;br /&gt;
# you want the forum to add value to the face to face environment or have a life of its own in its own right outside the lecture theatre/classroom or seminar room&lt;br /&gt;
# you are prepared to make appropriate contributions to the discussion in order to: &lt;br /&gt;
## encourage discussion if students are quiet&lt;br /&gt;
## help shape ideas if students begin to wander off-task&lt;br /&gt;
## your role will be defined as discussions/a course progresses &lt;br /&gt;
## you will explicitly but gradually relinquish control of the discussions&lt;br /&gt;
## you will encourage and support learners to share control of discussions(for example you might ask a learner/group of learners to summarise contributions to a discussion thread/topic or you might ask learners to initiate discussion topics)&lt;br /&gt;
&lt;br /&gt;
===Student Centered Forums===&lt;br /&gt;
&lt;br /&gt;
With the growing popularity of social networking software like Facebook, Bebo, MySpace and the like, students are leaving schools and coming to Higher and Further Education with a new technological sophistication and with new expectations for communication. And as school, colleges and universities recognise that reflective and life long learning are significant goals in education, student centered learning and the creation of student centered spaces online are also gaining credence in educational settings. We know that effective learning requires access to social and academic networks for both study material and emotional support; as such, online communities can offer a holistic knowledge construction and support mechanism and recognize that affective activity is effective. &lt;br /&gt;
&lt;br /&gt;
Social forums, often called ‘Virtual Cafes’ or ‘Common Rooms’ can be set up for courses or for programmes, depending on the student need. Such spaces provide a common area for students to come together and discuss unlimited topics, including social activities and educational ideas. They are supportive spaces for students, most successful with large first and second year courses where students would not otherwise have the opportunity to communicate with others outside their own tutorial group. It is arguable that students will experience a greater sense of community within and a sense of belonging to an educational institution or individual department having had the experience and convenience of the social forum on their course; this could arguably have implications for retention.&lt;br /&gt;
&lt;br /&gt;
These spaces are typically highly active, especially in first term. Depending on your institution, they are usually self monitored by students, who understand that the same ‘rules’ and ‘netiquette’ that apply to them within any computing space, also apply in Moodle.&lt;br /&gt;
&lt;br /&gt;
===The News Forum===&lt;br /&gt;
&lt;br /&gt;
Moodle courses automatically generate a [[News forum]] which defaults to automatically subscribe all participants in a course. The name of the News Forum can be changed to something more appropriate, such as ‘Important Announcements’ or the like. This is a useful feature and many use this forum in a Moodle course to announce exam dates, times or changes to exams, lectures or seminars, as well as important information about course work throughout a term or special announcements relating to events.&lt;br /&gt;
&lt;br /&gt;
===Teacher/Tutor forums===&lt;br /&gt;
A teacher/tutor-only forum may be added to a course by creating a hidden forum. Teachers are able to view hidden course activities whereas students cannot.&lt;br /&gt;
&lt;br /&gt;
==Some forum suggestions to consider==&lt;br /&gt;
&lt;br /&gt;
#If your course is at a distance, if your face to face time is limited, or if you just wish to foster a sense of community in your Moodle course which supplements your face to face course, it is good practice to begin with a welcome or introductory message or thread in one of your forums. This welcome or introduction from you invites participants, for example, to post some specific details to introduce themselves to you and their peers. This can be your icebreaker or you can have an icebreaker separately.&lt;br /&gt;
#If you have two questions for participants to answer, starting the two strands or topics within the forum itself will both help learners to see where to put their responses, and remind them to answer all parts of your question.&lt;br /&gt;
#Remember that you are communicating in an environment that does not have the benefit of verbal tone, eye contact, body language and the like. Careful consideration of your communication is, therefore, necessary.&lt;br /&gt;
#Postings to a forum are always written but they can take different forms and you may wish to consider what form best suits the activity. For instance, you might choose to articulate a form of contribution in order to be explicit. Thus you might say, &#039;This is a think-aloud forum in which, together, we will try to tease out ideas and possibilities&#039; or &#039;This is a formal forum in which you are invited to share your ideas on (topic)&#039; and, where you select the latter, you might have already suggested learners plan those ideas offline or in another kind of activity within Moodle.&lt;br /&gt;
#Create a forum where only the teacher can start discussions, but the students can only reply. Each thread you start contains an essay question (or several similar ones). The students make a bullet point plan for the essay and post it as a reply. This works well as a revision strategy as the students can see how others have approached the same task. Once everyone has posted their plan, you can start a discussion as to which plans seem better and why. Creating a scale to use for rating the posts can be useful so that the students can see how helpful other people think their effort were. (Note: At this time, there is no option to hide the &amp;quot;Add new discussion topic&amp;quot; button, so you need to tell your students not to start discussion threads, but to only reply to threads started by the teacher. If you only need one thread, then you can use the &amp;quot;a single simple discussion&amp;quot; format and the &amp;quot;Add new discussion topic&amp;quot; button is not available to the students.)&lt;br /&gt;
&lt;br /&gt;
===Grading forums===&lt;br /&gt;
&lt;br /&gt;
The teacher can use the [[Forum ratings|ratings]] [[Scales|scales]] to [[Grades|grade]] student activities in a forum. There are several methods for calculating the grade for a forum that can be found in the [[Adding/editing_a_forum#Grade|Forum settings under grades]]. There are 5 ways to [[Adding/editing_a_forum#Aggregate_type|aggregate ratings]] automatically to calculate a forum grade for the [[Gradebook]]. These include: Average, Max, Min, Count and Sum.&lt;br /&gt;
&lt;br /&gt;
==Forum ratings allow users to evaluate posts in a forum==&lt;br /&gt;
&lt;br /&gt;
Forum ratings use [[Scales]] to standardize the reporting of performance. A forum rating can be included as part of a student&#039;s [[Grades|grade]].  For example, a teacher might use a custom rating scale in a forum and allow students to rate forum posts.&lt;br /&gt;
&lt;br /&gt;
Forum ratings must be allowed and the potential rater must have [[Roles|role]] permission. Teachers by default have this ability.  The teacher role is also able to give permission to a [[Student|student role]] in a specific forum to be able to assign a rating to a post. Forum settings and [[Forum_permissions#Enabling_students_to_rate_posts| Enabling student ratings]] has more information.     &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How to use===&lt;br /&gt;
[[Image:Forum rating example1 mu.png|thumb|Teacher view of a previously rated student post]]When rating is allowed, the qualified user will see &amp;quot;Rate this post&amp;quot; and a pull down menu after an entry (not their own).  The menu displays a [[Scales|scale]] that the forum creator selected in the [[Adding/editing_a_forum#Grade|Forum grade settings]]. The user can rate more than one post at a time.  When finished they should click the &amp;quot;submit my ratings&amp;quot; button at the bottom of the page.   &lt;br /&gt;
&lt;br /&gt;
===AJAX forum rating===&lt;br /&gt;
&lt;br /&gt;
Forum rating can be made more user-friendly with the use of AJAX. Users can rate forum posts almost instantly without needing to scroll to the bottom of the page and click the &amp;quot;Send in my latest ratings&amp;quot; button. &lt;br /&gt;
&lt;br /&gt;
AJAX forum rating requires AJAX to be enabled by an administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Appearance &amp;gt; [[AJAX and Javascript settings|AJAX and Javascript]]&#039;&#039; and by users in their [[Edit profile|user profile]].&lt;br /&gt;
&lt;br /&gt;
===Separate and connected knowing===&lt;br /&gt;
You can  rate forum posts with the [[Separate_and_Connected_Knowing| Separate and Connected Knowing]] scale here.&lt;br /&gt;
&lt;br /&gt;
===Best Practice and shared discussions===&lt;br /&gt;
*There are lots of discussions about Forum best use and Forum assessment in the Teaching Strategies Forum http://moodle.org/mod/forum/view.php?id=41.&lt;br /&gt;
&lt;br /&gt;
*A useful discussion about Forum assessment can be found here http://moodle.org/mod/forum/discuss.php?d=66008.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?f=116 Forum module]&lt;br /&gt;
*[http://www.moodleblog.onet/?page_id=148 Peer Assessment using a Moodle Forum] blog post with screencast&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=5367 The philosophy underlying &amp;quot;no editing after 30 minutes&amp;quot;]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=66008 Best Practices for grading discussions]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=88000 Two Courses, One Forum?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=93304 Using a forum for 1 to 1 teaching]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=95470 Technicalities of managing a Forum]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=67360 Role names showing next to posting photos]&lt;br /&gt;
&lt;br /&gt;
[[de: Forum nutzen]]&lt;br /&gt;
[[fr:Afficher un forum]]&lt;br /&gt;
[[ja:フォーラムの閲覧]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Admin_tools&amp;diff=97970</id>
		<title>Admin tools</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Admin_tools&amp;diff=97970"/>
		<updated>2012-05-23T06:16:49Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: removing new features template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Managing a Moodle site}}&lt;br /&gt;
The following admin tools can be managed by an administrator in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Admin tools &amp;gt; Manage admin tools&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*Blog visibility upgrade&lt;br /&gt;
*[[Permissions|Capability overview]] - in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Capability report&#039;&#039;&lt;br /&gt;
*[[Migration from MyISAM to InnoDB|Convert to InnoDB]]&lt;br /&gt;
*Database transfer&lt;br /&gt;
*[[Search and replace|DB search and replace]]&lt;br /&gt;
*Health center&lt;br /&gt;
*[[Language customization]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language&amp;gt; Language customization&#039;&#039;&lt;br /&gt;
*[[Language packs]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language &amp;gt; Language packs&#039;&#039;&lt;br /&gt;
*Multilang upgrade&lt;br /&gt;
*[[:dev:Profiling PHP|Profiling runs]]&lt;br /&gt;
*[[Question engine upgrade helper]]&lt;br /&gt;
*Random course generator&lt;br /&gt;
*[[Reducing spam in Moodle|Spam cleaner]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Reports &amp;gt; Spam cleaner&#039;&#039;&lt;br /&gt;
*[[Location|Timezones updater]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Location &amp;gt; Update timezones&#039;&#039;&lt;br /&gt;
*[[:dev:Unit test API|Unit tests]] in &#039;&#039;Site administration &amp;gt; Development &amp;gt; Unit tests&#039;&#039;&lt;br /&gt;
*[[Roles settings|Unsupported role assignments]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Unsupported role assignments&#039;&#039;&lt;br /&gt;
*[[Upload users|User upload]] in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
*[[:dev:XMLDB editor|XMLDB editor]] in &#039;&#039;Site administration &amp;gt; Development &amp;gt; XMLDB editor&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[:dev:Admin tools|Admin tools developer documentation]]&lt;br /&gt;
* MDL-29029&lt;br /&gt;
&lt;br /&gt;
[[Category:Site administration]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=IMS_Common_Cartridge_import_and_export&amp;diff=97969</id>
		<title>IMS Common Cartridge import and export</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=IMS_Common_Cartridge_import_and_export&amp;diff=97969"/>
		<updated>2012-05-23T06:01:52Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: removing new features template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Backup}}&lt;br /&gt;
IMS Common Cartridge packages, such as a study package from [http://openlearn.open.ac.uk/ The Open University LearningSpace] can be imported into Moodle by uploading the zip file to &#039;&#039;Settings &amp;gt; Course administration &amp;gt; Restore&#039;&#039; then clicking the restore button (the same process as restoring a course backup).&lt;br /&gt;
&lt;br /&gt;
{{stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Common Cartridge]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Gravatars&amp;diff=97967</id>
		<title>Gravatars</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Gravatars&amp;diff=97967"/>
		<updated>2012-05-23T05:54:24Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: removing new features template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
[http://gravatar.com/ Gravatar] (an abbreviation for globally recognized avatar) is a service for providing globally unique avatars.&lt;br /&gt;
&lt;br /&gt;
An administrator can enable the use of gravatars in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039;. If a user has not uploaded a user picture, Moodle will check whether the user&#039;s email address has an associated gravatar and if so, will use the gravatar as the user&#039;s picture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use your Gravatar in Moodle 2.2 screencast:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;mediaplayer&amp;gt;http://www.youtube.com/watch?v=Z4b7tJedlMA&amp;lt;/mediaplayer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[User pictures]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Category:New_features&amp;diff=97939</id>
		<title>Category:New features</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Category:New_features&amp;diff=97939"/>
		<updated>2012-05-23T05:05:18Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: version edit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main page}}&lt;br /&gt;
A list of pages documenting new features in Moodle 2.3.&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Choice_settings&amp;diff=94167</id>
		<title>Choice settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Choice_settings&amp;diff=94167"/>
		<updated>2011-11-29T07:15:18Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: removing new features template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Choice}}&lt;br /&gt;
&lt;br /&gt;
==Choice administration settings==&lt;br /&gt;
*With the editing turned on, choose from the dropdown &#039;&#039;Add an Activity&#039;&#039; the option &#039;&#039;Choice&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Choice.png]]&lt;br /&gt;
&lt;br /&gt;
===Name===&lt;br /&gt;
*A short name of the choice (e.g. &amp;quot;Favourite colour&amp;quot;). This will be displayed on the course&#039;s homepage.&lt;br /&gt;
&lt;br /&gt;
===Introduction text===&lt;br /&gt;
*Type the description of the choice activity here. It should contain the question that you want your students to answer. An example of the choice text could be &amp;quot;What is your favourite colour?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{Moodle 2.2}}In Moodle 2.2 onwards, there is an option to display the Choice description on the course page below the link to the activity. See the screencast [http://www.screencast.com/t/ieLFs7To0e Moodle 2.2 - Show descriptions] for a demonstration by developer Sam Marshall.&lt;br /&gt;
&lt;br /&gt;
===Limits===&lt;br /&gt;
*Enabling this option allows you to limit the number of participants who can select each particular choice. When that number has been reached, no one else can select that choice.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning!!&#039;&#039;&#039; If you unintentionally check this box but don&#039;t add a number then your students won&#039;t be able to select any choices and will get confused :)&lt;br /&gt;
&lt;br /&gt;
===Options===&lt;br /&gt;
*Specify here the options that participants have to choose from. They will become radio buttons when the choice is saved.&lt;br /&gt;
*You can leave other options blank or click &amp;quot;Add 3 fields to form&amp;quot; to add more options.&lt;br /&gt;
*If &#039;&#039;Limits&#039;&#039; is disabled, then any number of participants can select any of the options.&lt;br /&gt;
&lt;br /&gt;
[[File:Choicesetup.png]]&lt;br /&gt;
&lt;br /&gt;
===Restrict answering===&lt;br /&gt;
*If you check this box you can set an &amp;quot;open and close&amp;quot; date for your choice.&lt;br /&gt;
*If you leave it, they can respond at any time. &#039;&#039;&#039;Hint&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
===Miscellaneous settings===&lt;br /&gt;
====Display mode====&lt;br /&gt;
*Choose &amp;quot;horizontally&amp;quot; if you only have three or four choices maximum; choose &amp;quot;vertically if you have a large number of choices.&lt;br /&gt;
&lt;br /&gt;
====Publish results====&lt;br /&gt;
&lt;br /&gt;
*This determines whether (and when) the students will be able to view the results of the choice activity. They may:&lt;br /&gt;
&lt;br /&gt;
**never see the results of the choice&lt;br /&gt;
**see the results only after they have given the answer themselves&lt;br /&gt;
**see the results only after the closing date of the choice&lt;br /&gt;
**always see the results&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Privacy of results====&lt;br /&gt;
&lt;br /&gt;
*If &amp;quot;Publish&amp;quot; was chosen above, then this dropdown in unlocked. You can decide whether to show names of students or merely the number who responded but without names.&lt;br /&gt;
&lt;br /&gt;
====Allow choice to be updated====&lt;br /&gt;
&lt;br /&gt;
*If this is set to &amp;quot;Yes&amp;quot;, students can change their mind after they have voted. If it&#039;s set to &amp;quot;No&amp;quot;, students cannot change their choice.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Show column for unanswered====&lt;br /&gt;
&lt;br /&gt;
*If set to &amp;quot;Yes&amp;quot;, this will display a column showing how many participants have not answered the choice activity yet. If set to &amp;quot;No&amp;quot;, the results will only include the participants who have already voted.&lt;br /&gt;
&lt;br /&gt;
===Other settings===&lt;br /&gt;
There are the usual [[Common module settings]] and  - if admin has enabled them - the Restrict access settings [[Conditional activities]].&lt;br /&gt;
&lt;br /&gt;
==Site administration settings==&lt;br /&gt;
&lt;br /&gt;
*The following capabilities are related to choices:&lt;br /&gt;
&lt;br /&gt;
*[[Capabilities/mod/choice:downloadresponses|mod/choice:downloadresponses]]&lt;br /&gt;
*[[Capabilities/mod/choice:deleteresponses|mod/choice:deleteresponses]]&lt;br /&gt;
*[[Capabilities/mod/choice:readresponses|mod/choice:readresponses]]&lt;br /&gt;
*[[Capabilities/mod/choice:choose|mod/choice:choose]]&lt;br /&gt;
&lt;br /&gt;
[[de:Abstimmung anlegen]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Ajouter/modifier un sondage]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Category:New_features&amp;diff=94166</id>
		<title>Category:New features</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Category:New_features&amp;diff=94166"/>
		<updated>2011-11-29T07:04:11Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A list of pages documenting new features in Moodle 2.2.&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/31/en/index.php?title=Assignment_settings&amp;diff=72076</id>
		<title>Assignment settings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/31/en/index.php?title=Assignment_settings&amp;diff=72076"/>
		<updated>2010-05-13T03:57:06Z</updated>

		<summary type="html">&lt;p&gt;Samstudent: /*Rebutting the conference with spouse objection*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Assignments}}&lt;br /&gt;
An Assignment is an activity that a teacher can select by a pull down menu in a course topic or week section. This page is about the Assignment settings, also found with the Update Assignment  button.&lt;br /&gt;
&lt;br /&gt;
Rebutting the conference with significant other.&lt;br /&gt;
&lt;br /&gt;
You can hear that you have your prospect cornered you are&lt;br /&gt;
ready to ask which major credit card would you like to&lt;br /&gt;
use for your fabulous vacation and he/she rubuts with.&lt;br /&gt;
I have to ask my husband/wife first. You should:&lt;br /&gt;
&lt;br /&gt;
A) In your most condescending voice ask &amp;quot;Do you have to&lt;br /&gt;
ask your Wife/Husband for help in making most of your descisions?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
B) Say no problem I&#039;ll check back with you tomorrow.&lt;br /&gt;
&lt;br /&gt;
C) Remind the prospect that the availability at this rock bottom&lt;br /&gt;
price is limited and is first come first serve and you don&#039;t&lt;br /&gt;
want them to miss out on this opportunity to receive a fabulous&lt;br /&gt;
vacation to somewhere at this deeply discounted rate.&lt;br /&gt;
&lt;br /&gt;
D) Tell the prospect that the vacation is fully refundable so&lt;br /&gt;
if the Wife/Husband isn&#039;t in love with the idea then you can easily&lt;br /&gt;
credit the money back to their credit card. &lt;br /&gt;
&lt;br /&gt;
Answer:C and D&lt;br /&gt;
&lt;br /&gt;
Test: Write how you would combine C and D to rebut this objection.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
The description of the assignment, which should include precise instructions for students regarding the subject of the assignment, the form, in which it should be submitted, the grading criteria etc.&lt;br /&gt;
&lt;br /&gt;
Use this area to describe the assignment and explain what learners are expected to do to complete this task. The assignment description can be as brief or as expansive as you feel is necessary to meet the needs of your learners. However, it is to your benefit to provide as much detail and information as possible, especially at the start of the course while you are still establishing procedures. Generally, the more information you are able to provide here the fewer questions and problems your learners will have completing the task.&lt;br /&gt;
&lt;br /&gt;
The assignment description field can also be used to provide information or resources related to the assignment. An instructor, for example, could provide some literature, a video clip, an image, or a link to a webpage, and then ask the learners to use these materials in completing the task. (Alternatively, the instructor could post these items using the Resource Module and refer students to them in the assignment details. See the section titled Resource Module for more information.) &lt;br /&gt;
 &lt;br /&gt;
Finally, if you are adding rich content, tables, etc. to your description, it is best to expand the HTML editor into full screen mode so you can make your webpage document look nice when participants view it.&lt;br /&gt;
&lt;br /&gt;
==Grade==&lt;br /&gt;
&lt;br /&gt;
The grade for the assignment is specified here. Choosing a number will become the maximum grade for this assignment. Apart from the numbers, one of the descriptive grades which have been defined for this course can also be picked.&lt;br /&gt;
&lt;br /&gt;
If you will not be giving a grade for the assignment, choose No Grade.&lt;br /&gt;
&lt;br /&gt;
==Available from==&lt;br /&gt;
&lt;br /&gt;
Setting this date prevents students from submitting their assignments before this date.&lt;br /&gt;
&lt;br /&gt;
The Available from date setting allows an instructor to set a day and time at which learners can begin submitting the assignment. This setting does not, however, hide the activity from the learners. Instead, the learner will see the activity, be able to view the instructions and use any materials you have include in the description, but the learner will not be able to submit or complete the assignment until the Available from date. &lt;br /&gt;
&lt;br /&gt;
To activate the Available from date, make sure that the “Disable” checkbox is not marked. Then, use the drop down menus to choose the day, month and year. You can also set a time with the last two fields on the line. Note: the time is based on a 24 hour clock or “military time,” so 14:00 refers to 2:00 p.m.&lt;br /&gt;
&lt;br /&gt;
If you do not wish to use the Available from option, just check the “Disable” checkbox by clicking on it; the rest of the field will turn gray and the date will be ignored.&lt;br /&gt;
&lt;br /&gt;
==Due date==&lt;br /&gt;
&lt;br /&gt;
And this prevents students from submitting their assignments after this date.&lt;br /&gt;
&lt;br /&gt;
The Due date field works in much the same way as the Available from field with a few small differences. Unchecking the “Disable” checkbox activates the Due date option and you have the same ability to select a day, month, year, and time. If the checkbox is checked, then the due date will be not be applied.&lt;br /&gt;
&lt;br /&gt;
As with the Available from setting, the Due date defines when learners are able to submit their assignment. However, with the Due date settings, you also have the Prevent late submissions option (below the date and time fields). Setting Prevent late submissions to Yes will prevent learners from being able to submit this assignment after the Due date. If you set Prevent late submissions to No, then learners can submit the assignment as long as the assignment is visible or accessible to them.&lt;br /&gt;
&lt;br /&gt;
Both the Available from and Due dates are displayed for learners in the assignment details, but the Due date is also marked in the course Calendar as a visible reminder for participants. Furthermore, the indicator on the calendar will actually link learners directly to the activity!&lt;br /&gt;
&lt;br /&gt;
Your use of the Available from and Due date settings will probably be dependent on the overall structure of your course. If you are facilitating an open ended course or a course with rolling enrollment, then you might find it easier to not apply the Available from and Due date settings (leave the boxes checked). This arrangement will allow the learners to access the assignments according to their own schedule and progress within the course. Alternatively, if you are working within a more structured format or adhering to a timeline, the Available from and Due date settings are useful for keeping learners on schedule. Using the Available from setting will make it possible for learners to preview upcoming activities, while at the same time, prevent them from finishing the course in the first week and not returning for additional activities or information. Likewise, the Due dates help keep the learners from lagging too far behind and decrease the likelihood that the learner will become overwhelmed by having to complete several weeks worth of work at once.&lt;br /&gt;
&lt;br /&gt;
==Prevent late submissions==&lt;br /&gt;
&lt;br /&gt;
Set to &amp;quot;No&amp;quot;, assignments submitted after the due date will be marked as late, but students will still be able to submit them. Set to &amp;quot;Yes&amp;quot;, assignment submission will be blocked after the due date.&lt;br /&gt;
&lt;br /&gt;
==Settings for specific assignment types (1.7 onwards)==&lt;br /&gt;
&lt;br /&gt;
Each assignment type, except offline assignment, has further settings which are detailed on the relevant assignment type pages:&lt;br /&gt;
*[[Upload a single file assignment|Upload a single file]]&lt;br /&gt;
*[[Online text assignment|Online text]]&lt;br /&gt;
*[[Advanced uploading of files assignment|Advanced uploading of files]]&lt;br /&gt;
&lt;br /&gt;
==Assignment type (pre-1.7)==&lt;br /&gt;
&lt;br /&gt;
With the Assignment type setting (pre-1.7), you choose the type of assignment which defines how learners will complete the assignment and turn it in to the instructor. Assignments can be set up as offline activity, online text, or upload a single file.&lt;br /&gt;
&lt;br /&gt;
;Upload&lt;br /&gt;
:A student can upload a single file. This could be a Word document, spreadsheet or anything digital. Multiple files could be zipped and then submitted.After learners upload their files in this arrangement, the instructor will be able to open the submission and then use the Moodle interface to assign a grade and offer comments as feedback.&lt;br /&gt;
&lt;br /&gt;
:In addition to using this activity to collect work from learners, some instructors and learners use this module as a tool for transferring projects from one location to another. For example, if an instructor offered learners an assignment of this form, the learner could upload a file he was working on at school and then, once home, retrieve it from the assignment screen to continue his work. With the right settings (offered on the next screen), the learner can then submit the new file from home to use at school again.&lt;br /&gt;
&lt;br /&gt;
;Online Text&lt;br /&gt;
:This assignment type asks users to compose and edit text, using the normal editing tools. The online text assignment can be set up to allow learners to compose, revise and edit over time or such that the learner only has one opportunity to enter his or her response. Furthermore, with the online assignment, instructors can grade the work online and even edit and/or provide comments within the learner’s work.&lt;br /&gt;
&lt;br /&gt;
:The online text assignment is ideal for journaling and composition work.&lt;br /&gt;
&lt;br /&gt;
;Offline assignment&lt;br /&gt;
:This is useful when the assignment is performed outside of Moodle. It could be something elsewhere on the web or face-to-face. Students can see a description of the assignment, but can&#039;t upload files. Grading works normally, and students will get notification of their grades.&lt;br /&gt;
&lt;br /&gt;
:The offline activity has a number of different applications. In general, the offline activity is designed for activities completed outside of the online environment. Additionally, if you are using the Moodle gradebook, the offline activity gives you the capability to add gradebook entries for assignments completed outside of Moodle or for non-graded activities within Moodle.&lt;br /&gt;
&lt;br /&gt;
:Specifically, an instructor in a hybrid or blended environment (combination of face-to-face and online instruction) may use the offline activity type of assignment to assign a project that the learner will physically present to the instructor at a face-to-face session. This arrangement allows the instructor to communicate the project expectations online while creating an entry for the project in the Moodle gradebook.&lt;br /&gt;
&lt;br /&gt;
:In another example, consider the instructor who gives reading assignments or assigns problems for practice. These activities wouldn’t necessarily be turned in for a grade, but the instructor needs a tool for communicating the assignment details. The offline assignment, with its unique icon, could be used as a consistent visual cue for the learners; learners would come to know that they can always look for the assignment icon to see what work they need to complete.&lt;br /&gt;
&lt;br /&gt;
:Finally, the offline assignment, as mentioned previously, is a tool for making entries in the Moodle gradebook. Perhaps an instructor wants to assign a grade for contributions to a class wiki; however, the wiki itself is an ungraded activity. The instructor could use an offline assignment to create an entry for the wiki contribution grade in the Moodle gradebook. In this example, however, the instructor may choose to hide the actual listing of the assignment in the Moodle course since it is primarily being used for the purpose of making a gradebook entry.&lt;br /&gt;
&lt;br /&gt;
To complete the settings specific to the assignment type, click Next to proceed to the [[mod/assignment/details|assignment details]] page.&lt;br /&gt;
&lt;br /&gt;
== Common module settings ==&lt;br /&gt;
&lt;br /&gt;
=== Group mode ===&lt;br /&gt;
When course group mode is turned on, the [[Groups|group mode]] can be one of three levels: no groups, separate groups or visible groups.  &lt;br /&gt;
&lt;br /&gt;
;No groups&lt;br /&gt;
:There are no groups and all students submit their assignments in one Assignment area&lt;br /&gt;
&lt;br /&gt;
;Separate groups&lt;br /&gt;
:Students submit their assignments within a separate Group based submission area and teachers/trainers can sort submissions by Group or view All Participants.&lt;br /&gt;
&lt;br /&gt;
;Visible groups&lt;br /&gt;
:All students submits their assignment within a single Assignment area but may choose which Group to associate their submission with before uploading.  Teachers/trainers can sort submissions by Group or view All Participants.&lt;br /&gt;
&lt;br /&gt;
=== Visible ===&lt;br /&gt;
Choose whether to Show or Hide the assignment&lt;br /&gt;
&lt;br /&gt;
=== ID number ===&lt;br /&gt;
Setting an ID number provides a way of identifying the assignment for grade calculation purposes. If the activity is not included in any grade calculation then the ID number field can be left blank.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*Want to use an Assignment activity again? Copy the assignment by backing up the course and selecting just the assignment, with or without students and their data.  Restore the backup to the same course or to a new course. Move the copied assignment and or edit it.&lt;br /&gt;
*Want to use an Assignment activity in another course you teach?  Use the import function in the course administration block.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=64755 How do I make assignments worth more than 100 points?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[de:Aufgabe anlegen]]&lt;br /&gt;
[[cs:Přidání/úprava úkolu]]&lt;br /&gt;
[[fr:Ajouter/modifier un devoir]]&lt;/div&gt;</summary>
		<author><name>Samstudent</name></author>
	</entry>
</feed>